Deno Adds API Support For Node.js Compatibility |
Written by Kay Ewbank | |||
Monday, 03 October 2022 | |||
Deno 1.26 has been released with better npm support and support for APIs for Node.js compatibility. Deno is the JavaScript and TypeScript runtime from the creator of Node.js. 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.
More InformationRelated ArticlesDeno Team Announces Big Changes Ahead Deno 1.2 Adds HTTP Auto-Compression Deno 1.14 Improves Web Crypto Support Deno 1.10 Adds Web Storage API Support Node.js Even Its Creator Thinks Its Flawed
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
|||
Last Updated ( Monday, 03 October 2022 ) |