Menu
Deno 1.9 previews native HTTP/2 server

Deno 1.9 previews native HTTP/2 server

Upgrade to secure JavaScript/TypeScript runtime incorporates fast Rust-based HTTP implementation and faster binding infrastructure.

Comments
Credit: Christina Morillo / GamOI

The latest version of the Deno JavaScript/TypeScript runtime features native HTTP/2 web server capabilities.

Deno 1.9 was introduced April 13. For this release, the developers enlisted hyper, a fast HTTP implementation based on the Rust language, to build a new native HTTP/2 server API in Deno. The prior TypeScript-based HTTP server, std/http, offered good tail latency despite using a scripted HTTP server, but it was HTTP 1.1-only, with no easy path toward HTTP 2, according to Deno 1.9 release notes.

The Deno developers say the new binding has improved hello-world throughput by 48 percent when compared to the std/http HTTP server. They hope to stabilise the API soon; for now, it is offered under an unstable flag, for developers to try it out.

Deno is positioned as a more secure alternative to Node.js. Deno 1.9 also features:

  • Binding infrastructure has been rebuilt to be faster and simpler; faster calls into Rust are enabled via the serde-v8 encoding layer. Deno was written in Rust and leverages the Google V8 JavaScript engine.
  • Blob URL support is featured. Blob URLs can be used in fetch, to instantiate web workers using new Worker, and in dynamic URLs using import(). Also, fetch also now supports data URLs.
  • Deno Language Server, a tool to power editor extensions, has been improved, including the reintroduction and improvement of the import completions feature from the prior Visual Studio Code extension. This feature allows developers to get completions in import statements.
  • Developers can interactively prompt for permissions on use rather than declaring them up front.
  • Several APIs related to the file system, such as Deno.fstat and Deno.fstatSync, have been stabilised.

Current Deno users can upgrade to version 1.9 by running deno upgrade. Multiple methods for installing Deno for the first time can be found in the release notes. Version 1.9 follows the prior Deno 1.8 release, which published on March 2.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Events

Brand Post

Show Comments