Deno 1.34, the most recent launch of the JavaScript and TypeScript runtime positioned as an alternative choice to Node.js, improves compatibility with NPM and Node.js and enhances the developer expertise, in accordance with proponents.
With Deno 1.34, unveiled on Might 25, deno compile helps NPM packages. Since Deno 1.6, launched in December 2020, deno compile has allowed the compilation of tasks right into a single binary executable, which lets builders distribute and execute binaries on all main platforms with out putting in Deno dependencies. This characteristic—which simplifies deployment and accelerates startup time—has now been prolonged to NPM.
Previous to the Deno 1.34 launch, deno compile additionally added assist for net staff and dynamic imports. Extra work is on the horizon for this characteristic, together with minimizing whole binary measurement.
Like final month’s Deno 1.33 launch, Deno 1.34 is a precursor to a deliberate Deno 2 launch. Different new capabilities embrace:
- Globs, that are patterns specifying units of filenames with wildcard characters, are supported within the configuration file
deno.json,deno.job, and CLI arguments for specifying information. Theglobsyntax is cross-platform, so it may be used on Home windows, MacOS, or Linux. - TLS (transport layer safety) certificates containing IP addresses are supported. That is helpful for functions corresponding to Kubernetes pods, which regularly use IP addresses as a substitute of domains, and for DNS over HTTP/TLS, which wants an IP tackle for the server to keep away from round dependency on identify decision.
- For NPM and Node.js compatibility,
deno vendorhandles NPM specifiers and can not increase an error when encountering them. Additionally,deno jobrunspreandput upscripts if current when executing a script from apackage deal.jsonfile just like NPM. - It is attainable to specify a
nodeModulesDirproperty within thedeno.jsonfile for explicitly enabling or disabling Deno’s use of thenode_moduleslisting. - Deno 1.34 ships with the Google V8 11.5 JavaScript and TypeScript engine and TypeScript 5.04.
Copyright © 2023 IDG Communications, Inc.

