Deno 1.0 is a new runtime for JavaScript and TypeScript

Share

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.

     

    International JavaScript Conference
    Manfred Steyer

    The Future of Angular and your Architectures with Ivy

    by Manfred Steyer (SOFTWAREarchitekt.at)

    Andrey Goncharov

    React: Lifting state up is killing your app

    by Andrey Goncharov (Hazelcast)

     


    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 https://deno.land/x/install/install.ps1 -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.

    The post Deno 1.0 is a new runtime for JavaScript and TypeScript appeared first on JAXenter.

Source : JAXenter