Changelog
All notable changes to TypeDBLite are recorded here. The format follows Keep a Changelog, and the project follows Semantic Versioning. Before 1.0, a minor version may include breaking changes; they are listed here.
[Unreleased]
Section titled “[Unreleased]”@typedblite/session, a fifth published package: a session over the engine (Session: run, begin, commit, rollback, restart, close, schema) and the statement classifier the CLI used to hold (classifyStatement,splitStatements). A statement’s refusal is returned as data, with areasonto branch on (engine,no-schema,locked,closed,transaction). ThetypedbliteCLI now runs through it, with its behavior unchanged. It has no dependency but@typedblite/runtime.- The TypeQLite engine host (
apps/engine-host, private; ADR-011): a NestJS CQRS app that runs statements in sessions, over five transports from one declaration of its twelve operations: CLI, REPL, sidecar, HTTP and MCP. HTTP and HTTP MCP answer loopback only (peer,HostandOrigin); MCP serves a read tier unless--mcp-write. The extension bundles it and starts it as a process, with anodeit checks first (typedblite.host.node), and features reach it through the commandtypedblite.host.request. - TypeQLite notebooks in the VS Code extension (ADR-012): a Markdown file whose
typeqlfences are code cells.*.tql.mdopens as a notebook, and any*.mdby “Open With”. An unedited notebook is written back byte for byte, an edit changes only its cell’s lines, and outputs are never saved. Cells run on the engine host against one in-memory store per notebook, and show a table, JSON, execution facts, or the engine’s own refusal with its line and column; a long answer shows a page of rows and counts the rest (typedblite.notebook.maxRows). Run All, Run Above, Run Below and Restart work. The language features work across the cells of a notebook. A notebook runs in memory until the user chooses a store file, picks when its writes become permanent (hold changes until Commit, or commit each statement), and sees both in the status bar; the choice is never saved in the notebook or remembered. A notebook exports as a.tqlscript of its code cells and as Markdown. @typedblite/language: a notebook is a schema of its own (schemaOwnerOf,sameSchema,NOTEBOOK_CELL_SCHEME,WORKSPACE_OWNER). Avscode-notebook-cell:document sees its notebook’s cells and no other document, and a file sees no cell, in scoping, completion, rename, hover and the unknown-label check.createTypeQLiteServicestakes an optional second argument, shared services to replace, so a host can supply its ownLanguageServer.- The sync demo runs in a browser page, hub included, and the website shows it at
/sync-demo/. One page owns the hub (a TypeDBLite store on WASM SQLite and OPFS in a dedicated Worker) and embeds three devices, each with its own store and a Disconnect / Reconnect switch; the hub can be killed and brought back on the store it left.npm run demo:browserserves it locally. The hub’s logic isapps/sync-demo/src/browser-hub/hub-core.ts, and a test runs one scenario against it and against the Node hub and checks they end in the same place. A hub cannot be a SharedWorker: Chromium has no synchronous OPFS handles there. Only one tab can own the stores at a time, and the page says so. - Each device in the in-browser demo has its own color (cyan, rose, olive) on its card, on the chip that says where a task was made, and in the hub’s list, in light and dark. The colors are at least 100° of hue apart and clear of the green, red and amber that mean online, offline and waiting, and
browser-hub-build.test.tsholds their contrast and hue distance. The highlight that fades on a change a sync has just brought in takes the color of the device that made the change (a task added on A, checked on B, unchecked on C), not that of the task’s maker. The demo’s task schema gainededited-by, written in the same transaction as the change so that it replicates with it; older stores keep working and read each task as last edited by its maker.DemoDevice.setDoneno longer writes when the task is already in the state asked for. - A TypeQLite notebook that runs in your browser (ADR-013), at
/try/on the website: the TypeQLite half of the five-minute tour (docs/guides/try-it.tql.md, a notebook that also opens in VS Code), run in the page on WASM SQLite in a Web Worker, with nothing to install. Each cell is an editor served by the real language server, which knows the cells above it; Run all, Restart and Ctrl/Shift+Enter work, and everything an answer holds is drawn as text.docs/guides/try-it.tql.mdis played by a journey test on the browser’s kernel, a structure test, and eight Chromium tests. @typedblite/session:SessionOptions.openDatabase, to open the store with something other thannode:sqlite(a browser passesopenWasmSqlite), as the runtime’s interpreter already allowed.@typedblite/notebook(private): the notebook’s pure logic (the file format, the cell runner, outputs, sessions and export), moved out of the extension so the extension and the browser page run a cell by the same code.
Changed
Section titled “Changed”- The five-minute tour is a notebook (
docs/guides/five-minute-tour.tql.md, renamed fromfive-minute-tour.md). Its TypeQLite steps are cells you run in VS Code with each answer printed beneath; the same SQLite file is then used from the command line and a Node program, and seen again in the notebook. It still reads as plain Markdown on GitHub and the website. Three tests play it end to end and hold every printed answer to what ran:npm run tour(the shell and Node steps, from the packed tarballs), a journey test on the notebook’s own engine with the real command line in one timeline, and an e2e in a real VS Code. @typedblite/language:TypeQLiteLabels.workspaceHasSchema,resolveandcandidatestake the document they are asked about (an optionalcontext, andresolve’s site already carries itsdocument). Without one they answer for the workspace’s schema, as before, and no longer count a notebook’s cells in it.- The API reference’s package pages are grouped by purpose and open with an overview. Each package page lists its names under sections such as Engine, Replication and Validation, each with a description, instead of one alphabetical table per kind; the language package’s generated syntax tree has a section of its own. The runtime, language, content-revision and WASM pages gained an introduction with a short example, and link the guides.
- Each class and interface page in the API reference opens with a member summary: a table per group (constructors, properties, accessors, methods) with each member’s first sentence, linked to its detail below.
- The API reference shows no maintainer notes, and describes the generated syntax tree’s properties. Notes marked
🔴or⚠️on an exported name moved under@privateRemarks, which TypeDoc leaves out, and a few comments were reworded where the note was the only description. The properties of the generated node types (EntityDef.name,OwnsTrait.ordered, …) are described from their types and, for a flag, from the keyword the grammar writes.check-apifails on a🔴or⚠️note that would show. - Every name in the API has a doc comment, and so has every member a class or interface declares itself, so the API
reference describes everything it lists.
npm run check-apinow fails when one is missing. The generated syntax tree (@typedblite/language’ssrc/generated/) is documented by a step afterlangium generate(libs/language/scripts/document-generated.mts), because Langium writes those files without comments. @typedblite/language:EntityDefandRelationDefhold theirsubandvalueclauses in lists (superTypes,valueTypes), not insuperTypeandvalueType. The grammar lets those clauses sit among a type’s traits, so one could be written twice, and the second overwrote the first without a word (Langium warned of it on every build). A secondsuborvalueon one entity or relation is now refused withtypedblite.repeated-clause; TypeDB refuses it too (DEX13, checked on 3.10.4).AttributeDefand the re-open and redefine nodes are unchanged.- The test fixtures are original: a project tracker (
tracker,people,sprint,documents) replaces the schemas and example queries adapted from a downstream application, and the load test’sreal-storessuite is removed. Thegrowth,relationsandconcurrencysuites generate their own data, so the load test runs from this repository alone. The performance guide is rewritten on that data, and the old results files are renamed to match (their measurements of the private stores are removed). - Breaking for a hand-written client: a store now checks a revision from a peer against its content, instead
of storing the
revit is given (ADR-003, amended 2026-11-15). A revision must equalcomputeRevisionof its state, parent and deleted flag, and a live one must carry its state. OtherwiseChangeLog.applyRemotethrows with the new codetypedblite.revision-not-derived, a batch is refused whole, and the hub answers 400 naming the change. Before, a peer could send999999-deadbeef, or a revision another store held with different content, which left the two stores split for good while each believed it was in sync.TypeDBLiteReplicatorandreplicateOncesend derived revisions and are unaffected. A peer that may write can still make its write win; authentication decides who may write. - Vitest is now 5.1.0 (from 4.1), with
@vitest/coverage-v85.1.0 beside it, as Vitest requires. No test or config needed a change: none of Vitest 5’s breaking changes (vi.mockinside a function,sequential, the removedvitest/*entry points, unawaitedrejects, browser mode) applies here. Every project runs the same test files. - Nx is now 24.0.6 (from 23.3.0), with
nx migrate’s migrations:nx.jsongainsaffected.legacy: true, sonx affectedkeeps selecting whole projects (nothing here uses it; the gate runs every project). The other two migrations found nothing to change. Nx release’s configuration is unchanged in 24, and its dry runs behave as before. - Breaking:
@typedblite/runtimeexports less. Its entry points now name every export, and these are no longer among them:generateSchemaandSchemaSql(the generated SQL, which the compatibility policy does not cover),translateConstraintError,DiagnosticCollector,rangeOfandrangeFromOffset(internal plumbing), and the re-exports of@typedblite/content-revision’s functions (canonical,computeRevision,conflicts,digestOf,generationOf,winner): import those from@typedblite/content-revision, wherelatestOfalso is. Nothing in this repository, and no known consumer, used them from the runtime. Its types (Revision,EntityState,Leafand the rest) are still re-exported, for the change log’s signatures. attachDiagnostic,canonicalTemporal,instantOf, andTypeDBLiteInterpreter’sevaluationContext,returnedandsegmentForare marked@internal: still there, for the engine’s own modules and the conformance suite, but not part of the API and not in its reference.- The CLI’s npm package is now
typedblite, nottypedblite-cli, so thatnpx typedbliteruns it. The command was alreadytypedblite. Nothing had been published under either name. - Every published package now declares Node 22.16 in
engines, as the repository does.@typedblite/languagesaid>=20.10.0, andnpm >=10.2.3, neither of which anything tested. - The runtime’s optional peer
@sqlite.org/sqlite-wasmis now>=3.54.1-build1 <3.54.2, the version the WASM suites run on. It was^3.50.0, which matches no published version: every one has a-buildNsuffix, which semver treats as a prerelease, sonpm install @typedblite/runtime @sqlite.org/sqlite-wasm, the runtime README’s own command, failed withETARGET. Found by the new clean-room test. - The minimum Node.js version is now 22.16, not 22.12. Node 22.12 has no
node:sqlite, and 22.13 to 22.15 ship it without FTS5, which the engine requires. Checked:node:sqliteand FTS5 probed on 22.12 to 22.21; the full gate run on 22.13.0 (fails: no FTS5) and 22.16.0 (passes). langiumandlangium-cliare now~4.4, andvscode-languageserver~10.1.- Windows is a supported platform: CI’s Windows job (Node 24) is now blocking, like the Linux ones, after the build and every test passed there on two complete runs.
- The language server no longer mixes up the semantic tokens of a notebook’s cells. A notebook asks for the tokens of every cell at once, and each cell is a document; Langium’s provider kept the document it was working on in a field, so overlapping requests wrote one another’s tokens into a response, and a cell could come back with another cell’s tokens in front of its own (Monaco warned they ran past the end of the line).
TypeQLiteSemanticTokenProvidernow answers one request at a time. - A value read as an attribute is refused, as TypeDB refuses it.
given $t: string; match $b isa book, has title $t;matched nothing and said so only in anempty-matchfact; it now throwstypedblite.mixed-pattern(“The variable ‘t’ cannot be declared as both a ‘Value’ and as a ‘Attribute’”), the words TypeDB uses and TypeDBLite already used for aletin the same match. Areduceresult used that way is refused now too.has title == $tis the form that compares a value, and works on both. Agivenof an attribute type (given $t: title) is still an attribute and still joins. Found by running the five-minute tour on a live TypeDB 3.10.4. A query that relied on the empty answer now fails. - An empty answer that joins through a relation no longer reads every relation of the type to explain itself.
A project’s sub-projects took 0.8 ms when it had one and 21 ms (3,000 projects) when it had none, because the
explanation, and
relationHolds, read all rows to learn whether there were any. They now stop at the first. Found by the load test on the new generated data.QueryTracegainsrelationRows. - The extensions’
packageande2etargets named0.0.1in their commands, so the first version bump would have broken both.vscenow names each package from its manifest, ande2e --packagedfinds them the same way. The e2e runner also found a companion’s id by splitting its path on/, which fails on Windows. @typedblite/runtimeand@typedblite/content-revisionwould have been published without their JavaScript. They had nofileslist, so npm fell back to.gitignore, which excludesout/: they would have shipped their TypeScript sources, tests, bench and configs instead. Every published package now has afilesallowlist, itsLICENSE, declaration maps, andrepository,bugs,homepageandkeywords.- The change-stream hub (
createChangeStreamHandler,serveChangeStream) is hardened. It refuses a POST that is notapplication/json(415), which closes the door a web page had to write to a hub on127.0.0.1cross-origin with no CORS preflight; refuses a body overmaxBodyBytes, default 64 MiB (413), before reading it when its length is declared and while reading it when not; refuses a stream pastmaxStreams, default 256 (503,retry-after); applies a pushed batch all or none (ChangeLog.applyRemoteBatch) instead of half; and answers a malformed batch with a 400 that names the problem, and an internal failure with a 500 and no detail, reporting the real error to a newonErroroption. Breaking for a hand-written client that posts withoutcontent-type: application/json;TypeDBLiteReplicatoralready sends it. Not changed by that work: a pushed revision was still stored as given. It is now checked against its content (the entry under Changed). - The
typedbliteCLI now runs on Windows, and through its npmbinlink (npx typedblite, a global install) everywhere. Its entry check compared the script’s file name, split on/, with the module’s URL. On Windows the path has no/, and through thebinlink the name istypedblite, somain()never ran and the CLI exited 0 having printed nothing; the REPL tests failed on the Windows CI runner for that reason. It now compares real paths.out/main.jsalso gains the#!/usr/bin/env nodeline thebinlink needs. Without it, a POSIX shell ran the file as a shell script. - The language server no longer loses a document’s diagnostics when several files are opened at once.
Langium 4.4 could cancel the build between validating a document and publishing its diagnostics, and
never revisit it, so the first of a burst of
didOpens sometimes showed no diagnostics until it was edited (about 3 runs in 10 for five documents).TypeQLiteDocumentBuildernow publishes a validated document’s diagnostics regardless of cancellation. npm run buildno longer fails on Node 24.22 and later.langium generate(langium-cli 4.3.0) threwTypeError: Invalid URLthere, because itsjsonschemadependency resolved schema references against an opaque-path base URL that newer Node versions reject. langium-cli 4.4 does not hit it.package-lock.jsonno longer resolves 336 packages from a local registry (localhost:4873), which madenpm cifail for everyone but the machine that committed it.
- Publishing the VS Code extensions, written and not yet run:
release-extension.ymlpublishes TypeQLite (tagtypeqlite-v<version>) or the Theme Bridge (typeqlite-theme-v<version>) to the Visual Studio Marketplace and Open VSX after the e2e and an approval, and Releasing has the one-time setup. The Theme Bridge gains a changelog and the marketplace metadata the extension has. - An API reference, generated by TypeDoc from the four entry points:
npm run docs:apiwrites it todist/api.npm run check-api, now in the gate and CI, fails on a TypeDoc warning and on a public signature that mentions a type the package does not export. It founddb.changeLog’s type,ChangeLog, andChangeRecord, which nothing exported, and source comments linking to documents one directory too high, or to ADRs of the monorepo the engine came from. @typedblite/runtimeexports the change log’s types:ChangeLog,ChangeRecord,CompactionOptions,CompactionReportandEntityIdentity.@typedblite/languageexportsTypeQLiteLabelServices, which its label-aware providers are constructed with.- Packaging and release. A compatibility policy for the first release and
after; Nx release, configured to version the four npm packages as one group; a release workflow that
publishes a tag with provenance (written while Actions is off, so it has never run); and
Releasing, the process. Two checks join the gate:
npm run check-packages, which reads whatnpm publishwould ship and fails on a missing entry point, a test file, a missing LICENSE and more, andnpm run clean-room, which installs the tarballs in an empty directory and uses the CLI, the runtime onnode:sqliteand on WASM, the published types, and the browser entry. CI gains a clean-room job on Linux, macOS and Windows. @typedblite/languageships its TextMate grammar, as@typedblite/language/typeqlite.tmLanguage.json. Its README already said it did, but the file was in neitherfilesnorexports.- The VS Code extension has a changelog, keywords, a gallery banner, and
homepageandbugslinks, for its marketplace pages. - The playground’s editor is now Monaco, with the real language server behind it over LSP, in a worker: the
server the VS Code extension runs. Errors are underlined as you type, with completion, hover, go to definition,
references, rename, quick fixes, an outline, folding, formatting and names colored by what they resolve to.
@typedblite/languagenow exportsKEYWORD_SCOPES,grammarKeywords,typeqliteTextMateandTEXTMATE_OUT(the table the VS Code grammar is generated from), so the editor’s keyword colors come from the same table. - A browser playground,
apps/playground: write TypeQLite and run it in a browser with nothing to install. The engine is TypeDBLite on WASM SQLite in a Web Worker, each run starts from an empty in-memory database, and nothing leaves the page. Three examples, errors that name their line, results as tables or JSON, and a link that carries the whole program after#code=. Run it withnpm run playground. It is not hosted yet. npm run gate: the whole check in one command, from a clean tree: build, type-check, tests with the 80% coverage floor, the WASM suite, the browser suite and the VS Code e2e (-- --quickskips the last three). GitHub Actions is off for now, so this is how a change is checked.- Community files:
SECURITY.md, issue forms, a pull request template,CODEOWNERS, Dependabot configuration, and continuous integration.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.