Deno Land has launched Deno 2.3, an replace of the corporateās JavaScript and TypeScript runtime that brings enhancements to deno compile
and provides assist for native NPM packages.
Introduced Could 1, Demo 2.3 extends deno compile
to assist packages that use International Operate Interface (FFI) and Node native add-ons. This implies compiled binaries can embody and work with native libraries or Node plug-ins. Additionally, deno compile
now can exclude particular information from being embedded through the compilation course of. This gives extra management over which information get packaged right into a standalone executable. With deno compile
, builders can compile a challenge right into a single binary, permitting them to distribute ready-to-run packages with out having to put in Deno or dependencies.
Deno 2.3 additionally introduces a Deno.construct.standalone
boolean to point if the code is operating in a self-contained compiled binary. This may be helpful for error reporting, characteristic toggling, consumer messaging, and extra, in build-specific environments, in accordance with Deno Land.