---
title: "directus 12.7.0 Breaking Changes on npm | Since.dev"
description: "What each directus release removed, renamed or changed: 27 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/directus
last_updated: 2026-12-04
---

# directus breaking changes

directus 12.7.0 (November 18, 2026) is its newest release with breaking changes, 10 of them. The first: Env vars without a value in a .env file fall back to the default in directus 12.7.0. Every breaking API change we have recorded in directus on npm: 27 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `12.7.0`, released November 18, 2026. [Source repository](https://github.com/directus/directus)

Its 12.6.0 release requires [Node.js 26](https://since.dev/calendar/nodejs/26.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [12.4.0](#v-12-4-0) to [12.7.0](#v-12-7-0): 22 breaking changes in 4 versions.

## directus 12.7.0 breaking changes

directus 12.7.0, released November 18, 2026: 10 breaking changes.

- **Behavior changed**  

Variables written without a value in a .env file, such as KEY=, are treated as not configured and use the default. Use KEY="" for an intentionally empty value. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed**  

A WebSocket message larger than MAX_PAYLOAD_SIZE (default 1mb) now closes the connection with code 1009. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed**  

A plain number duration such as ACCESS_TOKEN_TTL=900 is now read as milliseconds. Add a unit such as 15m to be explicit. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed**  

GraphQL operations are checked against GRAPHQL_QUERY_SELECTION_LIMIT, $NOW adjustments over 64 characters are unparseable, and dynamic variable paths deeper than 25 segments resolve to their default. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed**  

WebSocket subscription delete events now require read access to at least the id field and no item rules on the events collection. Users who do not meet this will not receive delete events. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed**  

Empty values of string and list env vars are kept as empty instead of using the default. For example, an empty EMAIL_SENDMAIL_PATH is no longer replaced by /usr/sbin/sendmail. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed**  

Filter and deep query parameters are rejected with InvalidQueryError beyond QUERY_FILTER_MAX_NODES or QUERY_FILTER_MAX_DEPTH. Set a limit to Infinity to opt out. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Behavior changed** `useEnv`  

useEnv returns durations and sizes as numbers and lists as arrays, so code that expected raw strings must be updated. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Configuration changed**  

Boolean env vars now accept only true, false, 1 and 0 (case-insensitive). Other values such as yes are invalid and fall back to the default or false, so update any such values. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)
- **Signature changed**  

The env passed to API extensions is typed as Record\<string, unknown> instead of Record\<string, any>, so env vars must be narrowed before use. [github.com](https://github.com/directus/directus/releases/tag/v12.7.0)

## directus 12.6.1 breaking changes

directus 12.6.1, released November 4, 2026: 1 breaking change.

- **Behavior changed**  

Run Script operations and sandboxed extensions now receive errors as plain objects with name, message, code, status and extensions, not Error instances. Extension code that checks for Error instances must be updated. [github.com](https://github.com/directus/directus/releases/tag/v12.6.1)

## directus 12.6.0 breaking changes

directus 12.6.0, released October 27, 2026: 4 breaking changes.

- **Removed**  

The minimum required Node.js version is now 26, so Node.js 22 is no longer supported. [github.com](https://github.com/directus/directus/releases/tag/v12.6.0)
- **Removed**  

Deprecated provider models were removed, so users must recheck AI assistant settings before using the assistant. [github.com](https://github.com/directus/directus/releases/tag/v12.6.0)
- **Renamed** `x-metadata`  

List responses now reference #/components/schemas/Metadata, so update any $ref to x-metadata and regenerate clients. [github.com](https://github.com/directus/directus/releases/tag/v12.6.0)
- **Behavior changed** `mcp`  

Authenticated GET and HEAD requests to /mcp now return 405 Method Not Allowed. [github.com](https://github.com/directus/directus/releases/tag/v12.6.0)

## directus 12.5.0 breaking changes

directus 12.5.0, released October 7, 2026: 7 breaking changes.

- **Removed** `CACHE_SCHEMA_MAX_ITERATIONS`  

CACHE_SCHEMA_SYNC_TIMEOUT now also limits the schema build itself. Remove CACHE_SCHEMA_MAX_ITERATIONS from your configuration. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)
- **Removed** `downgrade_reason`  

The /server/license response no longer includes downgrade_reason. Read invalid_reason instead. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)
- **Behavior changed**  

TFA enforcement now accounts for policies with an IP allow list when enforcing TFA within the allowed range. Check users whose TFA enforcement depends on IP-restricted policies. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)
- **Behavior changed**  

License validation now accepts only Directus keys and tokens. Check that existing license values are Directus-issued. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)
- **Behavior changed** `IMPORT_IP_DENY_LIST`  

Subnets with malformed prefixes are no longer accepted. Correct any existing values before upgrading. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)
- **Behavior changed** `ip_access`  

Subnets with malformed prefixes are no longer accepted. Existing policies storing such values will fail every request for users with that policy, so correct them first. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)
- **Default changed** `CACHE_SCHEMA_SYNC_TIMEOUT`  

The timeout now also limits the schema build itself and defaults to 60000 ms. If you configured a lower value, make sure it is long enough for your schema to finish building. [github.com](https://github.com/directus/directus/releases/tag/v12.5.0)

## directus 12.4.0 breaking changes

directus 12.4.0, released September 22, 2026: 5 breaking changes.

- **Behavior changed**  

The year, month, week, day, weekday, hour, minute and second functions on Oracle return numbers, and year returns the calendar year. [github.com](https://github.com/directus/directus/releases/tag/v12.4.0)
- **Behavior changed**  

Reads and writes on inactive collections now fail with a COLLECTION_INACTIVE error. [github.com](https://github.com/directus/directus/releases/tag/v12.4.0)
- **Behavior changed** `deleteByQuery`  

Deletes now require read access to the primary key field and only affect items the role can read. [github.com](https://github.com/directus/directus/releases/tag/v12.4.0)
- **Behavior changed** `FilesService.uploadOne`  

Client payloads can no longer overwrite system fields such as uploaded_by and created_on. [github.com](https://github.com/directus/directus/releases/tag/v12.4.0)
- **Behavior changed** `updateByQuery`  

Updates now require read access to the primary key field and only affect items the role can read. [github.com](https://github.com/directus/directus/releases/tag/v12.4.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
