Deno 1.26, the most current variation of the TypeScript/JavaScript runtime that strives to improve on Node.js, highlights Node.js compatibility, among other improvements.Deno 1.26 was unveiled September 29. The update includes implementations fora number of previously unsupported APIs in the Node.js compatibility layer, according to release notes. In addition, the compatibility layer’s test suite was updated for compatibility with Node.js v18.8.0, in preparation for Node.js 18 entering Long Term Assistance(LTS )status next month.Further, Deno 1.26 updates the Node.js streams implementation to use the [email protected] NPM module, permitting Deno to better stay up to date with breaking modifications and new features. Within this compatibility layer, the stream and stream/promises modules are now implemented via readable_stream. This refactor also introduces new APIs consisting of Writable.toWeb ()and Readable.toWeb (), which are utilized to convert Node.js streams to web streams. In addition, fs.ReadStream and fs.WriteStream have actually been upgraded to improve compatibility with implementations in Node.js.Developers can upgrade to Deno 1.26 by running deno upgrade. Other directions for installing Deno can be discovered at deno.land. Likewise in Deno 1.26: Bugs have actually been fixed related to NPM specifiers. Support for NPM modules stays experimental and needs the– unsteady flag. Bugs such as spurious holds on Windows have been fixed in the Deno.serve()API, which offers a fast HTTP server.
Support has actually been included for a Cache web API, to cache request/response things, practical when dynamically generating actions. A new consent flag
,– allow-sys, guards gain access to