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.

deno

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.

 

deno

More Information

Deno Website

Related Articles

Deno Team Announces Big Changes Ahead

Deno 1.2 Adds HTTP Auto-Compression

Deno Joins ECMA

Deno 1.14 Improves Web Crypto Support

Deno 1.10 Adds Web Storage API Support

Deno Developers Form Company

Deno Adds WebGPU 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.

Banner


Conference Times Ahead
29/03/2024

Following a well-established pattern both Google's and Microsoft's Developer Conferences will take place in May while Apple follows on in June. Here are the dates plus what to expect.



The WinterJS Javascript Runtime Is Asking For Your Attention
11/04/2024

WinterJS is a brand new Javascript runtime by Wasmer which comes with the claim that it's the fastest of them all. Let's find out if that holds true.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 03 October 2022 )