
Deno 2.4 brings back bundle command, stabilizes OpenTelemetry, adds preload flag, and more
Deno 2.4 has launched as the latest update to this open-source JavaScript and TypeScript runtime, delivering several workflow improvements. Most notably, this release restores the deno bundle
sub-command, enabling developers to create single-file JavaScript or TypeScript bundles. This command now works with npm and JSR dependencies, targets both server and browser platforms, and features tree shaking and automatic minification using esbuild.
Alongside these changes, Deno 2.4 introduces new capabilities for developers. Data files such as Markdown documents, icon assets, or binary blobs can now be linked directly into the JavaScript module graph. Observability also advances, as built-in OpenTelemetry support achieves stable status in this release. For greater scripting flexibility, a --preload
flag allows designated code to execute prior to the main script.
Dependency management receives an upgrade through the new deno update
sub-command. This tool lets users update project dependencies to the latest available versions. Following these new features, script coverage collection is now possible with the deno run --coverage
option. Deno 2.4 additionally includes a range of other enhancements and bug fixes, as summarized in the official release blog post.