diff --git a/CHANGELOG.md b/CHANGELOG.md index 29380f4d..b36849dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Moka Cache — Change Log +## Version 0.12.2 + +### Fixed + +- Prevent timing issues that cause inconsistencies between the cache's internal data + structures ([#348][gh-pull-0348]): + - e.g. If you insert the same key twice quickly, once when the cache is full and + a second time when there is room in the cache, the key may not remain in the + cache after the second insertion. However, the `entry_count` method may return + a non zero number after calling the `invalidate_all` method. + + ## Version 0.12.1 ### Fixed @@ -738,6 +750,7 @@ The minimum supported Rust version (MSRV) is now 1.51.0 (Mar 25, 2021). [gh-issue-0034]: https://github.com/moka-rs/moka/issues/34/ [gh-issue-0031]: https://github.com/moka-rs/moka/issues/31/ +[gh-pull-0348]: https://github.com/moka-rs/moka/pull/348/ [gh-pull-0331]: https://github.com/moka-rs/moka/pull/331/ [gh-pull-0316]: https://github.com/moka-rs/moka/pull/316/ [gh-pull-0309]: https://github.com/moka-rs/moka/pull/309/ diff --git a/Cargo.toml b/Cargo.toml index f8418a73..64801280 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moka" -version = "0.12.1" +version = "0.12.2" edition = "2021" # Rust 1.65 was released on Nov 3, 2022. rust-version = "1.65" diff --git a/MIGRATION-GUIDE.md b/MIGRATION-GUIDE.md index ec82e2bc..4e3557e4 100644 --- a/MIGRATION-GUIDE.md +++ b/MIGRATION-GUIDE.md @@ -2,7 +2,7 @@ ## Migrating to v0.12 from a prior version -v0.12.0 has major breaking changes on the API and internal behavior. This section +v0.12.0 had major breaking changes on the API and internal behavior. This section describes the code changes required to migrate to v0.12.0. ### Highlights v0.12 diff --git a/README.md b/README.md index 01fbaf5d..12798b80 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmoka-rs%2Fmoka.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmoka-rs%2Fmoka?ref=badge_shield) > **note** -> `v0.12.0` has major breaking changes on the API and internal behavior. Please read +> `v0.12.0` had major breaking changes on the API and internal behavior. Please read > the [MIGRATION-GUIDE.md][migration-guide-v012] for the details. * * * @@ -118,7 +118,7 @@ routers. Here are some highlights: ## Recent Changes > **Note** -> `v0.12.0` has major breaking changes on the API and internal behavior. Please read +> `v0.12.0` had major breaking changes on the API and internal behavior. Please read > the [MIGRATION-GUIDE.md][migration-guide-v012] for the details. - [MIGRATION-GUIDE.md][migration-guide-v012]