dejajson 0.1.2
dejajson: ^0.1.2 copied to clipboard
Transparently decode DejaJson-encoded API responses (zlib with a shared dictionary trained on your own API) with a drop-in Dio interceptor. Pairs with the nylo/dejajson Laravel package.
Changelog #
0.1.2 — 2026-09-13 #
Changed #
- Added explicit type annotations to non-obvious local variables across the library, example, tests and tooling. No behaviour change.
- Static analysis now uses the
vibe_checkNylo preset (added as a dev dependency). - Updated the publish workflow to
actions/checkout@v5.
0.1.1 — 2026-09-07 #
Changed #
- Bumped
dioconstraint to^5.11.1. - Bumped
testdev dependency constraint to^1.32.0.
0.1.0 — 2026-08-06 #
Initial release.
- DejaJson wire format v1: a 4-byte binary envelope over a zlib (RFC 1950)
stream, in dictionary (
d) and plain (z) modes. DejaJsonInterceptorfor Dio: advertisesX-Deja-Json(with the dictionary id when one is loaded), fetches bytes transparently, and restores plain JSON responses — including error responses — exactly as Dio would have produced them.DejaJsonDictionaryfor loading the dictionary trained byphp artisan dejajson:train(shipped as an app asset).DejaJsonCodecfor manual encode/decode (websockets, cached blobs, isolates).- Web builds advertise nothing (zlib needs
dart:io) and pass plain JSON through untouched. - Cross-implementation test vectors shared with the
nylo/dejajsonLaravel package.