Changelog - 2026-08-18
ESM builds, one default middleware stack, one request-id rule
Enhancement Bug Fix Behavior ChangeIn one line. Every IGNIS package a browser can use now publishes real ESM alongside CommonJS, and the pieces a server and a browser Worker both need are written once.
What changed
- ESM builds.
@venizia/ignis-kernel,@venizia/ignis-core-worker,@venizia/ignis-connectorsand@venizia/ignis-helperspublishimportandrequireconditions, joining@venizia/ignis-inversionand@venizia/ignis-filter. - No bundler workarounds in a browser app. You no longer need to name IGNIS sub-paths in
optimizeDeps.includeor shim__filenamefor Rolldown. - One default middleware stack. The request id, the framework error handler and the JSON 404 are installed by
RestApplication.registerDefaultMiddlewares(). A server adds its own on top; a browser Worker inherits the three. - One request-id rule. The server and a Worker now stamp the same format. Before, the server used
crypto.randomUUIDand a Worker used a Snowflake id. RelationalMigrationRunnerapplies each migration and its ledger row in one transaction, splitting ondrizzle-kit's--> statement-breakpoint. It is for embedded engines like PGlite, where the file-system migrator does not exist.- The error middleware takes options.
environmentandformatErrorare constructor options onBaseAppErrorMiddleware. An app with no ambient environment, such as a browser Worker, declares one throughconfig.error.environment. - Faster boot and queries. Registering artifacts no longer re-scans the binding map once per item, and an included relation asks the model registry once per query instead of three times.
Who is affected
- Applications on
@venizia/ignis. No action needed. Import specifiers are unchanged. - Applications bundling IGNIS for a browser. You can delete the
optimizeDeps.includeentries and any__filenameshim you added for IGNIS packages. - Anyone importing a deep
dist/...path. The built output moved todist/cjsanddist/esm. Import through the package name or a published sub-path instead. - Anyone who wrote a custom relational driver or subclassed
BaseAppErrorMiddleware. See Breaking changes.
Breaking changes
WARNING
Two internal seams changed shape. Both are protected or contract-level surfaces with no known external users; ordinary applications are unaffected.
A custom relational driver must implement query():
// Before
acquire: async () => ({
connector,
execute: async ({ statement }) => ({ count: 0 }),
release: () => {},
});
// After - `query()` returns rows for a verbatim statement
acquire: async () => ({
connector,
execute: async ({ statement }) => ({ count: 0 }),
query: async ({ statement }) => [],
release: () => {},
});A subclass of BaseAppErrorMiddleware passes options instead of overriding hooks:
// Before
class MyErrorMiddleware extends BaseAppErrorMiddleware {
protected override resolveEnvironment() {
return process.env.NODE_ENV;
}
protected override hasAmbientEnvironment() {
return true;
}
}
// After - the option's PRESENCE is what says this host has an environment at all
new BaseAppErrorMiddleware({ environment: () => process.env.NODE_ENV });AppErrorMiddleware from @venizia/ignis is unchanged for callers.
Details
RequestTrackerComponent no longer installs requestId() itself; the application's default stack installs it first. If you configure that component by hand, outside registerDefaultMiddlewares(), install requestId() yourself or call the default stack.