The latest release of Deno supports NPM packages


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. The glob 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 run pre and post scripts if available for scripting from a package.json file similar to NPM.
  • It is possible to describe a nodeModulesDir goods in deno.json file to enable or disable the use of Deno on node_modules directory.
  • Deno 1.34 ships with Google V8 11.5 JavaScript and TypeScript engines TypeScript 5.04.

Copyright © 2023 IDG Communications, Inc.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *