Deno 1.21 has been released. This latest upgrade to the JavaScript/TypeScript runtime features improvements to the REPL (read-evaluate-print loop) and a move away from default type-checking.

The Deno REPL is a tool for prototyping and trying out new things. With Deno 1.21, an

1
-–eval-file

flag can be used with the

1
deno repl

subcommand. This flag allows for passing of a list of paths or URLs to files that will be executed before the REPL starts and is useful for building custom, specialized REPLs. Also, type checking has been disabled for imported modules in the REPL, leading to faster imports. And the REPL now has a global

1
 clear()

function that acts as an alias for

1
console.clear

. This aligns with what is found in REPLs in many browsers, Deno’s developers said.

To read this article in full, please click here


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *