storage_client 2.2.0 copy "storage_client: ^2.2.0" to clipboard
storage_client: ^2.2.0 copied to clipboard

Dart client library to interact with Supabase Storage. Supabase Storage provides an interface for managing Files stored in S3, using Postgres to manage permissions.

2.2.0 #

2.1.0 #

  • FEAT(storage_client): Support copy/move to different bucket (#1043). (e095c14e)

2.0.3 #

  • FIX: Upgrade web_socket_channel for supporting web: ^1.0.0 and therefore WASM compilation on web (#992). (7da68565)

2.0.2 #

  • CHORE: Add some comments on storage symbols (#938).

2.0.1 #

2.0.0 #

  • Graduate package to a stable release. See pre-releases prior to this version for changelog entries.

2.0.0-dev.0 #

Note: This release has breaking changes.

1.5.4 #

1.5.3 #

1.5.2 #

  • FIX(storage_client): prevent the SDK from throwing when null path was returned from calling createSignedUrls() (#599). (e25a70d6)

1.5.1 #

  • REFACTOR: bump minimum Dart SDK version to 2.17.0 (#510). (ed927ee0)

1.5.0 #

  • FEAT(storage_client): upload signed URL (#495). (f330d19b)

1.4.1 #

  • FIX: Update http dependency constraints (#491). (825d0737)

1.4.0 #

  • FEAT: update dependency constraints to sdk < 4.0.0 (#474). (7894bc70)

1.3.1 #

  • chore: move the repo into supabase-flutter monorepo

[1.3.0] #

  • 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

[1.2.5] #

  • chore: Add more description on pubspec.yaml #55

[1.2.4] #

  • fix: return correct URLs for createSignedUrls #53

[1.2.3] #

  • feat: add setAuth method #52

[1.2.2] #

  • fix: properly parse content type #50

[1.2.1] #

  • fix: correct path parameter documentation #48

[1.2.0] #

  • feat: add transform option to createSignedUrl(), getPublicUrl(), and .download() to transform images on the fly #46
    final 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,
            ));
    

[1.1.0] #

  • 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);
    

[1.0.0] #

  • chore: v1.0.0 release 🚀
  • BREAKING: set minimum Dart SDK to 2.14.0 (#42)

[1.0.0-dev.4] #

  • BREAKING: Update type of metadata of FileObject to Map<String, dynamic>

[1.0.0-dev.3] #

  • feat: exported StorageFileApi

[1.0.0-dev.2] #

  • fix: don't export FetchOptions
  • feat: StorageException implements Exception

[1.0.0-dev.1] #

  • 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

[0.0.6+2] #

  • fix: add status code to StorageError within Fetch

[0.0.6+1] #

  • fix: Bug where move() does not work properly

[0.0.6] #

  • feat: set custom mime/Content-Type from FileOptions
  • fix: Move StorageError to types.dart

[0.0.5] #

  • fix: Set X-Client-Info header

[0.0.4] #

  • fix: Set default meme type to application/octet-stream when meme type not found.

[0.0.3] #

  • BREAKING CHANGE: rework upload/update binary file methods by removing BinaryFile class and supporting Uint8List directly instead.

[0.0.2] #

  • feat: support upload/update binary file
  • fix: docker-compose for unit test
  • fix: method comment format

[0.0.1] #

  • feat: add upsert option to upload
  • Initial Release

[0.0.1-dev.3] #

  • feat: add public option for createBucket method, and add updateBucket
  • feat: add getPublicUrl

[0.0.1-dev.2] #

  • fix: replaced dart:io with universal_io
  • chore: add example
  • chore: update README

[0.0.1-dev.1] #

  • Initial pre-release.
22
likes
150
pub points
98%
popularity

Publisher

verified publishersupabase.io

Dart client library to interact with Supabase Storage. Supabase Storage provides an interface for managing Files stored in S3, using Postgres to manage permissions.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

http, http_parser, logging, meta, mime, retry

More

Packages that depend on storage_client