Deno 1.36: More flexible security and expanded testing APIs
Deno 1.36 adds --deny-* flags that complement --allow-* permissions, letting programs open broad access while excluding specific domains, IPs or file paths, with deny taking precedence over allow. Testing gains JUnit and dot reporters plus a node:test polyfill, and Deno.bench fixes V8 JIT bias with a warmup run and adds BenchContext start/end to measure only a critical section. Node compatibility improves with process.dlopen, a fully polyfilled node:os, running non-bin npm scripts, and AsyncLocalStorage up to 3.5x faster. Smaller changes include automatic retries for failed module downloads, clearer Deno.Command errors, http(s) URLs accepted by WebSocket, and LSP fixes.
Related posts
- 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 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 1.19 Release Notes
Deno mediumAdeptDeno 1.19 adds `deno vendor`, which builds a module graph from entrypoints, writes remote dependencies into a `vendor/` folder with readable paths, and generates an import map so programs can run with `--no-remote`. Permission checks now prompt interactively on a TTY instead of throwing. Files, sockets and stdio expose `readable`/`writable` web streams that compose with `fetch`, the HTTP server and the new `CompressionStream`/`DecompressionStream`. `deno compile` now embeds the unbundled ES module graph via eszip so execution order and `import.meta.url` are preserved, and test sanitizers report leaked resources and async ops with clear messages and stack traces.
- 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.
- 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.