Deno 1.34, the latest release of JavaScript and TypeScript runtime are in place of Node.jsit makes it compatible with NPM and Node.js and increases development efficiency, according to critics.
I am section 1.34was revealed on May 25, deno compile
supports NPM packages. Since Deno 1.6launched in December 2020, deno compile
has allowed the integration of projects into a single use case, which allows developers to distribute and execute binaries on all major platforms without installing Deno dependencies. This feature – which improves deployment and speeds up startup time – has now been added to NPM.
Before releasing Deno 1.34, deno compile
added support to Internet workers are powerful vessels. More work is on the way to do this, including reducing the size of the binary.
Like last month section 1.33 release, Deno 1.34 is a precursor to the planned Deno 2 release. Other new skills include:
- Globs, which are formats for specifying file layouts with wildcard characters, are supported in the configuration file
deno.json
,deno.task
, are CLI arguments for specifying files. Theglob
syntax is cross-platform, so it can be used on Windows, MacOS, or Linux. - TLS (transport layer security) certificate with IP addresses is supported. This is useful for purposes such as Kubernetes pods, which often use IP addresses instead of domain names, and DNS over HTTP/TLS, which requires the server’s IP address to avoid circular dependencies in domain name resolution.
- For NPM and Node.js compatibility,
deno vendor
handles NPM monitoring and will not return an error when you encounter it. Also,deno task
they runpre
andpost
scripts if available for scripting from apackage.json
file similar to NPM. - It is possible to describe a
nodeModulesDir
goods indeno.json
file to enable or disable the use of Deno onnode_modules
directory. - Deno 1.34 ships with Google V8 11.5 JavaScript and TypeScript engines TypeScript 5.04.
Copyright © 2023 IDG Communications, Inc.