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,
andDeno.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.