Skip to content

2.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Jun 09:01
· 42 commits to master since this release
21f12c4

Changed

  • In b2sdk.v3 the B2Api will always create cache from AccountInfo object, unless cache is provided explicitly.
    The current stable b2sdk.v2 remains unchanged, i.e. DummyCache is created by default if account_info was provided, but not cache.
    Documentation for b2sdk.v2 was updated with the new recommended usage, e.g. B2Api(info, cache=AuthInfoCache(info)), to achieve the same behavior as b2sdk.v3. (#497)

Fixed

  • Move scan filters before a read on filesystem access attempt. This will prevent unnecessary warnings and IO operations on paths that are not relevant to the operation. (#456)
  • Fix bucket caching erroring out when using StubAccountInfo.

Added

  • Add annotated_types dependency for type annotations that include basic value validation.
  • Add daysFromStartingToCancelingUnfinishedLargeFiles option to lifecycle_rules type annotation.
  • Add non-retryable NoPaymentHistory exception.
    API returns this exception when action (e.g. bucket creation or replication rules) is not allowed due to lack of payment history.