Menu
Deno upgrade adds WebSocket API

Deno upgrade adds WebSocket API

Deno 1.4 also brings stricter type checks, integrated test coverage, and automatic restarts

Credit: Dreamstime

Deno, an alternative JavaScript runtime to Node.js, has been upgraded with capabilities including a WebSocket API and an early version of an automatic restart capability.

Deno 1.4, released September 13, is being called the largest feature release yet. Highlights include a web standard WebSocket API, for communicating with remote servers via the WebSocket protocol, and an integrated file watcher that can be used to restart any script when its dependencies change. To use the file watcher, developers run a script as they normally would but add the --watch flag. The unstable flag also must be used because this feature is not yet stable. 

Additionally, Deno 1.4 offers integrated test coverage, with developers able to run tests with deno test --coverage to get a summary of test coverage. Other new capabilities in Deno 1.4 include:

  • Stricter type checks in --unstable. TypeScript compiler options isolatedModules and importsNotUsedAsValues are now turned on by default.
  • The deno info tool for dependency analysis has been overhauled. Dependency analysis is now faster and less buggy.
  • CSS styling is now supported for console.log.
  • Lint supports complete eslint and typescript-esline recommended rules.
  • The deno doc documentation generator has received new features and fixes, including support for the export {foo}; syntax and reimports of multiple symbols with the same name.
  • The Visual Studio Code extension for Deno has been updated with capabilities such as IntelliSense for deno.land imports, providing autocomplete suggestions for module names on deno.land/x. 

Developers who already have Deno installed can upgrade by running deno upgrade. Those installing Deno for the first time can use several methods to access it, including the following:

# Using Shell (macOS and Linux):
curl -fsSL https://deno.land/x/install/install.sh | sh
# Using PowerShell (Windows):
iwr https://deno.land/x/install/install.ps1 -useb | iex

Deno 1.4 source code is available on GitHub.


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

Why experience is the new battleground for partners

Join us for an exclusive webinar, in association with Hewlett Packard Enterprise and Technology Services Industry Association (TSIA) and learn about the latest industry insights and how technology services continue to evolve to deliver differentiated value, and how partners can be successful in 2021 and beyond.

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