Deno 1.15, the latest version of the JavaScript runtime put together as a safe alternative to Node.js, features a new tag that makes it easier to run Node.js programs in Deno.

Deno 1.15 was published on October 12 --compat The flag is there, Deno will automatically set up global variables for the node, like process, providing all the embedded modules available in Node. Note that this flag is currently required –-unstable.

Issuance –-compat In Deno 1.15 it is just a first pass. More effort will be made to improve compatibility mode in upcoming releases, moving towards node emulation. According to Deno 1.15 Release Notes, std / node is a module that provides a compatibility layer for Node APIs, allowing developers to run a subset of Node programs in Deno. std version 0.111.0 updates the compatibility layer, adding required modules including dns, http and net, along with cipher module updates.

Dino 1.15 is available to existing Dino users by running deno upgrade. Other Features of Deno 1.15:

  • Progress has been made towards a full-featured Web Crypto API, with the goal of having features completed by the end of the year. With this release, improvements have been made such that RSA keys are now exported in SPKI (Simple Public Key Infrastructure) format.
  • FFI (Foreign Functions Interface), an API added in Deno 1.13 for calling libraries written in languages ​​such as C, C#, and Kotlin, adds support for unblocked calls and caching media.
  • a deno uninstall The subcommand has been entered to remove a command that was previously installed with deno install.
  • deno lint Support now –-watch Flag, which will keep the process alive after printing diagnostics and monitor file changes to update diagnostics of changed files.
  • The Experimental Substeps API has been added to the Deno Testing framework, allowing users to define substeps for tests defined by Deno.test.
  • The following APIs are installed: Deno.killAnd Deno.Process.killAnd Deno.resolveDNS.
  • The Google V8 9.5 JavaScript Engine included.

Deno 1.14, which includes additions to the Web Crypto API, was released on September 14.

Copyright © 2021 IDG Communications, Inc.

Source link

Leave a Reply

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