Deno shrinks deno compile binaries

The developers of the Deno TypeScript/JavaScript runtime have reduced the size of deno compile binaries and introduced an official Linux ARM64 build with the newly released Deno 1.41 version.

This latest release of the Node.js rival was unveiled February 22. Users can upgrade their Deno installation by running the following command in the terminal:

deno upgrade

Deno Land said the binaries produced by the deno compile command in Deno 1.41 are as much as 50% smaller than in previous versions. A “Hello World” program compiled to a 116MB binary on Mac ARM in Deno 1.40 compiled to just 58MB in Deno 1.41. Further plans include making compiled binaries even smaller, as well as allowing developers to compile a custom build of Deno with only desired features.

Linux ARM64 support has been one of the most requested features in the Deno community, Deno Land said. In addition to the provided Linux ARM64 binaries, developers now can install ARM64 canary builds to test features and bug fixes.

Deno 1.41 fixes several Node.js compatibility issues. The crypto module now supports the aes256 algorithm, http2.connect supports ALPN protocols, fs/promises supports cp(), and cp.execFile now properly validates the timeout parameter.

The release also brings changes to Deno APIs. Deno.ConnectTlsOptions now supports cert and key properties to better align with other “connect” APIs in Deno. DenoFsFile.isTerminal and Deno.FsFile.SetRaw() now are available to better support terminal I/O, while Deno.FsFilelock() and Deno.FSfile.unlock() are available to support file locking.

For the language server, Deno 1.41 brings better auto-completion triggers and more reliable version suggestions for npm: specifiers. And a linting-related memory leak in the language server protocol (LSP) has been fixed.

Copyright © 2024 IDG Communications, Inc.

Source link