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 EnhancementIn 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
enableis optional on the middleware options (configs.middlewares.cors,bodyLimitand the others). A missingenablealready meant on; onlyenable: falseis off. Writecors: { origin: 'https://app.example' }withoutenable: true. Nothing changes at run time.- The middleware types say what is installed. The framework installs
cors(first) andbodyLimit(right after the request id).compress,csrfandipRestrictionare typed so a config object can carry them, but nothing reads them: wire them insetupMiddlewares(). devz codemodnames 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.