Deno 1.30 backs built-in Node.js modules

Federal Court Says Scraping Court Records Is Most Likely Protected By The First Amendment

Model 1.30 of the Deno JavaScript/TypeScript runtime, revealed late January 2023, emphasizes help for crafted-in Node.js modules and presents a key update to the configuration file.

With Deno, npm packages have by now experienced access to designed-in Node.js modules these kinds of as fs (file technique), path, approach, and others as a result of the runtime’s Node.js compatibility layer. In launch 1.30, printed January 25, these modules are exposed to Deno code by way of node: specifiers. For builders employing code with each Deno and Node.js, the node: scheme will work in the two runtimes. Deno has been positioned as a far more protected alternative to Node.js, which has leveraged npm.

Also in Deno 1.30, it now is doable to immediately use a deno.json file as an import map, constituting what proponents described as a key update to the configuration file. Formerly, it was probable to convey to Deno where to look for an import map file by specifying the importMap critical with a path to the import map file. This technique intended there were two data files with configuration. To make points a lot more concise, builders now can specify imports and scopes keys in a configuration file. Deno immediately will address the configuration file as an import map.

Set up instructions for Deno can be discovered at deno.land. Deno 1.30 also features a lot more than 25 bug fixers pertinent to npm performance and Node-API. APIs also have been stabilized such as Deno.Listener.ref() and Deno.Listener.unref(). And deno fmt now can be formatted without semicolons.

Deno 1.30 was preceded by Deno 1.29 in mid-December 2022, showcasing npm compatibility advancements and updates to the REPL. A few largely bugfix issue releases of Deno 1.30 also have been revealed because the arrival of Edition 1.30.

Copyright © 2023 IDG Communications, Inc.