Deno 2.3: Improved deno compile, local npm packages, and more
Deno 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.
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 1.32: Enhanced Node.js Compatibility
Deno mediumAdeptDeno 1.32 improves Node.js compatibility by installing npm packages only when a bare specifier matches package.json, surfacing package.json errors lazily, adding DENO_NO_PACKAGE_JSON, and supporting createCipheriv/createDecipheriv in node:crypto. `deno compile` now handles dynamic imports and Web Workers, bundling statically analyzable specifiers automatically and others via a new --include flag. The release also adds --ext for running extensionless files, removes unstable WebGPU to cut binary size and startup time, moves std/encoding modules to top-level paths, and upgrades to TypeScript 5.0 (over 2x faster initial type-check when skipping remote modules) and V8 11.2. Users of 1.32.0 should upgrade to 1.32.1 due to a critical security issue.
- Deno 2.4: deno bundle is back
Deno mediumAdeptDeno 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`.
- 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 2.8
Deno mediumAdeptDeno 2.8 adds new subcommands (audit fix, bump-version with Conventional Commits workspace support, ci, pack for building npm tarballs from Deno/JSR projects, transpile, why), makes unprefixed package names default to npm in deno add/install, and supports TC39 import defer. Node.js test-suite pass rate rose from about 42% to 76.4%, compared with 40.6% for Bun 1.3.14. Cold npm installs are 3.66x faster, driven by abbreviated packuments, parallel resolution, decompression moved off the event loop and split tarball extraction. Other gains include 2.21x node:http throughput, 3.07x base64 via simdutf, and malloc_trim fixes for RSS bloat on Linux.