Deno 2.2 also introduces a major upgrade to deno lint
, which features a new plugin system and 15 rules particularly for React and Preact users. The rules include jsx-boolean-value, jsx-button-has-type, jsx-curly-braces, jsx-key, jsx-no-children-prop, jsx-no-comment-text-nodes, jsx-no-duplicate-props, jsx-no-unescaped-entities, jsx-no-useless-fragment, jsx-props-no-spread-multi, jsx-void-dom-elements-no-children, no-useless-rename, react-no-danger-with-children, react-no-danger, and react-rules-of-hooks.
To improve performance, Deno 2.2 now clears information about module analysis after a timeout. This leads to lower memory consumption, according to Deno Land officials. In another performance boost, Deno.stat
and node:fs.stat
now are as much as 2.5 times faster on Windows. Also, Node.js module resolution is made faster by limiting conversions between URLs and paths.
Deno 2.2 has a change to the deno outdated
tool that adds an interactive way to update dependencies, according to Deno Land. And Node.js and NPM compatibility improvements continue with Deno 2.2, with capabilities such as .npmrc files now being discovered in the home directory and project directory.