Releases: makeomatic/ms-files
Releases · makeomatic/ms-files
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.3
v2.0.2
v2.0.1
v2.0.0
<a name"2.0.0">
2.0.0 (2016-03-10)
Bug Fixes
- info:
- list: static list properties for filter, fix patternProperties (9d43fc6b)
Features
- refactor to allow composite file uploads (0fc6bb7a)
- get: adds files.get (c7d1aff3)
- upload: allow batch upload of multiple items (997a4104)
Breaking Changes
- all file uploads are now composite. That means that each initiated upload can
contain arbitrary number of corresponding files that will be processed only once all of them are
uploaded
API CHANGES:
owner->usernamein all endpoints, but.listfiles.upload
{
"files": Array, // array of files with format corresponding to common schemas
"username": "String", // owner is required in every endpoint now
"meta": {
"name": "File name"
},
}
Consult further with the schema and tests.
files.finish- is ready to accept automatic notifications. Only requirement is
to receivefilename, hasskipProcessingandawaitcontrol functions as beforefiles.process- invoked automatically afterfinishby default. Refactored and uses
post processing hooks nowfiles.download- only allows getting URLs for processed files. Instead of a single URL it
returns file metadata, URLs for all parts to be downloaded. If file is public then it returns
non-signed URLsfiles.access- alters access on all files in the upload. Files must be processed to become
publicfiles.remove- kills all files in the uploadfiles.info- correctly returns information for public files and private files, no whitelisting
implementedfiles.list- mostly the same as before, amount of fields to be searched through is lowered
Refactored:
-
pulled
isProcessedcheck into a helper -
tests are refactored and no longer use any globals
-
many utility functions are added in tests to keep it DRY
-
added more custom hooks, especially moved charging for models from http to the service
(0fc6bb7a)