With Deno 1.34, unveiled on Could 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 hastens startup time—has now been prolonged to NPM.
Previous to the Deno 1.34 launch,
deno compile additionally added help for internet employees 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 embody:
- Globs, that are patterns specifying units of filenames with wildcard characters, are supported within the configuration file
deno.activity, and CLI arguments for specifying information. The
globsyntax 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 resembling Kubernetes pods, which frequently use IP addresses as a substitute of domains, and for DNS over HTTP/TLS, which wants an IP deal with for the server to keep away from round dependency on title decision.
- For NPM and Node.js compatibility,
deno vendorhandles NPM specifiers and can now not elevate an error when encountering them. Additionally,
submitscripts if current when executing a script from a
bundle.jsonfile just like NPM.
- It is attainable to specify a
nodeModulesDirproperty within the
deno.jsonfile for explicitly enabling or disabling Deno’s use of the
Copyright © 2023 IDG Communications, Inc.