Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 13 min read Release mediumAdept

Deno 2.5: Permissions in the config file

Deno 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.

Assumes: Deno basicsdeno.json configuration

Related posts

  • Deno 1.36: More flexible security and expanded testing APIs

    Deno mediumAdept

    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.

  • Deno 2.6: dx is the new npx

    Deno mediumAdept

    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.

  • Deno 1.46: The Last 1.x Release

    Deno mediumAdept

    Deno 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.

  • Deno 1.42: Better dependency management with JSR

    Deno mediumAdept

    Deno 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.

  • Deno 2.0 Release Candidate

    Deno mediumAdept

    Deno 2.0's release candidate is the largest update since 1.0: it removes the `window` global, adds Node's `process` global, and deprecates `deno cache` in favor of `deno install`. Dependency management gains subpath support in `deno add`, required `jsr:`/`npm:` prefixes, writing npm deps to package.json (including `--dev`), `deno remove`, `deno install --entrypoint`, and a more concise v4 lockfile. Missing Deno permissions now raise `Deno.errors.NotCapable` instead of `PermissionDenied`, so they can be told apart from OS errors. `--allow-hrtime` is gone, and `--allow-run` warns without an allow list and requires full permission when `LD_*`/`DYLD_*` env vars are set. WebGPU, FFI and `createHttpClient` are stabilized, many legacy `Deno.*` APIs and resource IDs are removed, and `deno bundle` and `deno vendor` are dropped.

The quest for software engineering knowledge.

Look:
Layout: