Skip to content

Release v0.2.0

Compare
Choose a tag to compare
@f2face f2face released this 29 May 11:38
· 30 commits to main since this release
0fe55f7

Changed:

~ [ Bucket] provideBucketPublicUrl() method parameter now accepts array for multiple URLs.
~ [ Bucket] uploadFile() destination parameter is now optional.
~ Other internal functions and parameters naming. No breaking changes.

Added:

+ [ Bucket] getPublicUrls() lists all provided public URLs of the bucket.
+ [ Bucket] getObjectSignedUrl() creates object's signed URL with expiration time.
+ [ Bucket] getObjectPublicUrls() lists all public URLs of an object.
+ [ Bucket] getCorsPolicies() will replace getCors().
+ [ Bucket] upload() allows uploading binary data to the bucket.
+ [ Bucket] uploadStream() allows uploading big file (or streaming data) to the bucket using multipart upload internally.
+ [ Bucket] deleteObject() will replace deleteFile().
+ [ Bucket] publicUrls property in UploadFileResponse type returns an array of public URLs. This new property will replace publicUrl.

Deprecated (will be removed in the next major release):

- [ Bucket] getPublicUrl() will be replaced by getPublicUrls().
- [ Bucket] getCors() will be replaced by getCorsPolicies()
- [ Bucket] publicUrl property in UploadFileResponse type will be replaced by publicUrls.
- [ Bucket] deleteFile() will be replaced by deleteObject().

No breaking changes. Hopefully.

Full Changelog: v0.1.5...v0.2.0