New Features in Deno 1.5

New Features in Deno 1.5

Deno 1.5 brings faster bundling, tree-shaking. Highlights of the Deno 1.5 of the Node.js alternative also feature an overhauled REPL and web platform APIs. Deno is positioned as a secure runtime for JavaScript and TypeScript and rival to Node.js, have published Deno 1.5, a new version of the platform that improves bundling and REPL capabilities.

The developers of Deno, which is positioned as a secure runtime for JavaScript and TypeScript and rival to Node.js, have published Deno 1.5, a new version of the platform that improves bundling and REPL capabilities.

The deno bundle command in Deno 1.5 is billed to be as much as 15 times faster than in Deno 1.4, and now uses tree-shaking to remove unused code from the bundle. Also, work has been done to refactor Deno’s TypeScript compiler infrastructure, with aging bundler infrastructure replaced with a new bundler based on the swc TypeScript/JavaScript compiler. Bundles now are emitted as a standard ES module, with dynamic import now working correctly.

Other new features and improvements in Deno 1.5:

  • The REPL (read-eval-print-loop) has undergone major refactoring. It now features tab completion of object properties and methods and code syntax highlighting, with syntax highlighted if a terminal supports colors. Also, top-level await support is offered, with developers able to await promises in the REPL without having to wrap a call in an async IIFE.
  • Stricter type checks in stable, with the isolatedModules TypeScript compiler option enabled by default.
  • Web platform APIs alert, confirm, and prompt have been added. The alert API logs a message to the terminal and synchronously blocks until confirmation. The confirm API prompts the user with a message and synchronously blocks until the user responds, while prompt requests some input form the user and blocks synchronously until the user has entered text and pressed enter.
  • API additions and stabilizations, with Deno.fsync, Deno.fdatasync() and synchronous counterparts stabilized. These are low-level methods to ensure modified file data is written to the disk drive. Two new unstable APIs are introduced, including Deno.sleepSync(), to block the event loop, and Deno.systemCpuInfo(), to get information the number of available cores and CPU speed.
  • deno lint has been updated with a camelcase: rule to check if variable declrations use camelCase formatting. Hints for lint diagnostics are introduced, as well.
  • Changes have been made to std, including renaming the assertStringContains and assertArrayContains methods in std/testing.asserts.ts to asssertStringIncludes and assertArrayIncludes, respectively, to match the naming of the includes method on strings and arrays.
  • The deno fmt --ignore flag now is available without the --unstable flag. The flag can be used to ignore some files or folders from being formatted or checked by the formatter.

deno node javascript typescript developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top 5 Reasons Javascript Developers Prefer Deno Over Node

Why Deno is exactly what a back-end Javascript developer needs in 2020. Let’s take a look at the top 5 reasons javascript developers are having a much smoother and more modern experience using Deno vs. Node. The maker of NodeJS, Ryan Dahl, has released a new runtime that aims to solve many of the shortcomings of Node. Your initial reaction might be “Oh great, another Javascript framework? Just what I needed…”.

What is Deno and is Node.js Dying? | Deno vs Node

What is Deno? Deno vs Node. Is Node.js going to die? Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity. It was announced by Dahl in 2018 during his talk "10 Things I Regret About Node.js"

Deno, a Secure Runtime for JavaScript and TypeScript

What is Deno? Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity. It was announced by Dahl in 2018 during his talk "10 Things I Regret About Node.js"

Introduction to Deno: A Secure JavaScript & TypeScript Runtime

What is Deno? Deno is a JavaScript and TypeScript runtime. Should you forget Node.js and start learning Deno? What are the difference between Deno and Node? Deno programs can access resources on the host computer, such as the filesystem and environment variables.

Deno vs. Node: A Good Crisp Difference Between Node and Deno

Deno vs. Node: A Good Crisp Difference Between Node and Deno - Here is a basic tutorial on a crisp difference between Nodejs and Deno. Before starting with Deno it good to understand what problem deno solves.