Repository navigation
Releases
v0.50.0 — Fix array-stream constructor error outputs
This release fixes stale or uninitialized error outputs from the array-stream constructors. Reader, FILE, path, file-descriptor, and push constructors now initialize the error structure before validation and allocation, including failure paths.
Additional fixes and improvements:
- Clean up incomplete Lua record paths before raising errors.
- Simplify parser, serializer, writer, and Lua record hot paths while preserving true streaming output.
- Reuse one core compilation for shared and static libraries, and assemble standalone headers from maintained fragments without repeated formatting.
- Fix M2M test-fixture startup and lifetime races.
- Replace the developer benchmark harness with repeated per-metric means and retained raw samples. A complete C/Lua comparison has one five-minute total deadline. Full performance comparisons run through prerelease hardening rather than the normal release pipeline.
- Keep the newly verified C/Lua baseline pair and remove obsolete host baselines.
- Ship README-linked documentation with SDK and source packages.
The public C API and shared-library ABI are unchanged; the ABI remains 29. This is a non-breaking minor library release. Developer benchmark commands and JSON reports have changed, so benchmark automation should use the documented current interface.
Assets include seven target SDKs, the Darwin smoke-test bundle, source and standalone-header packages, Lua release artifacts, and the complete SHA-256 checksum manifest.
v0.49.0
LoneJSON 0.49.0 adds a push-fed JSON value visitor for producers and consumers that need to pause and resume without buffering whole values.
- Open a
lonejson_value_visitor_streamthrough the runtime receiver or the corresponding free function. Itspush,finish, andclosemethods reuse the existing visitor callbacks. LONEJSON_STATUS_PAUSEDmeans the callback accepted the event. Resume with the unconsumed input after the downstream consumer is ready; accepted events are not replayed.- Strings and keys are decoded incrementally with strict UTF-8 and Unicode surrogate validation. Number scanning respects the configured byte limit, and callback errors preserve the parser's input position.
- Includes a bounded-output example and regression coverage in
make finalize-slice.
ABI change: the runtime receiver gains value_visitor_stream_open. The shared-library ABI advances from 28 to 29. Rebuild downstream consumers with matching headers and library.
The signed release passed the complete clean local gate: Debug, ASan, TSan, Valgrind, service integration, fuzz smoke, all six Linux release targets, source reconstruction, and final artifact verification. Darwin artifacts were cross-built and inspected locally with osxcross; native macOS execution was not performed. The benchmark gate was skipped because this host has no frozen baseline.
The checksum manifest covers all 13 payloads. SDKs, a Darwin smoke-test bundle, source, the standalone header, and Lua release artifacts are included.
v0.48.0
Fix stack exhaustion on default musl worker threads in native record lifecycle and Lua JSON processing.
- Use bounded traversal workspaces with checked heap growth for deep schemas, recursive object arrays, Lua JSON encoding and array rewriting.
- Reserve Lua VM stack capacity during decoding and clean up encoding workspaces on allocation or callback errors.
- Exercise glibc Debug applications and their children with 128 KiB default worker stacks. Reject large production frames, variable-length arrays and alloca.
Breaking C API: ABI 28
lonejson_init, lonejson_reset and lonejson_cleanup, including receiver methods and short aliases, now return lonejson_status and accept an optional error output. Check initialization and reset results before using or reusing records. Rebuild downstream consumers with matching ABI 28 headers and libraries; v0.47.0 used ABI 27.
Verification
The signed, lightweight-tagged commit passed the full clean local release gate: 107 Debug checks, full-feature Lua tests, 39 ASan checks, 39 TSan checks, Valgrind, service integration, AFL++/Lua fuzz smoke, 257 Linux matrix checks, source reconstruction and final package verification. The Darwin SDK and smoke bundle were built and inspected locally using osxcross; native macOS execution was not performed.
The benchmark gate skipped because this host has no frozen baseline.
Release artifacts include seven target SDKs, the Darwin smoke bundle, source and standalone-header packages, Lua products and the SHA-256 checksum manifest.
v0.47.0
Array streams can now reuse caller-initialized mapped records through lonejson_array_stream_set_record_reuse() and the receiver's set_record_reuse method. Configure reuse before processing starts; callers retain record reset and cleanup ownership.
Runtime, stream and adapter receiver methods are completed, including public SSE and multipart receiver shells.
ABI compatibility: the shared-library ABI advances from 26 to 27. Public receiver layouts changed; rebuild downstream binaries against the v0.47.0 headers and SDK.
Other changes:
- Report downstream upgrade order during ABI checks.
- Keep native target diagnostics separate from target-ID output.
- Split detailed README content into focused guides and remove obsolete documentation.
- Preserve valid repository toolchain references during package verification while continuing to reject machine-specific cache paths.
Includes seven target SDKs, the standalone header, source archive, Lua source/rock products, a Darwin smoke bundle and the complete SHA-256 manifest. See the documentation index.
Validation completed through the clean local release gate: native/QEMU Linux suites, ASan/UBSan, TSan, Valgrind, local e2e, fuzz smoke, source reconstruction and extracted-SDK consumers. Darwin was cross-built and inspected locally with osxcross. Benchmark comparison was skipped because the release host has no frozen baseline.
v0.46.0
Highlights
- Adopt the split cpkt 0.6.1 SDK provider and standardize local Make, CMake and CTest workflows.
- Fix unoptimized serializer stack exhaustion on musl worker threads with default 128 KiB stacks.
- Produce reproducible SDK, source, Lua source-rock and Darwin smoke archives, including deterministic static-library headers.
- Preserve custom artifact directories through binary verification and remove all owned default artifacts during full cleanup.
- Update project and release URLs to c89systems/lonejson.
Build compatibility
Build configuration and lifecycle helper entrypoints now use cpkt. Replace LONEJSON_C_PKT_SYSTEMS_ROOT with LONEJSON_CPKT_ROOT and use the documented preparation commands. The public C API and shared-library ABI remain unchanged at ABI 26. Optional curl/OpenSSL facade dependencies remain external to the C SDK payload.
Artifacts
This release includes seven per-target C SDKs, the Darwin smoke bundle, the complete source archive, the compressed standalone header, and all three Lua source products. lonejson-0.46.0-CHECKSUMS lists every payload and its SHA-256 digest.
Verification
The complete clean local release gate passed on signed commit 6a6eac45d76b245d44c040155ff8631b3508f7be: debug tests, ASan, TSan, Valgrind, local end-to-end services, AFL++ and Lua fuzz smoke, all six Linux target test lanes, local osxcross Darwin build/link/package checks, source reconstruction, and final archive/installed-consumer verification.
Benchmark comparison was explicitly skipped because the release host has no frozen benchmark baseline. Native macOS execution was not performed; Darwin release proof uses local osxcross.
Full changelog: v0.45.0...v0.46.0
v0.45.0
Lua JSON buffers now grow safely for large inputs, with reliable cleanup across allocation failures and Lua errors. The shared-library ABI remains 26.
- Replace Compose e2e services with rootless Podman Kube and host-removable state.
- Align pinned toolchains, shared archive caches, strict warnings, and public symbol exports.
- Strengthen SDK, Lua, source, and single-header packaging with relocatability checks and safe staging.
- Remove duplicate release checks and make routine finalize checks incremental.
Assets include seven C SDKs, a Darwin smoke bundle, C and Lua source archives, a standalone header, LuaRocks sources, and the SHA-256 checksum manifest.
lonejson 0.44.0
- Hardened the pinned Bootlin development runtime and package artifact verification.\n- Stabilized cross-sanitizer execution and aligned Linux Lua benchmarks with the production module.\n- Improved serializer hot paths while preserving the existing ABI (26).
lonejson 0.43.0
Mapped curl uploads can now rewind and replay after redirects or authentication retries without buffering or measuring the JSON document. Register lonejson_curl_seek_callback with CURLOPT_SEEKFUNCTION and the upload adapter with CURLOPT_SEEKDATA. New is_rewindable and rewind methods expose replay capability and explicit restart.
ABI change: the upload receiver layout advances the shared-library ABI from 25 to 26. Rebuild consumers for ABI 26.
- Cover upload replay with unit tests, real-libcurl loopback integration, and a 72-case HTTPS matrix across POST, PUT, PATCH, redirects, framing, and source types.
- Upgrade to c.pkt.systems 0.9.0 and pinned Bootlin stable 2026.08-1 (GCC 15.3.0) for Linux. Native Apple Silicon builds use Apple tools and the active macOS SDK; Linux-to-Darwin builds use osxcross.
- Make fuzz crash handling work without root privileges or host sysctl changes. Bind AFL++ and benchmark provenance to the selected toolchain.
- Isolate source-package verification from parent Git metadata and require extracted-source tests in the release pipeline.
Includes six Linux SDKs, the Darwin arm64 SDK and smoke bundle, standalone header, source archive, and Lua source packages. Verify downloads using lonejson-0.43.0-CHECKSUMS.
lonejson 0.42.0
Release 0.42.0.\n\nBreaking change: removes candidate streaming and transform APIs.\n\nIncludes c.pkt.systems 0.8.0 SDK bundle integration and lifecycle release-gate alignment.
lonejson 0.41.0
Release 0.41.0 adds runtime candidate read-buffer configuration and candidate hot-path benchmark coverage. ABI/SONAME is 24.