magic_map 1.0.4
magic_map: ^1.0.4 copied to clipboard
A Dart package that allows JavaScript-like dot-access to deeply nested Maps and Lists.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[1.0.4] - 2025-04-19 #
Added #
- Introduced
MagicMap
class for flexible, dynamic map access. - Support for dot-separated path-based value retrieval using
getPath()
. - Support for dot-separated dynamic nested value assignment using
set()
. - Bash-style glob pattern matching support with
getWithGlob()
. - Immutable data updates using
setImmutable()
. - JSON serialization via
toJsonString()
andfromJsonString()
. - Dynamic property access using
noSuchMethod
on_MagicMapImpl
. - Custom
MagicMapException
class with detailed error messages.
Internal #
- Wrapped and unwrapped data to maintain consistent structure using
_wrap()
and_unwrap()
utilities. - Recursive collection of matched entries for glob matching.