Deno is here to fix Node's mistakes

Deno 1.0 is a new runtime for JavaScript and TypeScript

Maika Möbus
Deno 1.0
© Shutterstock / 99Art

The first major version Deno 1.0 has been released. This runtime for running JavaScript and TypeScript code outside the browser was created by Node.js developer Ryan Dahl. In 2018, he started working on Deno to fix his design regrets in Node. Let’s see what sets this new runtime apart and where to get it.

The arrival of Deno 1.0 has been announced on the official website. Developed to iron out issues in the widely used JavaScript runtime Node.js, this JavaScript and TypeScript runtime also lets you run your code outside the browser but adds additional features such as support for TypeScript out of the box. Deno is based on the V8 JavaScript engine as well as the programming language Rust, which is known for its focus on security.

SEE ALSO: Deno 1.0 – “Deno is a web browser for command-line scripts”

Deno 1.0

The JavaScript runtime Node.js was developed by Ryan Dahl in 2009—and things have changed since then. At the time of Node’s creation, for example, JavaScript did not yet have Promises or async/await, which Deno takes into account. Since Deno is designed to work not only for small but also complex use cases where type checking becomes important, it supports TypeScript without additional tooling and its standard modules are written in TypeScript as well.

For the occasion of Deno’s first major release, we interviewed Node.js and Deno developer Ryan Dahl to find out about the main differences between the runtimes:

Deno uses a radically simple module system where modules and URLs are in one-to-one correspondence. Furthermore, Deno can execute TypeScript code out of the box. These two features have the effect of greatly simplifying the developer workflow. Deno is stricter with security than Node. […] Generally, Deno acts more like a web browser – it is, in essence, a web browser for command-line scripts.

If you want to dig deeper into 10 points Dahl regrets about Node, you can watch this video of his talk at JSConf EU:

Deno is available as a single executable with no dependencies. It can, for example, be downloaded via PowerShell (iwr -useb | iex), Chocolatey (choco install deno), Scoop (scoop install deno), or as a binary from GitHub.

SEE ALSO: Node 14 released with diagnostic reports as stable feature

See the Deno 1.0 release post by Ryan Dahl, Bert Belder, and Bartek Iwańczuk for further details.

Maika Möbus
Maika Möbus has been an editor for Software & Support Media since January 2019. She studied Sociology at Goethe University Frankfurt and Johannes Gutenberg University Mainz.

Inline Feedbacks
View all comments