Releases: ianlini/flatten-dict
Releases · ianlini/flatten-dict
0.4.2
Change
- require
importlib-metadata
for Python<3.8 to improve importing performance (#46)
- support enumerating the objects that don't support
bool()
(#42, #49)
Code Quality
- migrate to Github Actions and test Python 3.10 (#47, #48)
0.4.1
Change
- improve import speed when Python >= 3.8 or
importlib-metatdata
is installed (#44) (thanks @isidentical)
0.4.0
New
- add
max_flatten_depth
to flatten()
(#22, #31, #35)
Change
- made
pathlib2
optional for Python < 3.4 (#32)
- use
poetry-core
instead of poetry
in pyproject.toml
(#36)
- deprecate
flatten_dict.splitter
in favor of flatten_dict.splitters
(#38)
- deprecate
flatten_dict.reducer
in favor of flatten_dict.reducers
(#38)
Code Quality
- improve code quality (#32)
- test for Python 3.9 (#34)
0.3.0
New
- add
dot
splitter and reducer (#20) (thanks @zemelLeong)
- add factory functions
make_reducer()
and make_splitter
to create reducer and splitter with delimiter (#25) (thanks @hsorsky)
Fix
- cast type to str when using
underscore
reducer (#21) (thanks @gllrt)
0.2.0
New
- add
underscore
splitter and reducer (#13) (thanks @duarteocarmo)
- add
keep_empty_types
to flatten()
(#18)
0.1.0
New
- add a parameter
enumerate_types
to flatten()
(#5, #7)
0.0.3.post1
Docs
- add documentation for
unflatten()
- fix a typo in docstring
0.0.2
Fix
- accept
collections.Mapping
as input (oringinally collections.MutableMapping
) (1c6d5d4)
- correctly raise error when invert with duplicate value (c7d8697)