diff --git a/CHANGELOG.md b/CHANGELOG.md index 4631ebb..5a1a37d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Version 4.2.0 + +- Add `discard` method which return a new immutabledict without the item at the given key, if present. Thanks to [@matthiasdiener](https://github.com/matthiasdiener) for the [PR #307](https://github.com/corenting/immutabledict/pull/307) + ## Version 4.1.0 - Do not store cached hash value when pickling. Thanks to [@matthiasdiener](https://github.com/matthiasdiener) for the [PR #287](https://github.com/corenting/immutabledict/pull/287) diff --git a/README.md b/README.md index 08766b9..e4ca111 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ print(my_item["a"]) # Print "value" - Typing - [PEP 584 union operators](https://www.python.org/dev/peps/pep-0584/) - Keep the same signature for `copy()` as `dict` (starting with immutabledict 3.0.0), don't accept extra keyword arguments. +- Added `set`, `delete` and `discard` methods ## Donations -If you wish to support the app, donations are possible [here](https://corenting.fr/donate). +If you wish to support this library, donations are possible [here](https://corenting.fr/donate). diff --git a/immutabledict/__init__.py b/immutabledict/__init__.py index 5946933..24a5df9 100644 --- a/immutabledict/__init__.py +++ b/immutabledict/__init__.py @@ -18,7 +18,7 @@ ValuesView, ) -__version__ = "4.1.0" +__version__ = "4.2.0" _K = TypeVar("_K") _V = TypeVar("_V", covariant=True) diff --git a/pyproject.toml b/pyproject.toml index 534aab7..4e93b62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "immutabledict" -version = "4.1.0" +version = "4.2.0" description = "Immutable wrapper around dictionaries (a fork of frozendict)" authors = ["Corentin Garcia "] license = "MIT"