Skip to content
All changes

Release

After 0.4.2 - What Changed and How to Upgrade

@venizia/ignis-kernel, @venizia/ignis-connectors, @venizia/ignis-helpers, @venizia/ignis-inversion, @venizia/ignis, @venizia/dev-configs · 0.4.2

Changelog - 2026-10-26 ​

NOTE

devz codemod model-settings, named on this page, was removed in @venizia/dev-configs 0.4.7-5; on that release or later it exits 2 as an unknown codemod. Run it from an earlier release, or move the keys by hand with the table in the old @model keys are removed.

After 0.4.2: what changed and how to upgrade ​

Security Breaking Change Behavior Change

In one line. 0.4.3 closes a security gap in how shared rows are written, removes the flat @model settings keys that 0.4.2 deprecated, and makes devz codemod a dry run. Run the codemod, review your shared rows, and the rest needs no action.

What changed ​

Each row links the entry with the details.

GroupChangeEntry
SecurityA restricted caller could change or delete a shared row when write.sharedRows was false. Updates and deletes now leave shared rows out unless it is trueShared rows need sharedRows
BreakingdefaultFilter, defaultLimit, maxLimit and scopeFilter are removed from @model settings and the decorator throws on them; getScopeFilterSettings() is getAccessSettings()Deprecated model settings keys removed
Behavior changedevz codemod model-settings is a dry run unless you pass --write; devz clean --help no longer deletesdevz codemod
Behavior change@model type is optional ('view' throws); skipMigrate is deprecated for migration: { use } and warns at boottype and migration settings
Behavior changeESLint warns on a string-literal union in an exported type and on an as X cast. Never fails the lintConst classes
FeatureString options in the kernel, connectors, helpers, inversion and the server are const classes with SCHEME_SET and isValid; the rule builder options of @venizia/dev-configs are const classes tooConst classes
FixTSearchScopeResolver is exported, so defineSearchController type-checksTSearchScopeResolver

Upgrade checklist ​

Do these in order.

  1. Update every @venizia/* package together to 0.4.3. IGNIS packages pin each other exactly, so a partial update leaves two copies of a package.
  2. Run the codemod. It rewrites the removed @model settings keys and skipMigrate:
bash
bunx devz codemod model-settings           # dry run: lists the files, writes nothing
bunx devz codemod model-settings --write   # rewrites them
bun fmt && bun run typecheck               # tidy the formatting, then check
  1. Fix what the codemod prints. It leaves a settings value it cannot read for sure (a variable, a call, a spread) and names the file and line. Rename any override of getScopeFilterSettings() to getAccessSettings().
  2. Review shared rows. If a scoped model has rows with null in the scope column (for example merchantId: null) and write.sharedRows is false, a restricted caller can no longer update or delete them. Set sharedRows: true only if that caller should. A scope shape the guard cannot read makes deletes fail with 403 scope_write_denied, as updates already did.
  3. Remove type: 'view' from any @model. Views were never supported and the decorator throws on it. type: 'entity' can be removed.
  4. Optional: act on the new lint warnings when you touch the code. They never fail the lint.

Coming from before 0.4.2? Also read a CRUD write route no longer inherits a read-only authorize (defineCrudController refuses to boot when the controller-level authorize is read-only), scopeFilter now holds writes to the scope and model settings under query and access.

Who is affected ​

  • Models that use an old settings key or skipMigrate. Run the codemod; the old keys throw at boot.
  • Scoped models with shared rows. Step 4.
  • Everyone else. The const classes keep their values and public types stay assignment-compatible; no action needed.