Release notes
The coordinated KetJS 0.8.1 patch raises the supported Node.js floor to releases with the current security fixes and checks it in CI.
Current release#
Coordinated package version: 0.8.1.
KetJS releases five packages together: View, View Tools, Create View, the core framework and the optional PostgreSQL adapter. Keep the framework packages used by an application on the same version.
KetSuite, its design system, Flow and website clients are maintained and released from the KetSuite source. They are consumers of the framework rather than packages built in this repository.
What 0.8.1 fixes#
- Node.js security floor. Every package declares
engines.node^24.22.1 || >=26.12.1. These are the latest Node.js security releases of the supported lines (2026-10-20 and 2026-10-21); they fix four high-severity issues, including a Brotli decoder out-of-bounds write thatfetch()reaches through automaticbrdecoding. Node.js 25, whose support ended on 2026-06-01, is no longer admitted.create-viewwrites the same floor into new projects. See Upgrading KetJS. - The floor is checked. A daily workflow compares
.nvmrcandengines.nodewith the Node.js security releases and release schedule, and keeps one issue open while a newer security release is not adopted. The release checker refuses a package with any other floor.
This patch changes no public API or application data schema. Run 24.22.1 or later on 24.x, or 26.12.1 or later, in development, CI and production images; npm warns about an older Node.js and refuses it with engine-strict.
Use npm and the 0.8.1 GitHub release for the coordinated packages and release status.
Previous release: 0.8.0#
- Mirror server state.
@ketvietlab/ketjs-view/mirrorprovides keyed reads, shared requests, parsing, invalidation, optimistic writes and rollback. Scope changes isolate cached answers and queued writes; consumers own transport and explicitly start browser wiring. See Server state with Mirror. - Island stores.
@ketvietlab/ketjs-view/storegroups read-only state, derived values, batched actions and cancellable tasks for one island instance. Connections start after mount and owned resources are disposed with the store. See Island state with stores. - Strict composition checks.
ket check --strictfails on contract warnings as well as errors, allowing applications to enforce the upcoming contract boundaries before 1.0. Plainket checkkeeps its existing warning behavior. See CLI and configuration. - PDF table wrapping. Table cells wrap within measured column bounds, and row height accommodates the wrapped content. See Reports.
- Release verification. Historical audits survive metadata-only Git rewrites through verifiable original commit objects. Current release evidence still requires the exact source and executable docs/lab checks. The release workflow rebuilds the documentation site after npm publication. See Publishing packages.
Mirror and stores are opt-in additions. This release changes no application data schema; deploy matching server and client bundles together and review Upgrading KetJS. The documented ket install and architecture-lint designs remain plans, not shipped CLI commands.
Use npm and the 0.8.0 GitHub release for the coordinated packages and release status.
Previous release: 0.6.2#
- Return anchors survive fragment navigation. Fetch drops the fragment from a response URL, so a fragment navigation to a link such as a native Back link with
#row=…lost the row it should return to. The runtime keeps the requested anchor when the response names the same origin, path and query and was not redirected, and uses that complete URL for history, anchor focus andket:navigation-complete. A redirected or changed destination keeps its own URL and never inherits the anchor. See Fragment navigation and persistent islands.
This patch changes no public API or application data schema, and applications need no change. Deploy matching server and client bundles together.
Previous release: 0.6.1#
- Conflict status. A
/_ket/fncall whose handler throwsKetErrorwith codeconflictorE_CONFLICTanswers HTTP409instead of400. The body and the transaction rollback are unchanged, and other domain codes still answer400. See the generic transport. - Text-only elements hydrate. SSR writes no hydration markers inside
<noscript>, and hydration builds the content of<title>,<textarea>,<style>,<script>and<noscript>instead of walking it. An island with a<noscript>notice no longer fails hydration and renders again, and a hole in a<textarea>keeps updating. See Server rendering. - Working playground. The playground preview runs
onSubmithandlers again and still cannot send a form anywhere.
This patch keeps application data schemas unchanged. Deploy matching server and client bundles together, and check clients that expect 400 for a conflict; see Changes in 0.6.1.
Previous release: 0.6.0#
The 0.6.0 release closes defaults that failed open before 1.0, so most applications need changes. Work through Changes in 0.6.0 on a staging copy first and read every contract_warning that ket check prints.
- Company scope is opt-in. A deployment sets
companies: trueto scope rows by company. Without it, models need noscope, and requests, sessions and jobs carry no company. See Models and scopes. - Fail-closed identity. Signing users in requires
serve.permissions. The development identity needsKET_DEV=1. Outside development, sessions need a stable secret and the cookie is alwaysSecure. A/_ket/fncall with a session must be same-origin JSON. - Explicit previews. A real call returns
{ ok, value, dryRun }. Dry runs are opt-in per function and discard the jobs they enqueue. - Stricter contracts. Effects are held to the transitive
dependsand the newoptionalkey. Views cannot expose sensitive fields. Names andcompatibleranges are validated. A company's row cannot reference another company's row (E_CROSS_COMPANY_REFERENCE). - Safer values and rendering.
datetimeaccepts ISO-8601, read inKET_TIMEZONEwhen it has no offset, andintmust be a safe integer. A bound scripting URL renders asunsafe:.text(),bytes()andstreamed()refuse markup types. - Operations. Migrations take a PostgreSQL advisory lock. Deployments sharing a datastore migrate to the union of their schemas. Schema verification finds PostgreSQL indexes whose names exceed 63 bytes. HTTP shutdown is bounded by
serve.shutdownGraceMs.
Previous release: 0.5.1#
- Hydrated SVG updates. Dynamic holes retain their SVG namespace, including nested templates and keyed entries. Content inside
foreignObjectuses the HTML namespace, and its mixed-case tag no longer causes a hydration mismatch. See Rendering. - Reliable keyed moves. Both hydrated and client-rendered entries move the current content of top-level holes with their anchors. Reordering no longer restores removed server content or leaves current content behind.
- Minimal first reorder. Adopted list entries retain their actual positions, so the first reconciliation moves only entries whose position changed.
This patch keeps public APIs and application data schemas unchanged. Deploy matching server and client bundles together; see Upgrading KetJS.
Previous release: 0.5.0#
- Independent session-auth starter.
ket new NAME --auth=sessiongenerates application-owned User, Role, Grant and Assignment models, hidden/stdin provisioning, native login/logout/me routes and owner-filtered sample operations. There is no KetSuite dependency or default password. Bare--authpreserves the project name and directory options. See Authentication starter. - Explicit companyless identities.
sessions.requireCompany: falseseparates authentication from company scope. The default remains company-required; the opt-in does not grant access to company data. Cookie issuance, reads, updates and gateway assertions share company/branch membership validation. See Sessions and tenants. - Credential and proxy contracts. The starter preserves UTF-8 credentials across stdin chunks, uses bounded scrypt verification, shares origin host/port checks through TLS termination and supports explicit trusted proxy IPs for per-client login limits. Grants use one combined query, and initial authenticated reads avoid unnecessary session-context revision updates. Existing KetSuite credential helpers and account models remain unchanged.
- Executable release evidence. One root
VERSIONdrives package, scaffold, docs and learning-lab mirrors.CHANGE_LOGrecords the version commit, reason and verified docs/lab/download evidence; CI rejects missing or stale evidence. See Publishing packages.
Previous release: 0.4.0#
- Shared nested form contracts. Declare objects, arrays and records, explicit null/empty handling, bounded collections and stable keyed issue paths. The same browser-safe validation contract runs on the client and server. See Form validation.
- Edit sessions and native binding.
createFormSessionretains immutable drafts and baselines, tracks revision and dirty state, prevents concurrent submits and preserves the intent for an unknown-outcome retry.attachFormbinds native controls and accessible errors. ExistingcreateFormconsumers remain supported. See Forms and edit sessions. - Atomic form actions.
defineFormActioncommits domain writes and the accepted receipt together. Refusals roll back, declared public projections filter outcomes, and notifications publish after commit. Permissions, ownership and revision checks remain in domain handlers. See Transactional form actions. - Measured adapter performance. The adapter indexes controls, groups issues once, avoids unchanged DOM assignments and caches baseline validation. In the recorded 500-field synthetic workload, one invalid edit fell from a 64.05 ms median to 2.35 ms. Full draft validation still scales with form size; these are dispatch-to-DOM-settlement measurements, not paint or INP. See Benchmarks for the pinned RHF/Formik comparison and limitations.
Previous release: 0.3.0#
- HTTP function bindings. Publish server functions as ordinary HTTP operations using
httpRoutes(), with input mapping and explicit public output projections. Validation, permissions and idempotency remain inctx.call. See HTTP contracts and OpenAPI. - Declared result cardinality. Function contracts describe one result, many results or no result, so the runtime and generated response schemas agree.
- OpenAPI export. Export the composed deployment with
httpOpenApiDocument()orket openapi. See CLI and configuration. - Spec in new projects.
ket newscaffoldsnpm run openapiandnpm run api:docs, using the separately released@ketvietlab/ketspec@0.1.41. See Spec for the static reference and try-it console.
The 0.3.0 history is recorded in its GitHub release.
Previous release: 0.2.0#
- Faster server rendering. The JSX runtime caches element shapes, and the server writer compiles each template once. See Benchmarks.
- Opt-in JSX compiler.
defineConfig({ compileJsx: true })compiles static JSX subtrees intohtmltemplates for pages and islands together. See Compile JSX. - Island-local hydration recovery. A hydration mismatch now re-renders only its island on the client, and the islands after it still hydrate.
ket-view devkeeps mismatches loud. See Rendering. - View Tools and starter.
definePages()collections, Open Graphpropertymetadata, safely serialized JSON-LD, external head scripts and TSX starter files.
Server markup must be hydrated by the same ketjs-view version and the same JSX build that rendered it, so deploy server and client together.
Preview stability#
The current 0.8.1 release is preview software. Read the upgrade guide before updating existing application code or datastores. A shared package version does not guarantee that an application upgrade needs no migration.
Track changes#
Published tags and release descriptions are on GitHub Releases. Guides state the minimum framework version needed for new contracts; future source-only contracts are labelled separately.
Start a new application with Installation. Release maintainers should use Publishing packages.