Deno 2.6: dx is the new npx
Deno 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.
Related posts
- Introducing your new JavaScript package manager: Deno
Deno mediumAdeptDeno 2 adds `deno add`, `deno remove`/`uninstall`, and `deno install` subcommands that manage npm and JSR dependencies in either `deno.json` import maps or an existing `package.json`, so they work inside Node projects too. Installs use a global cache with hard links (Linux) or clonefile (macOS), like pnpm, to save disk space and speed up installs, and `--entrypoint` can pre-cache dependencies for Docker builds. Postinstall scripts are blocked by default and must be allowed per package with `--allow-scripts`. `deno outdated` and `deno update` are planned for the next release.
- Deno 2.5: Permissions in the config file
Deno mediumAdeptDeno 2.5 adds named permission sets in deno.json, selectable with -P or --permission-set, plus per-command permissions for test, bench and compile that require -P to apply. It also adds beforeAll/beforeEach/afterAll/afterEach hooks to Deno.test, custom headers on WebSocket connections, an experimental Deno.bundle runtime API, and HTML entrypoint support in deno bundle. Other additions include a JSONL permissions audit log via DENO_AUDIT_PERMISSIONS, Response-style convenience methods on child process stdio, new lint rules for unversioned and inline imports, opt-in Node.js timer globals, and upgrades to V8 14.0 and TypeScript 5.9.2.
- 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.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 1.46: The Last 1.x Release
Deno mediumAdeptDeno 1.46, the final 1.x release, lets programs run with plain `deno file.ts`, runs tasks via `deno run`, and adds one-letter permission flags (-R, -W, -E, -N, -S) that can be combined and given allow lists. `deno serve --parallel` runs one single-threaded JS runtime copy per core, with the count set by DENO_JOBS. `deno fmt` gains unstable formatting for HTML, CSS, YAML and component files. Other changes include `deno remove`, `deno clean`, code signing and custom icons for `deno compile`, and deprecation warnings for import assertions ahead of Deno 2.