Skip to content

Commit 73b353e

Browse files
authored
Merge pull request #308 from corenting/feat/release-4.2.0
feat: release 4.2.0
2 parents 4eaa80d + 715a62c commit 73b353e

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 4.2.0
4+
5+
- 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)
6+
37
## Version 4.1.0
48

59
- 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)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ print(my_item["a"]) # Print "value"
3232
- Typing
3333
- [PEP 584 union operators](https://www.python.org/dev/peps/pep-0584/)
3434
- Keep the same signature for `copy()` as `dict` (starting with immutabledict 3.0.0), don't accept extra keyword arguments.
35+
- Added `set`, `delete` and `discard` methods
3536

3637
## Donations
3738

38-
If you wish to support the app, donations are possible [here](https://corenting.fr/donate).
39+
If you wish to support this library, donations are possible [here](https://corenting.fr/donate).

immutabledict/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ValuesView,
1919
)
2020

21-
__version__ = "4.1.0"
21+
__version__ = "4.2.0"
2222

2323
_K = TypeVar("_K")
2424
_V = TypeVar("_V", covariant=True)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "immutabledict"
3-
version = "4.1.0"
3+
version = "4.2.0"
44
description = "Immutable wrapper around dictionaries (a fork of frozendict)"
55
authors = ["Corentin Garcia <corenting@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)