json_delta 0.2.0 copy "json_delta: ^0.2.0" to clipboard
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_lints with lints and flutter_test with test in the dev dependencies.
  • Breaking: toJsonDelta() now throws a StateError with a clear message when saveJsonDeltaState() 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 collection to ^1.19.0.
  • Remove the deprecated library json_delta; directive.
  • Add copyright headers to source files and a top-level NOTICE file.
  • 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 and example/README.md so pub.dev renders an Example tab (closes the previous 0/10 example-score gap).
  • Document the previously-implicit JsonSerializable default 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.
4
likes
160
points
35
downloads

Documentation

API reference

Publisher

verified publisheroddbit.id

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (license)

Dependencies

collection

More

Packages that depend on json_delta