Other new features and improvements in Deno 1.5:
awaitsupport is offered, with developers able to
awaitpromises in the REPL without having to wrap a call in an async IIFE.
isolatedModulesTypeScript compiler option enabled by default.
prompthave been added. The
alertAPI logs a message to the terminal and synchronously blocks until confirmation. The
confirmAPI prompts the user with a message and synchronously blocks until the user responds, while
promptrequests some input form the user and blocks synchronously until the user has entered text and pressed
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 linthas been updated with a
camelcase:rule to check if variable declrations use
camelCaseformatting. Hints for lint diagnostics are introduced, as well.
assertArrayContainsmethods in std/testing.asserts.ts to
assertArrayIncludes, respectively, to match the naming of the
includesmethod on strings and arrays.
deno fmt --ignoreflag now is available without the
--unstableflag. The flag can be used to ignore some files or folders from being formatted or checked by the formatter.
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.