Saturday, September 28, 2024

Deno provides workspaces for managing monorepos

The newest replace to the Deno TypeScript /JavaScript and WebAssembly runtime options workspace assist together with Node.js compatibility enhancements.

Deno 1.45 was launched July 11. The discharge introduces workspaces for managing monorepos, simplifying dependency administration, configuration sharing, and module group throughout giant code bases, Deno Land stated. There are two types of supported workspaces: Deno-first workspaces outlined in deno.json and backwards-compatible NPM workspaces. International configuration for these workspaces is utilized to every member bundle however might be overridden by members. Builders can combine and match NPM and Deno workspaces, with an NPM bundle inside a Deno workspace or vice versa.

For Node.js compatibility, Node-API assist has been revamped, fixing points with packages equivalent to prisma, sqlite3,  and  paper. Different Node.js compatibility enhancements embody engaged on assist for dd.hint and assist for fs.lutimes and fs.lutimesSync. Additionally, node:crypto and node:zlib have been added. The node:http module was up to date, with capabilities equivalent to Server#shut() now doing a swish shutdown, permitting in-flight requests to complete. In one other enchancment, the node:vm will eat much less reminiscence. For NPM assist, sorts shipped with the bundle are now most popular over sorts from @sorts scope.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles