Skip to content
All changes

EnhancementFix

enable Is Optional on Middleware Options, and devz codemod Names a Path It Cannot Read

@venizia/ignis-kernel, @venizia/dev-configs

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.

enable is optional on middleware options, and devz codemod names a path it cannot read ​

Bug Fix Enhancement

In one line. enable is optional on the middleware options, the middleware types say what the framework installs, and devz codemod says when a path holds nothing it can read. Ships in 0.4.4.

What changed ​

  • enable is optional on the middleware options (configs.middlewares.cors, bodyLimit and the others). A missing enable already meant on; only enable: false is off. Write cors: { origin: 'https://app.example' } without enable: true. Nothing changes at run time.
  • The middleware types say what is installed. The framework installs cors (first) and bodyLimit (right after the request id). compress, csrf and ipRestriction are typed so a config object can carry them, but nothing reads them: wire them in setupMiddlewares().
  • devz codemod names a path it cannot read. devz codemod model-settings generated/ on a folder git ignores used to print "0 file(s) would change", which looks like a clean tree. It now says that the path holds no source files the codemod may read, and that nothing was read. The exit code is unchanged.

Who is affected ​

Nobody has to change anything.