Skip to content
All changes

Release

After 0.4.6 - What Changed and How to Upgrade

@venizia/dev-configs, @venizia/ignis-inversion, @venizia/ignis-filter, @venizia/ignis-helpers, @venizia/ignis-boot, @venizia/ignis-kernel, @venizia/ignis-connectors, @venizia/ignis-worker, @venizia/ignis · 0.4.6

Changelog - 2026-11-02 ​

After 0.4.6: what changed and how to upgrade ​

Breaking Change Behavior Change New Feature Bug Fix

In one line. This round removes the old standalone function names (one codemod moves your calls), removes the old logger types, makes AES and RSA async, and puts Hash and the commit token on Bun. Update the packages together and follow the checklist in order.

What changed ​

Each row links the entry with the details.

GroupChangeEntry
Breaking184 public functions moved into classes and their old names are removed, with no aliases. 39 of them took positional arguments and now take one options object. Error and log message tags that carried a function name now carry the class and method. devz codemod namespace-functions rewrites your callsThe old function names are removed
BreakingApplicationLogger, LoggerSlot, LoggerResolver, TLoggerResolver, ResolvedLogger and SHOULD_LOG_DEBUG are removed. LoggerFactory.getLogger([scope]) and LoggerFactory.use({ provider, level }) replace them, and ConsoleLogger.get takes the scope as a stringLoggerFactory in core
BreakingMinIO support, StaticAssetStorageTypes.MINIO and readAffectedRowCount are removedThe old function names are removed (Manual steps)
BreakingAES and RSA return promises and run over Web Crypto; input checks are stricterAES and RSA run over Web Crypto
BreakingLegacyAES, IPayloadCipher, DEFAULT_PAD_END and the cipher option of the JWS and JWKS token services are removed; data in the pre-PBKDF2 format has no reader any moreLegacyAES and the cipher option are removed
BreakingThe Envs alias is removed; applicationEnvironment and AppEnvs stayThe Envs alias is removed
BreakingThe 13 connector sub-paths of @venizia/ignis (/postgres, /sqlite, /search, /typesense, ...) are removed; import them from @venizia/ignis-connectors, which your app lists as a dependency. devz codemod connector-imports rewrites the specifiersThe connector sub-paths are removed
BreakingA dozen exports nothing used are removed (TApplicationError, six filter types, the App constants, ReactEslintConfigs, isSqliteTransaction, two kernel metadata interfaces)Exports that nothing used are removed
BreakingisMailTransport and isValidMailOptions are MailTypeUtility.isTransport and MailTypeUtility.isValidOptionsMail type guards
Breaking@model no longer throws for defaultFilter, defaultLimit, maxLimit, scopeFilter or skipMigrate: a typed model fails the typecheck, an untyped one has the key ignored (a lost scopeFilter means no row scope). devz codemod model-settings is removedThe old @model keys are removed
Behavior changeHash.digest, Hash.hmac and AssetCommitToken need Bun; the mail generators name a bad length or sizeHash and commit token need Bun
Behavior changeCredentialHelper.hash writes argon2id by default; algorithm: 'bcrypt' keeps bcryptCredentialHelper argon2id default and the class itself
Behavior changeThe console is the default logger and @venizia/ignis selects Winston at initialize() when nothing was chosen; debug is decided by a gate read on every line; a Winston that is installed but cannot load prints one warningLoggerFactory in core
Behavior changedevz codemod async-style, const-classes and drop-redundant-casts refuse --write without a path or --all; the async-style and namespace-functions codemods refuse a file with local changesCodemod write needs a path
Behavior changeA search engine 400, 404, 409 or 422 throws the matching 4xx with the engine message, where it threw a 503; transport failures, 5xx, 401, 403, 408 and 429 stay a 503A search engine 4xx is not an outage
Behavior change@venizia/ignis no longer declares pg, postgres, @electric-sql/pglite, @libsql/client, meilisearch and typesense as optional peers; @venizia/ignis-connectors declares themDriver peers move to the connectors
Behavior changeTypesenseConnector.updateByFilter throws a 400 for an empty document; an ITypesenseClientLike you wrote yourself needs documents().exportStreamTypesense streaming export and call timeouts
Breaking (types)IJWTTokenPayload.roles is optional (roles?: TJWTTokenRole[]); bun check flags every read of roles that does not check for it. Nothing changes at run timeroles is optional on the JWT payload
Behavior changeISearchResult.facetCounts is typed (ISearchFacetCount[]) and camelCase: Typesense field_name and stats.total_values become fieldName and stats.totalValues, and Meilisearch gives one entry per field where it gave one raw record. search() also refuses a field the model hides in facetBy, facetQuery, queryBy, groupBy and the highlight fields, with a 400Search count, facets and suggest
Behavior changedevz codemod const-classes writes no comment above the class it createsconst-classes writes no comment
FixThe Vite plugin runs under Node again; the artifact scan cache uses a pure hash, so the first build after the update misses the cache onceVite plugin runs under Node again
FeatureECDH can be imported from @venizia/ignis-helpers/core, so a browser and a server share one classECDH in the browser
FeatureHash takes bytes and several partsHash takes bytes and parts
FeatureRecursiveTreeSql.walk takes several roots or none, one filter for both terms, and start: 'all'Recursive tree roots and filter and Recursive tree start all
FeatureOpt-in lint rules and a codemod for async style (no-inline-await, no-return-await, the hook rules), plus no-await-promise-chain and no-silent-catchAsync style rules, no-await-promise-chain, Async style hoisted names
FeatureA shared kind in the IGNIS preset; the release plan re-releases @venizia/ignis when a tool of its preset changes; the app preset's boot.test.ts and hello.controller.ts now use the class forms (ApplicationBootAssertion.assert({ application }), OpenApiResponses.jsonContent) and the lib preset summary text changedShared preset kind and Release plan includes the preset catalog
FeatureTypesenseConnector.streamDocuments, excludeFields on export, timeoutMs per call and the createClient optionTypesense streaming export and call timeouts
FeatureTypesenseConnector.findDocument answers null for a missing documentfindDocument
FeatureTypesenseConnector.importDocuments takes an opt-in throwOnFail that throws a 422 after the last batchImport throwOnFail
FeatureTransactionDouble, PostgresTransactionDouble and SqliteTransactionDouble take connector, onCommit and onRollbackThe transaction doubles take a connector
FeatureThe search repository has searchCount, facets and suggest; Typesense tuning has typed camelCase names (ITypesenseTuning); a hybrid hit carries rankFusionScore and vectorDistanceSearch count, facets and suggest
Featurepassword on IRedisSingleHelperProps is optionalRedisSingleHelper takes no password

