From 715a62c7fb6645007bd215eb524b7770812de912 Mon Sep 17 00:00:00 2001 From: Corentin Garcia Date: Wed, 6 Mar 2024 19:20:21 +0100 Subject: [PATCH] feat: release 4.2.0 --- CHANGELOG.md | 4 ++++ README.md | 3 ++- immutabledict/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) 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"