Deno 1.26, the most recent model of the TypeScript/JavaScript runtime that strives to improve on Node.js, emphasizes Node.js compatibility, amongst different enhancements.
Deno 1.26 was unveiled September 29. The replace consists of implementations for a number of beforehand unsupported APIs within the Node.js compatibility layer, in response to release notes. As well as, the compatibility layer’s take a look at suite was up to date for compatibility with Node.js v18.8.0, in preparation for Node.js 18 coming into Lengthy Time period Help (LTS) standing subsequent month.
Additional, Deno 1.26 updates the Node.js streams implementation to make use of the readable-stream@4.1.0 NPM module, permitting Deno to higher sustain with breaking modifications and new options. Inside this compatibility layer, the stream
and stream/guarantees
modules at the moment are applied through readable_stream
. This refactor additionally introduces new APIs together with Writable.toWeb()
and Readable.toWeb()
, that are used to transform Node.js streams to net streams. As well as, fs.ReadStream
and fs.WriteStream
have been up to date to enhance compatibility with implementations in Node.js.
Builders can improve to Deno 1.26 by working deno improve
. Different directions for putting in Deno could be discovered at deno.land.
Additionally in Deno 1.26:
- Bugs have been mounted associated to NPM specifiers. Help for NPM modules stays experimental and requires the
–unstable
flag. - Bugs reminiscent of spurious hangs on Home windows have been mounted within the
Deno.serve()
API, which supplies a quick HTTP server. - Help has been added for a
Cache
net API, to cache request/response objects, useful when dynamically producing responses. - A brand new permission flag,
--allow-sys
, guards entry to APIs that present details about a person’s working system. - Deno 1.26 ships with TypeScript 4.8.
The builders of Deno stated ongoing efficiency enhancements have been made as a part of an initiative to seek out bottlenecks and scale back latency and processing overhead. The staff additionally made developer expertise enhancements, reminiscent of an overhaul of the search functionality on deno.land, enhancing the flexibility to go looking symbols throughout built-in APIs, the Deno normal library, and third-party modules. Different enhancements are deliberate reminiscent of auto-linking between symbols inside documentation.