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


Visual Studio 17.12 Released Along With Aspire
25/11/2024

Visual Studio 2022 v17.12 is now available. The release can be used for .NET 9 projects and has a range of other improvements.



The Advent of SQL 2024 Has Commenced
11/12/2024

It's Advent - the time of year when we countdown the days to Christmas - and if your are a programmer complete daily coding challenges with the Advent of Code, the Advent of Perl, the Advent of Java,  [ ... ]


More News

espbook

 

Comments




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

Last Updated ( Monday, 03 October 2022 )