Releases: AokiApp/tlv
Releases · AokiApp/tlv
Release list
v0.4.1
Patch Changes
- Improve TLV safety and align SET OF behavior between builder and parser.
- Tighten BIT STRING validation: reject encodings where
unusedBitsis outside0..7, or where unused bits in the last byte are not zero. - Make long-form length parsing use safe arithmetic and throw on overflow instead of wrapping, so absurd lengths are rejected instead of producing empty values.
- Treat empty
SET OFas a valid empty array on the parser side, matching the builder which already encodes empty arrays as empty SETs (3100).
- Tighten BIT STRING validation: reject encodings where
v0.4.0
Minor Changes
-
3e7ad3d: Expand public API: expose parser schema types to consumers.
Changes:
- Add public exports for parser schema types to support direct typing in user code.
- Update tests to use package-level path aliases resolved by Vite plugin and tests/tsconfig.json.
- Enhance test runner script to compile declarations for tests before running Vitest.
- Update Vitest config for path alias resolution and coverage improvements; remove 'dist' from coverage exclude.
No runtime behavior changes; semver-minor due to expanded public API surface.