Upgrade checklist ​

Do these in order.

  1. Update every @venizia/* package together. IGNIS packages pin each other exactly, so a partial update leaves two copies of a package.
  2. Commit your work, then run bunx devz codemod namespace-functions (a dry run), then bunx devz codemod namespace-functions --write <paths>. It refuses a file with local changes. It has no --all; with no path it walks the files git knows. It also moves ApplicationLogger.get(...) to LoggerFactory.getLogger([...]). It lists, and never rewrites, a spread argument, an old name used as a value, a re-export, a name collision and an @/ alias it cannot follow.
  3. Fix by hand what the codemod listed and what the typecheck finds: direct ConsoleLogger.get({ scope }) calls (now ConsoleLogger.get(scope)), every LoggerSlot.use({ resolver }) (now LoggerFactory.use({ provider, level })), MinIO uses (use BunS3Helper over the S3 API), readAffectedRowCount, Envs (use applicationEnvironment), and any removed export listed in the entries above. Then run bunx devz codemod connector-imports --write <paths> and add @venizia/ignis-connectors to your dependencies.
  4. Decrypt anything stored with LegacyAES and write it back with AES before you update, then remove cipher from your token service options. Then add await to calls of AES and RSA methods. Check your own subclasses of BaseCryptoAlgorithm and any override of encryptPayload or decryptPayload too. The typecheck does not catch every call: one inside a template string, on an any target, in a JavaScript file, or left floating in a try with no await can slip through.
  5. Search your tests, logs and alerts for the old message tags (see the list in the old-function-names entry) and update what matches.
  6. Call Hash or build a commit token under Node, in a Vite config or in a browser? Move that code to Bun, or use Web Crypto there.
  7. Run bun check and your gates, then decrypt a real stored value. Stored data still reads, and a real value is the proof.
  8. Optional: adopt what is new. Use CredentialHelper for passwords, ECDH from /core in a browser, and the async-style lint rules (devz codemod async-style <path> --write).
  9. Expect the first Vite build to miss the artifact scan cache once.
  10. Copied boot.test.ts or hello.controller.ts from the app preset? The codemod rewrites the calls in your copy; nothing else to do.
  11. Search your models for the old @model keys. defaultFilter, defaultLimit, maxLimit, scopeFilter and skipMigrate next to @model or model(, in .js files and in any-typed code too: the decorator no longer throws, so a scopeFilter left in place means no row scope. Move each key by the table; there is no codemod.
  12. Check what matches a search engine 503. A retry policy, alert or catch that matches core.search_engine.dependency_unavailable for a request the engine rejected now sees a 400, 404, 409 or 422. Retry only 5xx.
  13. List your database or search driver in your own dependencies. @venizia/ignis no longer declares pg, postgres, @electric-sql/pglite, @libsql/client, meilisearch and typesense as peers; @venizia/ignis-connectors does (details).
  14. Wrote your own ITypesenseClientLike? Add exportStream to its documents(), and pass createClient if you set timeoutMs.
  15. Run bun check and handle a missing roles. Where code reads roles from a verified token or from Authentication.CURRENT_USER, write payload.roles ?? []; type a roles codec as IPayloadFieldCodec<TJWTTokenRole[]>; delete a cast that only hid the missing field (details).
  16. Read facetCounts anywhere? Rename field_name to fieldName and stats.total_values to stats.totalValues; on Meilisearch, read one entry per field (counts: [{ value, count }]) instead of facetCounts[0]. Then check that no search() call names a hidden field in facetBy, facetQuery, queryBy, groupBy or the highlight fields: it now throws a 400 (details).

Who is affected ​

  • Callers of old standalone function names and old logger types. Steps 2-3.
  • Callers of AES or RSA, and holders of LegacyAES data. Step 4.
  • Callers of Hash or builders of a commit token under Node, in Vite or in a browser. Step 6.
  • Owners of @model classes and of search-engine error handling. Steps 11 and 12.
  • Apps that use a database or search driver, or wrote a Typesense client of their own. Steps 13 and 14.
  • Code that reads roles from a JWT payload. Step 15.
  • Code that reads facetCounts or facets on a hidden field. Step 16.
  • Everyone else. Update the packages together and run the codemod.