smalljson 1.0.4
smalljson: ^1.0.4 copied to clipboard
Transparently decode SmallJson-encoded API responses with a drop-in Dio interceptor. Pairs with the nylo/smalljson Laravel package.
Changelog #
1.0.4 — 2026-09-12 #
- Added the
vibe_checkdev dependency (^1.0.1) and switched static analysis to its Nylo rule set (package:vibe_check/nylo.yaml) with the analyzer plugin enabled. - Added explicit type annotations to local variables across the library, tests, example and tooling. No behaviour or public API changes.
1.0.3 — 2026-09-07 #
- Raised the minimum
dioconstraint to^5.11.1. - Updated dev dependency
testto^1.32.0.
1.0.2 — 2026-08-02 #
- Raised the minimum
dioconstraint to^5.11.0. - Updated dev dependencies:
lintsto^6.1.0,testto^1.31.2.
1.0.1 — 2026-07-15 #
- Fixed a broken link in the README pointing to the companion
nylo/smalljsonLaravel package repository.
1.0.0 — 2026-07-13 #
Initial release.
SmallJsonInterceptorfor Dio: advertises support viaX-Small-Json, decodesapplication/vnd.smalljson+jsonresponses in place (including error responses), rewrites the content type back toapplication/json, and surfaces corrupt envelopes asDioExceptions.SmallJsonCodecimplementing SmallJson wire format v1: packed mode everywhere, deflate mode ondart:ioplatforms (web advertises packed-only automatically).- Strict envelope validation with typed exceptions.
- Cross-implementation test vectors shared with the
nylo/smalljsonLaravel package, verified in both directions.