Dependency administration enhancements embody supporting dist
tags and recommend npm packages. Builders now can use dist
tags when including npm dependencies. Additionally, deno add
now will present a useful message when making an attempt so as to add a bundle from JSR that solely is out there on npm. With deno take away
, Deno now has a subcommand to take away a dependency from the config and lockfile. And builders can invoke a deno clear
to purge the worldwide cache used to retailer distant dependencies for environment friendly use throughout a number of tasks.
Deno 1.46 boosts the efficiency of the Deno.serve()
API by 8% to fifteen% whereas crypto.randomUUID()
is 5 instances quicker, based on Deno Land. Additional, deno serve
now helps a --parallel
flag that runs the server on a number of threads. Additionally, Response.clone()
is 80% quicker and deno doc
has been optimized to enhance reminiscence utilization. And the commonplace library in Deno 1.46 now could be secure.
With Deno 1.46 having now arrived, a primary launch candidate of Deno 2 is predicted shortly. Deno 2 may have some “minor” breaking modifications, together with API modifications and deprecations. Different enhancements in Deno 1.46 embody: