|Deno Adds API Support For Node.js Compatibility|
|Written by Kay Ewbank|
|Monday, 03 October 2022|
Deno is built in Rust and was designed to be secure by default as it has no file, network, or environment access, unless explicitly enabled. Deno was created by the same developer who created node.js - Ryan Dahl - and its name is a rearrangement of the letters in node.
This release fixes a lot of bugs related to npm specifiers and adds several new npm related features. npm specifiers resolve npm packages to a central global npm cache. Support for npm modules is still experimental, but the developers are continuing working on npm support and plan to add TypeScript and editor integration in coming weeks.
Deno v1.26 also includes implementations for several previously unsupported APIs in the Node.js compatibility layer, and the entire compatibility layer's test suite has been updated for compatibility with Node.js v18 in preparation for Node.js 18 entering Long Term Support (LTS) in October.
Support has been added for the Cache Web API in this release. This can be used to cache Request/Response objects, which then facilitates dynamically generation of responses. It allows you to cache a response for a GET request and serve response from the cache for similar requests.
Other APIs that have received attention include the hostname, refTimer and unrefTimer APIs, all of which have been stabilized in this release and no longer require the --unstable flag to be used.
Deno has also added support for some of the latest elliptic curves in the WebCrypto API. The WebCrypto Secure Curves specification includes a number of elliptic curves over prime fields that offer a high level of practical security in cryptographic applications. This works because it's unlikely that someone attempting to break a cryptographic key could identify the discrete logarithm of a random elliptic curve element. Deno now implements the CFRG curves Ed25519 and X25519, and the developers plan to add support for Ed448 and X448 in future releases.
Deno 1.26 is available now.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Monday, 03 October 2022 )|