dart_aliyun_oss 1.1.0 copy "dart_aliyun_oss: ^1.1.0" to clipboard
dart_aliyun_oss: ^1.1.0 copied to clipboard

Dart client SDK for Alibaba Cloud Object Storage Service (OSS). Supports file upload, download, multipart upload, signed URLs and more.

Changelog #

English | 中文

1.1.0 #

✨ Major New Features #

🔐 Dynamic Credential Management

  • Dynamic AccessKey/Secret/STS Token Support: Enhanced OSSConfig to support dynamic credential retrieval
    • Added accessKeyIdProvider, accessKeySecretProvider, and securityTokenProvider functions
    • Enables automatic STS token refresh without client reinitialization
    • Maintains backward compatibility with static credential configuration via OSSConfig.static()
    • Perfect for production environments requiring automatic credential rotation

📤 Extended Upload Methods

  • Multi-Type Upload Support: Added convenient upload methods for different data types
    • putObjectFromString() - Upload string content with automatic UTF-8 encoding
    • putObjectFromBytes() - Upload byte array data directly
    • Maintains full compatibility with existing putObject() for file uploads
    • Implemented as extension methods in implementation classes, keeping interfaces clean

📚 Documentation & Examples #

  • Enhanced STS Documentation: Complete examples for both static and dynamic STS token management
  • Comprehensive Examples: Added examples for all upload types in example.dart
  • README Synchronization: Ensured complete correspondence between English and Chinese versions

🧪 Testing & Quality #

  • Comprehensive Test Coverage: Added extensive unit tests for new functionality
  • All Tests Passing: 21/21 tests pass, including new multi-type upload tests
  • Signature Compatibility: Verified compatibility with both V1 and V4 signature algorithms

1.0.4 #

Bug Fixes #

  • 🐛 Fixed type mismatch in createSignedHeaders method
  • 🔨 Improved header content-type extraction to avoid runtime type errors

1.0.3 #

Code Refactoring and Interface Improvements #

  • ✨ Bump version to 1.0.3
  • 🔨 Optimized createSignedHeaders method

1.0.2 #

Code Refactoring and Interface Improvements #

  • Added queryParameters parameter to OSSRequestParams class for unified query parameter handling
  • Refactored URI building logic into a dedicated buildOssUri method
  • Improved handling of complex query parameter types using jsonEncode
  • Updated all implementation classes to use the unified query parameter approach
  • Removed redundant URI construction code across implementation classes
  • Optimized createSignedHeaders method by removing uri parameter and adding queryParameters support

Bug Fixes #

  • Updated repository links in package metadata

1.0.1 #

Interface Improvements #

  • Unified progress callback parameters by moving all to OSSRequestParams class
  • Added onSendProgress parameter to OSSRequestParams class
  • Removed standalone onSendProgress/onProgress parameters from methods
  • Updated all network requests to use the unified progress callback approach
  • Updated example code to use the new parameter passing approach
  • Simplified progress display format

Package Discoverability #

  • Improved package metadata for better discoverability on pub.flutter-io.cn
  • Updated package description and keywords
  • Added proper license references

OSS Signature Improvements #

  • Fixed V1 and V4 signature URL generation to ensure compatibility with Alibaba Cloud API
  • Added signature version selection feature for all example methods
  • Optimized code structure by moving signature URL implementation to separate files
  • Added DateFormatter utility class for unified date format handling

1.0.0 #

  • Initial release
  • Support for file upload and download
  • Support for large file multipart upload
  • Support for upload and download progress monitoring
  • Support for multipart upload management operations (list, abort, etc.)
  • Support for both V1 and V4 signature algorithms
4
likes
0
points
341
downloads

Publisher

unverified uploader

Weekly Downloads

Dart client SDK for Alibaba Cloud Object Storage Service (OSS). Supports file upload, download, multipart upload, signed URLs and more.

Repository (GitHub)
View/report issues

Topics

#storage #cloud #file #network #api

License

unknown (license)

Dependencies

convert, crypto, dio

More

Packages that depend on dart_aliyun_oss