- feat: add custom file size limit and mime types restrictions at bucket level #58
- feat: add a quality option for image transformation #59
- feat: add format option for webp support #60
- fix:
copy()
method on storage files #61
- chore: Add more description on pubspec.yaml #55
- fix: return correct URLs for
createSignedUrls
#53
- feat: add setAuth method #52
- fix: properly parse content type #50
- fix: correct path parameter documentation #48
- feat: add transform option to
createSignedUrl()
,getPublicUrl()
, and.download()
to transform images on the fly #46final signedUrl = await storage.from(newBucketName).createSignedUrl(uploadPath, 2000, transform: TransformOptions( width: 100, height: 100, )); final publicUrl = storage.from(bucket).getPublicUrl(path, transform: TransformOptions(width: 200, height: 300)); final file = await storage.from(newBucketName).download(uploadPath, transform: TransformOptions( width: 200, height: 200, ));
- feat: add retry on file upload failure when offline (#44)
// The following code will instantiate storage client that will retry upload operations up to 10 times. final storage = SupabaseStorageClient(url, headers, retryAttempts: 10);
- chore: v1.0.0 release 🚀
- BREAKING: set minimum Dart SDK to 2.14.0 (#42)
- BREAKING: Update type of
metadata
ofFileObject
toMap<String, dynamic>
- feat: exported
StorageFileApi
- fix: don't export
FetchOptions
- feat:
StorageException
implementsException
- BREAKING: error is now thrown instead of returned within the responses. Before:
final response = await ....;
if (response.hasError) {
final error = response.error!;
// handle error
} else {
final data = response.data!;
// handle data
}
Now:
try {
final data = await ....;
} on StorageException catch (error) {
// handle storage errors
} catch (error) {
// handle other errors
}
- feat: added
createSignedUrls
to create signed URLs in bulk. - feat: added
copy
method to copy a file to another path. - feat: added support for custom http client
- fix: add status code to
StorageError
withinFetch
- fix: Bug where
move()
does not work properly
- feat: set custom mime/Content-Type from
FileOptions
- fix: Move
StorageError
totypes.dart
- fix: Set
X-Client-Info
header
- fix: Set default meme type to
application/octet-stream
when meme type not found.
- BREAKING CHANGE: rework upload/update binary file methods by removing BinaryFile class and supporting Uint8List directly instead.
- feat: support upload/update binary file
- fix: docker-compose for unit test
- fix: method comment format
- feat: add upsert option to upload
- Initial Release
- feat: add public option for createBucket method, and add updateBucket
- feat: add getPublicUrl
- fix: replaced dart:io with universal_io
- chore: add example
- chore: update README
- Initial pre-release.