Menu
Deno 1.7 brings compilation improvements

Deno 1.7 brings compilation improvements

Secure-by-default Node.js alternative now supports cross-compilation among supported platforms and generates significantly smaller binaries.

Credit: Dreamstime

Deno 1.7, the latest version of the JavaScript/TypeScript runtime built to serve as a more secure alternative to Node.js, is highlighted by improved compilation and data URL capabilities.

Published January 19, Deno 1.7 offers features, stabilizations, and improvements to APIs and tools. Installation instructions can be found at deno.land.

Key to the Deno 1.7 release is that deno compile now can cross-compile from any in stable supported architecture, including Windows x64, MacOS x64, and Linux x64, to any other in stable supported architecture. Thus binaries for Windows and MacOS can be created from a single Linux CI machine.

In addition, deno compile now generates binaries that are 40 percent to 60 percent smaller than those produced by Deno 1.6. This feature can be tried out using the --lite flag when compiling an application. A slimmed-down runtime-only Deno binary will be produced instead of the full Deno binary.

Also, deno compile now can produce binaries that have built-in CA certificates, custom V8 flags, locked-down permissions, and pre-populated command line arguments. Other notable features in Deno 1.7 include:

  • Data URLs support, for executing code generated on the fly, has been added in imports, both static and dynamic, and in Web Workers.
  • An unstable Deno.resolveDns API can be used to query DNS records from a DNS resolver.
  • deno fmt now supports formatting Markdown files, including formatting of JavaScript and TypeScript codeblocks in the files.
  • A --location flag has been added to set “document” location for scripts.
  • Three unstable APIs, transpileOnly, Deno.bundle, and Deno.compile, used to interact with Deno’s built-in TypeScript compiler, have been replaced by a single improved function, Deno.emit.

Deno 1.7 follows last month’s Deno 1.6 release, which enabled production of standalone executables and a language server implementing Language Server Protocol. Experimental support for Apple computers running M1 processors support also was featured. Deno 1.0 arrived last May.


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.

Brand Post

Featured

Slideshows

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

Hundreds of leaders from the New Zealand IT industry gathered at the Hilton in Auckland on 17 November to celebrate the finest female talent in the Kiwi channel and recognise the winners of the Reseller News Women in ICT Awards (WIICTA) 2020.

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards
Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

The leading female front runners of the New Zealand ICT industry joined together for the annual Reseller News Women in ICT Awards event at the Hilton in Auckland, during which hundreds of guests celebrated 13 outstanding individuals who won awards, chosen from more than 50 finalists representing over 30 organisations.

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards
Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

More than 500 channel leaders gathered in Auckland on 21 October at the ​Reseller News Innovation Awards ​2020 to celebrate the achievements of the New Zealand technology industry's top partners, start-ups, vendors, distributors and individuals.

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners
Show Comments