flat
0 dependency package to convert a nested Map and flatten it into a single depth Map, and recover it later. Based on Node.js `flat` package.
0.5.0
16K downloads/mo
#2393 most downloaded on pub.dev
danilofuchs/flat
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 2.0 years
Nearly every release is documented
notes for 7 of 7 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
8 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Feb 2020 to Nov 2023Releases
latest 8-
0.5.007 Nov 2023 -
0.4.118 Nov 2021Release notes
Open source →- fix:
type 'List<dynamic>' is not a subtype of type 'List<Object>' in type castwhen flattening a JSON decoded object
- fix:
-
0.4.026 Mar 2021Release notes
Open source →Breaking Change
The library now uses
Map<String, dynamic>instead ofMap<String, Object>.This means null values are now accepted inside the map, following Dart null-safety guidelines. This is specially important when dealing with JSON objects.
- feat:
Map<String, dynamic>instead ofMap<String, Object>
- feat:
-
0.3.012 Mar 2021 -
0.3.0-nullsafety.030 Nov 2020 pre-release -
0.2.023 Feb 2020Release notes
Open source →- chore: Enable effective_dart linting rules
- feat: maxDepth parameter
- fix: Preserve empty Maps
- refactor: Simplify logic based on npm's flat
-
0.1.121 Feb 2020 -
0.1.021 Feb 2020Release notes
Open source →- feat: delimiter override option
- feat: safe mode to avoid flattening lists
- feat: Ability to flatten lists (which can contain maps)
- feat: Ability to flatten nested maps
- feat:
flattenmethod basic implementation