From 21f12c4c5f08903ff87ea203f83960d9983110f4 Mon Sep 17 00:00:00 2001 From: Maciej Urbanski Date: Mon, 17 Jun 2024 10:56:19 +0200 Subject: [PATCH] release 2.4.0 --- CHANGELOG.md | 22 +++++++++++++++++++ .../+NoPaymentHistory_exception.added.md | 2 -- ...ngToCancelingUnfinishedLargeFiles.added.md | 1 - changelog.d/+pydantics.added.md | 1 - changelog.d/+stub_acct_info.fixed.md | 1 - changelog.d/456.fixed.md | 1 - changelog.d/497.changed.md | 3 --- 7 files changed, 22 insertions(+), 9 deletions(-) delete mode 100644 changelog.d/+NoPaymentHistory_exception.added.md delete mode 100644 changelog.d/+daysFromStartingToCancelingUnfinishedLargeFiles.added.md delete mode 100644 changelog.d/+pydantics.added.md delete mode 100644 changelog.d/+stub_acct_info.fixed.md delete mode 100644 changelog.d/456.fixed.md delete mode 100644 changelog.d/497.changed.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d50b379..62dd1034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,28 @@ upcoming release can be found in [changelog.d](changelog.d). +## [2.4.0](https://github.com/Backblaze/b2-sdk-python/releases/tag/v2.4.0) - 2024-06-17 + + +### 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](https://github.com/Backblaze/b2-sdk-python/issues/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](https://github.com/Backblaze/b2-sdk-python/issues/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. + + ## [2.3.0](https://github.com/Backblaze/b2-sdk-python/releases/tag/v2.3.0) - 2024-05-15 diff --git a/changelog.d/+NoPaymentHistory_exception.added.md b/changelog.d/+NoPaymentHistory_exception.added.md deleted file mode 100644 index 7df867df..00000000 --- a/changelog.d/+NoPaymentHistory_exception.added.md +++ /dev/null @@ -1,2 +0,0 @@ -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. diff --git a/changelog.d/+daysFromStartingToCancelingUnfinishedLargeFiles.added.md b/changelog.d/+daysFromStartingToCancelingUnfinishedLargeFiles.added.md deleted file mode 100644 index b51f66cb..00000000 --- a/changelog.d/+daysFromStartingToCancelingUnfinishedLargeFiles.added.md +++ /dev/null @@ -1 +0,0 @@ -Add `daysFromStartingToCancelingUnfinishedLargeFiles` option to `lifecycle_rules` type annotation. diff --git a/changelog.d/+pydantics.added.md b/changelog.d/+pydantics.added.md deleted file mode 100644 index 2e3204ff..00000000 --- a/changelog.d/+pydantics.added.md +++ /dev/null @@ -1 +0,0 @@ -Add `annotated_types` dependency for type annotations that include basic value validation. diff --git a/changelog.d/+stub_acct_info.fixed.md b/changelog.d/+stub_acct_info.fixed.md deleted file mode 100644 index 9540f904..00000000 --- a/changelog.d/+stub_acct_info.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fix bucket caching erroring out when using `StubAccountInfo`. diff --git a/changelog.d/456.fixed.md b/changelog.d/456.fixed.md deleted file mode 100644 index a88e1010..00000000 --- a/changelog.d/456.fixed.md +++ /dev/null @@ -1 +0,0 @@ -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. \ No newline at end of file diff --git a/changelog.d/497.changed.md b/changelog.d/497.changed.md deleted file mode 100644 index 0d70b788..00000000 --- a/changelog.d/497.changed.md +++ /dev/null @@ -1,3 +0,0 @@ -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`.