---
title: "Deno 2.5: Permissions in the config file"
description: "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."
url: "https://swe.quest/articles/deno-2-5-permissions-in-the-config-file-6c1646b356167f76"
canonical: "https://deno.com/blog/v2.5"
source: "Deno"
published: "2025-09-10"
difficulty: "medium"
kind: "Release"
reading_minutes: 13
tags: ["javascript","typescript","runtimes","developer-tools","testing"]
---

# Deno 2.5: Permissions in the config file

A post on [Deno](https://swe.quest/sources/deno.md), published 2025-09-10, 13 min read, Release. Original: [https://deno.com/blog/v2.5](https://deno.com/blog/v2.5)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- Deno basics
- deno.json configuration ([easy posts on Configuration management](https://swe.quest/tags/configuration.md?difficulty=easy))

## Keywords

Deno, Deno 2.5, deno bundle, Deno.test, V8, TypeScript 5.9, JSR, WebSocket

## Related posts

- [Deno 1.36: More flexible security and expanded testing APIs](https://swe.quest/articles/deno-1-36-more-flexible-security-and-expanded-testing-apis-20f800d81e5efd71.md): Deno · 2023-08-03 · Medium · 8 min read · JavaScript, Runtimes & VMs, Testing, Sandboxing & isolation
  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.
- [Deno 2.6: dx is the new npx](https://swe.quest/articles/deno-2-6-dx-is-the-new-npx-58f73c73a151bd8c.md): Deno · 2025-12-10 · Medium · 16 min read · JavaScript, TypeScript, Runtimes & VMs, Supply chain security, Developer tools
  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.
- [Deno 1.46: The Last 1.x Release](https://swe.quest/articles/deno-1-46-the-last-1-x-release-18f40edf9755fd08.md): Deno · 2024-08-22 · Medium · 16 min read · JavaScript, TypeScript, Developer tools, Runtimes & VMs
  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.
- [Deno 1.42: Better dependency management with JSR](https://swe.quest/articles/deno-1-42-better-dependency-management-with-jsr-c869439ba578c752.md): Deno · 2024-03-28 · Medium · 9 min read · JavaScript, TypeScript, Runtimes & VMs, Build systems, Developer tools
  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.
- [Deno 2.0 Release Candidate](https://swe.quest/articles/deno-2-0-release-candidate-e1af5ccfd990463c.md): Deno · 2024-09-19 · Medium · 17 min read · JavaScript, TypeScript, Runtimes & VMs, Security
  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\`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
