Deno 1.13, released on August 10 as an upgrade to the JavaScript/TypeScript runtime, stabilizes the native HTTP server API, enabling Deno to serve multiple variants of HTTP traffic out of the box.

With the API has reached stable status, Deno now can serve HTTP/1.1 and HTTP/2 traffic. The system exposes the hyper web server as a JavaScript API. Developers currently using std/HTTP are encouraged to upgrade to the native HTTP server since std/HTTP is to be removed in an upcoming release. The HTTP server API was introduced in Deno 1.9 in April.

Installation instructions for Deno can be found on the deno.land webpage. Other features cited in release notes for Deno 1.13 include:

  • A self. structured clone function exposes the structured clone algorithm used for passing messages between web workers and MessagePort in an idiomatic, asynchronous API. This algorithm can deep clone JavaScript values and supports circular object references.
  • A DENO_TLS_CA_STORE environment variable can be used to switch certificate authorities Deno trusts for TLS.
  • An –-unsafely-ignore-certificate-errors flag can disable SSL certificate verification. Deno proponents note this is a dangerous setting and it should not be used to silence certificate errors.
  • More functionality has been added to WebCrypto APIs, such as crypto. Subtle. verify now supporting verification of signatures created from Hash-based Message Authentication Code (HMAC) keys.
  • The Deno Language Server and Visual Studio Code extension have been updated, with improvements such as the language server adding a deno. cache setting that can be set via the editor. This configures the language server to use a specific path to the cache directory for Deno. Also, refactoring code actions now are available for JavaScript and TypeScript files, providing refactors for common tasks such as extracting code to functions and constants.
  • For the REPL, the export keyword before functions, classes, or TypeScript types now will be ignored. This is useful when copying and pasting a snippet of code from a module into the REPL. Also, the REPL now has an —eval flag for running code in the JS runtime before the user is dropped into a REPL.
  • The Deno. permissions API has been updated; it now accepts URLs in addition to strings when querying for “read,” “write,” and “run” permissions.
  • The native plug-in system has been replaced with a more general Foreign Function Interface (FFI) API for calling libraries written in languages other than Rust directly from Deno. The API is unstable in this release.
  • The V8 JavaScript engine has been updated to Version 9.3.

Deno has been positioned as a more secure alternative to the Node.js runtime. The 1.0 release of Deno was published in May 2020, with several point releases published since then.

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Nikoleta Yanakieva Editor at DevStyleR International