@primate/core changelog
0.14.3 (2026-11-19)
- Detach Store transactions from the shared request context after commit or
rollback. After awaiting a transaction helper, the caller can use Stores
normally or start another transaction. Requests remain isolated, and
overlapping transactions on the same database in one context are still
rejected. Await all work that should be included in the transaction before
committing or leaving the
await usingblock.
0.14.2 (2026-11-16)
- Support per-call headers for navigation refreshes through
NavigationRefreshOptions: records, header-pair arrays andHeadersinstances are snapshotted when called, including for deferred refreshes. - Preserve required
AcceptandPrimate-Navigationheaders. Adjacent queued calls with identical effective headers coalesce; different contexts run in order without merging or leaking headers into other navigation. - Preserve foreground navigation priority and replay interrupted refreshes
with their original header snapshot. Existing no-options refresh calls and
the
NavigateOptionstype remain compatible. - Require Pema 0.14.2 or a later compatible patch, including its already-released exact loose bigint string coercion fix.
0.14.1 (2026-11-13)
- Bound buffered request bodies before decoding and validation: 1 MiB for
JSON/form/text and 16 MiB total for multipart/blob by default. Overflow
cancels reading and returns HTTP 413, including chunked requests without
Content-Length. Configurehttp.body.limit,http.body.uploadLimit, or a handler'sroute.with({ limit })for larger requests. Direct reads throughrequest.originalare not covered. This is not a streaming upload API. - Prevent dot-segment normalization from turning same-origin redirects into
protocol-relative external targets in
LocationorPrimate-Redirect. ExplicitallowExternalbehavior is unchanged. - Cancel discarded response bodies on HEAD requests, including GET fallback
streams and native responses passed to
response.abort(), so stream-owned cleanup can release timers and subscriptions. Response status and headers are preserved; cancellation does not delay the HEAD response.
0.14.0 (2026-11-12)
- Added scoped SQL Store transactions with explicit commit/rollback and held locks for PostgreSQL, MySQL, Oracle, and SQLite. SQLite uses a database-wide write fence rather than row-level locks; other Store drivers do not support the transaction API.
- Session operations now await Store-backed reads and writes, including inside active transactions. Request context follows asynchronous handlers and coroutine/Promise continuations.
- Added lowercased route identity and collision detection across backends, explicit page responses for non-JS backends, and live SSE/WebSocket response handling at the Core boundary.
- Removed automatic Store
.sequence()fields. Preserve durable high-water sequence values before switching to application-managed numbering. - Added the in-process application test boundary, native iOS build support, and stricter route-hook and native-add-on validation.
- Direct
@primate/core/dbconsumers must importsql_placeholdersandreplace_sql_parametersfrom its default aggregate; the runtimeCodevalue on@primate/core/db/errorsis nowerrors.Codeon its default aggregate. The namedCodetype remains available.
Keep generated route integration private
Generated browser route clients now use a private build-time module, while the
private serving runtime owns server route registration. The public route
factory no longer exposes the generated-only connect operation, and the
Router singleton is no longer available through public package entrypoints.
Typed browser HTTP methods and server route registration continue to work
without application changes.
Reject misplaced route hooks
Production builds now reject a function created by route.hook() when it is
exported from an ordinary route file. Route hooks must be exported from
+hook.js, +hook.ts, or another supported backend extension using the
+hook basename. Previously, a misplaced hook was silently omitted from the
route registry.