Thursday, February 9, 2023
HomeITDeno 1.30 backs built-in Node.js modules

Deno 1.30 backs built-in Node.js modules


Model 1.30 of the Deno JavaScript/TypeScript runtime, revealed late January 2023, emphasizes assist for built-in Node.js modules and affords a serious replace to the configuration file.

With Deno, npm packages have already had entry to built-in Node.js modules reminiscent of fs (file system), path, course of, and others by means of the runtime’s Node.js compatibility layer. In launch 1.30, revealed January 25, these modules are uncovered to Deno code by way of node: specifiers. For builders utilizing code with each Deno and Node.js, the node: scheme will work in each runtimes. Deno has been positioned as a safer various to Node.js, which has leveraged npm.

Additionally in Deno 1.30, it now could be attainable to straight use a deno.json file as an import map, constituting what proponents described as a serious replace to the configuration file. Beforehand, it was attainable to inform Deno the place to search for an import map file by specifying the importMap key with a path to the import map file. This strategy meant there have been two recordsdata with configuration. To make issues extra concise, builders now can specify imports and scopes keys in a configuration file. Deno robotically will deal with the configuration file as an import map.

Set up directions for Deno will be discovered at deno.land. Deno 1.30 additionally consists of greater than 25 bug fixers pertinent to npm performance and Node-API. APIs even have been stabilized together with Deno.Listener.ref() and Deno.Listener.unref(). And deno fmt now will be formatted with out semicolons.

Deno 1.30 was preceded by Deno 1.29 in mid-December 2022, that includes npm compatibility enhancements and updates to the REPL. Three principally bugfix level releases of Deno 1.30 even have been revealed because the arrival of Model 1.30.

Copyright © 2023 IDG Communications, Inc.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments