Deno 2.4: deno bundle is back
Deno 2.4 brings back `deno bundle`, now built on esbuild, producing single-file bundles for Deno or browser targets with tree shaking, minification, sourcemaps and npm/JSR dependency support. Text and bytes imports via import attributes (behind `--unstable-raw-imports`) let assets be embedded in bundles and `deno compile` binaries. Built-in OpenTelemetry is now stable, and the release adds a `--preload` flag, a `deno update` command, `deno run --coverage`, a `DENO_COMPAT=1` mode for package.json-first projects, and conditional package.json exports. `--allow-net` gains subdomain wildcards and CIDR ranges, a new `--deny-import` flag blocks specific hosts, and `Deno.execPath()` no longer requires read permission, which avoids pushing users toward a blanket `--allow-read`.
Related posts
- Deno 1.34: deno compile supports npm packages
Deno mediumAdeptDeno 1.34 lets `deno compile` bundle npm packages and their dependencies into a single self-contained executable. That makes tools like vite and eslint shippable as binaries with pinned dependencies, and they tend to start faster than running from a local cache. The release also adds cross-platform glob support in deno.json, deno task and CLI flags, and TLS certificates with IP addresses via rustls. Smaller changes include a top-level `exclude` and `nodeModulesDir` in config, configurable language-server limits, a `Deno.serve()` signature change that returns a `Deno.Server`, new `createHttpClient` pool options, more Node.js polyfills, and upgrades to V8 11.5 and TypeScript 5.0.4.
- Deno 2.3: Improved deno compile, local npm packages, and more
Deno mediumAdeptDeno 2.3 lets deno compile bundle programs that use FFI and Node native add-ons, adds --include/--exclude control over embedded files, and exposes Deno.build.standalone to detect compiled binaries. Local npm packages can now be used through a "patch" entry in deno.json. deno fmt gains formatting of CSS, HTML and SQL in tagged templates plus 14 new options, and OpenTelemetry support adds span events, cross-service context propagation, node:http auto-instrumentation and V8 heap metrics. deno install is about 2x faster when npm dependencies are cached, thanks to in-memory npm metadata caching and lockfile v5, with a benchmark showing 2.5x on a Vite React template. The release also adds the JavaScript `using` keyword, coverage ignore comments and TypeScript 5.8 with V8 13.5.
- Deno 2.6: dx is the new npx
Deno mediumAdeptDeno 2.6 adds `dx`, an npx equivalent for running npm and JSR package binaries that defaults to full permissions, prompts before download and runs lifecycle scripts. It also adds `--ignore-read`/`--ignore-env` flags that return NotFound/undefined instead of NotCapable errors, plus an experimental permission broker process for mediating permission requests. Other changes include opt-in type checking with the Go-based tsgo (about 2x faster on internal projects), Wasm source phase imports, `--require` for preloading CommonJS, and `deno audit` with optional socket.dev integration. Supply-chain controls include `deno approve-scripts` and a `minimumDependencyAge` setting, alongside bundler fixes, default `@types/node`, and many Node.js API compatibility fixes.
- Deno 2.2: OpenTelemetry, Lint Plugins, node:sqlite
Deno mediumAdeptDeno 2.2 adds built-in OpenTelemetry that auto-instruments console.log, Deno.serve and fetch and exports to an OTLP endpoint behind the --unstable-otel flag. It also adds an ESLint-like JavaScript lint plugin API with visitor and CSS-selector syntax, 15 new JSX/React lint rules, and support for node:sqlite. Other changes include JSDoc @import support and per-workspace compilerOptions in deno check, 5-20x faster LSP completions, wildcard and command-less tasks, interactive deno outdated, smaller and faster deno compile output, explicit warmup and n options for deno bench, WebTransport/QUIC APIs, and upgrades to TypeScript 5.7 and V8 13.4.
- Deno 1.42: Better dependency management with JSR
Deno mediumAdeptDeno 1.42 adds first-class JSR support through new `deno publish` and `deno add` subcommands, which install packages from JSR and npm and write import map entries. It also adds LSP completions for jsr: specifiers and broadens Node compatibility across crypto, worker_threads, fs, http2 and other modules. Further changes include shell improvements in `deno task` (cross-platform shebangs, `$?`, redirects), `deno lint --fix`, and dropping mid-execution type checking under `--check`. Timers were rewritten so creating a million timers takes 1.4s instead of 5.9s with up to 70% less memory, startup is 10% faster on Linux, and `DENO_FUTURE=1` previews Deno 2 removals.