Learn extra at:
Deno 2.2 additionally introduces a significant improve to deno lint
, which encompasses a new plugin system and 15 guidelines notably for React and Preact customers. The foundations embody 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 enhance efficiency, Deno 2.2 now clears details about module evaluation after a timeout. This results in decrease reminiscence consumption, in response to Deno Land officers. In one other efficiency increase, Deno.stat
and node:fs.stat
now are as a lot as 2.5 instances quicker on Home windows. Additionally, Node.js module decision is made quicker by limiting conversions between URLs and paths.
Deno 2.2 has a change to the deno outdated
software that adds an interactive way to replace dependencies, in response to Deno Land. And Node.js and NPM compatibility enhancements proceed with Deno 2.2, with capabilities equivalent to .npmrc recordsdata now being found within the house listing and undertaking listing.