Deno 1.25 has been released and notable updates include:
deno init subcommand
Starting a new project with Deno has always been easy: all you need is one file to get started. No configuration files, dependency manifests or build scripts are required. Users from other ecosystems are often not used to this simplicity – they usually look for a tool to build a basic project structure.
In this release, Deno adds a
deno init Subcommand to build a basic Deno project.
$ deno init ✅ Project initialized Run these commands to get started deno run main.ts deno test $ deno run main.ts Add 2 + 3 = 5 $ deno test Check file:///dev/main_test.ts running 1 test from main_test.ts addTest ... ok (6ms) ok | 1 passed | 0 failed (29ms)
Experimental npm support
This release adds experimental support for npm. It should be emphasized that this feature is still under development. Deno will improve the compatibility layer and user experience in the next few releases.
New experimental HTTP server API
Deno 1.25 introduces a new experimental HTTP server designed to provide best-in-class HTTP performance. Our benchmarks show a 4x improvement in hello-world requests per second performance compared to Node.js and a 3x improvement compared to our existing web server. The new server is even 20% faster than the single-threaded configuration of the Rust HTTP server Hyper.
Improvements to startup time
When Deno starts up, it analyzes dependencies ahead of time to ensure remote modules are cached. This dependency analysis can be quite unfriendly for large files, so in Deno 1.25 it caches every file behind the scenes. You should be able to notice a considerable improvement in startup time.
Deno.UnsafePointerViewAdded three new static methods
More details can be viewed: https://github.com/denoland/deno/releases
#Deno #released #deno #init #command #News Fast Delivery