PackageTrack
Sign in Get early access

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 2023
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 8
  1. 0.5.0 07 Nov 2023
    Release notes
    • feat: unflatten function. Thanks @Pana-g (#9)
    Open source →
    Release notes
    • feat: unflatten function. Thanks @Pana-g (#9)
    Open source →
  2. 0.4.1 18 Nov 2021
    Release notes
    • fix: type 'List<dynamic>' is not a subtype of type 'List<Object>' in type cast when flattening a JSON decoded object
    Open source →
  3. 0.4.0 26 Mar 2021
    Release notes

    Breaking Change

    The library now uses Map<String, dynamic> instead of Map<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 of Map<String, Object>
    Open source →
  4. 0.3.0 12 Mar 2021
    Release notes
    • feat: Stable Null Safety support (requires Dart >= 2.12.0)
    Open source →
  5. 0.3.0-nullsafety.0 30 Nov 2020 pre-release
    Release notes

    feat: Nullsafety support

    Open source →
    Release notes
    • feat: Null Safety support (requires Dart >= 2.12.0-0)
    Open source →
  6. 0.2.0 23 Feb 2020
    Release notes
    • chore: Enable effective_dart linting rules
    • feat: maxDepth parameter
    • fix: Preserve empty Maps
    • refactor: Simplify logic based on npm's flat
    Open source →
  7. 0.1.1 21 Feb 2020
    Release notes
    • chore: Simple example project
    • chore: API docs
    Open source →
  8. 0.1.0 21 Feb 2020
    Release notes
    • 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: flatten method basic implementation
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive