Skip to content

v0.2.1

Choose a tag to compare

@rullopat rullopat released this 25 May 14:36
df871f5

Patch release. Three packages bumped in lockstep and published to npm with provenance:

What's fixed

bazilion@0.2.0 was unusable: npx bazilion serve crashed before the daemon could bind a port.

$ npx bazilion serve
starting bazilion daemon at http://127.0.0.1:4321
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'sqlite' imported from .../node_modules/bazilion/dist/daemon.js

Two bugs in apps/cli/tsup.config.ts, both build-pipeline only — no source-code changes:

  • node:sqlite prefix stripped from the bundle. esbuild's hardcoded known-builtins list predates node:sqlite (Node 22+). It auto-externalizes node: imports before plugin onResolve hooks can intercept them, then strips the prefix at print time — so from 'node:sqlite' shipped as from "sqlite" and Node tried to resolve a userspace package that doesn't exist. No esbuild flag forces the prefix to stay; the fix is a post-build string replace in tsup's onSuccess hook.
  • SQL migrations not staged into dist/. migrate.ts reads them relative to import.meta.url (i.e. dist/migrations/), but tsup only emits JS — the .sql files were never copied. The published 0.2.0 had this bug too; the sqlite crash just masked it. The same onSuccess hook now stages apps/daemon/src/core/db/migrations/*.sql into dist/migrations/.

Verified with a clean BAZILION_HOME: node dist/cli.js serve boots, auto-bootstraps ~/.bazilion, writes auth.json, listens on the port, and /api/health returns 200.

Release-flow change

.github/workflows/release.yml now sets createGithubReleases: false on changesets/action@v1. From here on, the Releases page only shows the hand-crafted umbrella tags (v0.2.0, v0.2.1, …) with curated highlights and compare links — no more parallel per-package GitHub releases cluttering the page (the npm publishes and git tags are unaffected).

Install

npx bazilion serve

Upgrading from 0.2.0

No breaking changes, no migrations, no API changes — just a working bundle. If you tried npx bazilion@0.2.0 and hit the Cannot find package 'sqlite' crash, clear your npx cache or pin the new version explicitly:

npx bazilion@0.2.1 serve
# or
npx --yes bazilion@latest serve

Notes

  • Requires Node 22.12+.

Full changelog: v0.2.0...v0.2.1