json_delta 0.2.0
json_delta: ^0.2.0 copied to clipboard
Compute a JSON delta (patch) from an object's initial state to its current state. Pairs with json_serializable. Pure Dart — works in Flutter, server, and CLI.
0.2.0 #
- Breaking: convert to a pure Dart package. The Flutter SDK is no longer a dependency — Flutter apps keep working since they include Dart, but non-Flutter consumers (server, CLI) can now depend on this package without pulling in Flutter.
- Breaking: replace
flutter_lintswithlintsandflutter_testwithtestin the dev dependencies. - Breaking:
toJsonDelta()now throws aStateErrorwith a clear message whensaveJsonDeltaState()has not been called yet. Previously, the call silently returned the entire object as the delta — which hid the mistake instead of surfacing it. - Bump
collectionto^1.19.0. - Remove the deprecated
library json_delta;directive. - Add copyright headers to source files and a top-level
NOTICEfile. - Expand test coverage: no-op deltas, primitive types, null transitions, nested-map changes, baseline reset, immutability of baseline and returned delta, added/removed top-level keys.
- Expand README with install instructions, how-it-works, and limitations.
- Add an
example/directory with a runnable example andexample/README.mdso pub.dev renders an Example tab (closes the previous 0/10 example-score gap). - Document the previously-implicit
JsonSerializabledefault constructor and add a library-level dartdoc so 100% of the public API is documented. - Publish workflow now uses Dart directly instead of Flutter.
0.1.1 #
- Updating class documentation
0.1.0 #
- Initial release.