Deno 2.4: Bundling, Improved Imports, and Stable Features

Deno 2.4 is here with exciting updates! The returned `deno bundle` command supports creating single-file JavaScript bundles, leveraging esbuild for tree-shaking and minification. The new `--unstable-raw-imports` flag allows direct import of text and byte data, simplifying the import of non-JavaScript files. Built-in OpenTelemetry support is now stable, removing the need for the `--unstable-otel` flag. Additionally, a new `--preload` flag lets you execute code before your main script, `deno update` simplifies dependency management, and `deno run --coverage` now collects coverage from subprocesses. Permission management is enhanced with support for subdomain wildcards and CIDR ranges. `package.json` support is improved, including better handling of conditional exports and local npm packages.
Read more