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 ChangeIn 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.
| Group | Change | Entry |
|---|---|---|
| Security | A 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 true | Shared rows need sharedRows |
| Breaking | defaultFilter, defaultLimit, maxLimit and scopeFilter are removed from @model settings and the decorator throws on them; getScopeFilterSettings() is getAccessSettings() | Deprecated model settings keys removed |
| Behavior change | devz codemod model-settings is a dry run unless you pass --write; devz clean --help no longer deletes | devz codemod |
| Behavior change | @model type is optional ('view' throws); skipMigrate is deprecated for migration: { use } and warns at boot | type and migration settings |
| Behavior change | ESLint warns on a string-literal union in an exported type and on an as X cast. Never fails the lint | Const classes |
| Feature | String 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 too | Const classes |
| Fix | TSearchScopeResolver is exported, so defineSearchController type-checks | TSearchScopeResolver |
Upgrade checklist
Do these in order.
- 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. - Run the codemod. It rewrites the removed
@modelsettings keys andskipMigrate:
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- Fix what the codemod prints. It leaves a
settingsvalue it cannot read for sure (a variable, a call, a spread) and names the file and line. Rename any override ofgetScopeFilterSettings()togetAccessSettings(). - Review shared rows. If a scoped model has rows with
nullin the scope column (for examplemerchantId: null) andwrite.sharedRowsisfalse, a restricted caller can no longer update or delete them. SetsharedRows: trueonly if that caller should. A scope shape the guard cannot read makes deletes fail with 403scope_write_denied, as updates already did. - Remove
type: 'view'from any@model. Views were never supported and the decorator throws on it.type: 'entity'can be removed. - 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.