Deno Land has launched Deno 1.44, the most recent model of the JavaScript, TypeScript, and WebAssembly runtime rivaling Node.js. The improve provides assist for personal NPM registries, letting builders use inner packages with Deno by configuring an .npmrc file. Performance of the Deno runtime additionally has been improved.
Deno 1.44 was introduced May 30. Developers can improve to Deno 1.44 by operating the deno improve
command of their terminal.
In explaining assist for personal NPM registries, Deno Land mentioned many massive organizations host non-public NPM registries to handle inner packages. Deno now helps utilizing an .npmrc file to configure Deno to fetch non-public packages from a non-public registry. This functionality is on the market when utilizing non-public packages in a bundle.json or when importing packages instantly utilizing npm:
specifiers.
Deno 1.44 additionally brings efficiency enhancements together with lowered reminiscence utilization with V8 pointer compression, permitting the V8 JavaScript engine to retailer pointers extra effectively. This enhancement is especially helpful for situations with vital object allocations, resulting in lowered reminiscence consumption, Deno Land mentioned. Other efficiency enhancements embrace quicker module loading, quicker startups in AWS Lambda, and quicker language server efficiency.
Deno 1.44 additionally brings quite a few Node.js compatibility enhancements together with the flexibility to run Next.js functions. There nonetheless are points reminiscent of the necessity to use DENO_FUTURE=1
, Deno Land mentioned, however the builders are assured they will rapidly work via these points.
Deno 1.44 follows Deno 1.43, which arrived on May 1 with an enhanced language server. Other new options and enhancements in Deno 1.44:
- Deno can hook up with gRPC companies, reminiscent of Google Cloud Platform, utilizing the
@grpc/grpc-js
consumer library. - The Deno customary library is shifting nearer to stabilization.
- A brand new, secure
DenoexitCode
API permits getting and setting the exit code for a program. - The language server has obtained efficiency enhancements and bug fixes, together with caching for semantic tokens for open paperwork and fixing JSDoc show in named examples.
- The FFI (Foreign Function Interface) API, for calling native libraries from JavaScript code, updates the dealing with of
u64
andi64
sorts from native code. Starting with Deno 1.44, they are going to all the time be of kindbigint
, aligning the API with JavaScript’s dealing with of enormous integers and making certain higher efficiency and kind consistency.
Copyright © 2024…