Deno Land has released Deno 2.3, an update of the company’s JavaScript and TypeScript runtime that brings improvements to deno compile
and adds support for local NPM packages.
Announced May 1, Demo 2.3 extends deno compile
to support programs that use Foreign Function Interface (FFI) and Node native add-ons. This means compiled binaries can include and work with native libraries or Node plug-ins. Also, deno compile
now can exclude specific files from being embedded during the compilation process. This offers more control over which files get packaged into a standalone executable. With deno compile
, developers can compile a project into a single binary, allowing them to distribute ready-to-run programs without having to install Deno or dependencies.
Deno 2.3 also introduces a Deno.build.standalone
boolean to indicate if the code is running in a self-contained compiled binary. This can be useful for error reporting, feature toggling, user messaging, and more, in build-specific environments, according to Deno Land.