Paul Krill
Editor at Large

Deno 1.9 previews native HTTP/2 server

news
Apr 15, 20212 mins

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

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 stabilize 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 stabilized.

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.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author