css-select breaking changes
css-select 7.0.0 (March 22, 2026) is its newest release with breaking changes, 11 of them. The first: Removed _compileToken. Every breaking API change we have recorded in css-select on npm: 24 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.0.0, released March 22, 2026. Source repository
Its 7.0.0 release requires Node.js 20.19.0 or later. Node.js end of life dates.
- From 6.0.0 to 7.0.0: 11 breaking changes in 1 version.
- From 5.0.0 to 7.0.0: 16 breaking changes in 2 versions.
css-select 7.0.0 breaking changes
- Removed
_compileToken
The deprecated _compileToken export is removed; use _compileUnsafe instead. npmjs.com - Removed
aliases
The deprecated re-export of aliases is removed; use the pseudos option instead. npmjs.com - Removed
filters
The deprecated re-export of filters is removed; use the pseudos option instead. npmjs.com - Removed
package.json
The ./package.json subpath export is removed, so code that imports it will no longer work. github.com - Removed
pseudos
The deprecated re-export of pseudos is removed; use the pseudos option instead. npmjs.com - Behavior changed
The package now requires Node.js 20.19.0 or later, so older Node.js versions must be upgraded. github.com - Behavior changed
The package sets type to module, so code must load it with ESM import, and CommonJS require() is supported only in modern environments. github.com - Behavior changed
:enabled
The :enabled pseudo-class no longer matches non-form elements, so selectors relying on that must be updated. github.com - Signature changed
is
Was function is<Node, ElementNode extends Node>(elem: ElementNode, query: Query<ElementNode>, options?: Options<Node, ElementNode>): boolean; now function is<Node, ElementNode extends Node>(element: ElementNode, query: Query<ElementNode>... npmjs.com - Signature changed
Options.pseudos
Was pseudos?: Record<string, string | ((elem: ElementNode, value?: string | null) => boolean)> | undefined; now pseudos?: Record<string, string | ((element: ElementNode, value?: string | null) => boolean)> | undefined. npmjs.com - Signature changed
prepareContext
Was function prepareContext<Node, ElementNode extends Node>(elems: Node | Node[], adapter: Adapter<Node, ElementNode>, shouldTestNextSiblings?: boolean): Node[]; now function prepareContext<Node, ElementNode extends Node>(elements: Node |... npmjs.com
css-select 6.0.0 breaking changes
- Configuration changed
The package moved its build and test tooling to tshy, vitest and Biome; users are not expected to change code for this, but build output and tooling setup may differ. github.com - Signature changed
_compileToken
Was const _compileToken: <Node, ElementNode extends Node>(selector: import("./types.js").InternalSelector[][], options?: Options<Node, ElementNode> | undefined, context?: Node | Node[] | undefined) => CompiledQuery<ElementNode>; now... npmjs.com - Signature changed
_compileUnsafe
Was const _compileUnsafe: <Node, ElementNode extends Node>(selector: string | import("css-what").Selector[][], options?: Options<Node, ElementNode> | undefined, context?: Node | Node[] | undefined) => CompiledQuery<ElementNode>; now... npmjs.com - Signature changed
compile
Was const compile: <Node, ElementNode extends Node>(selector: string | import("css-what").Selector[][], options?: Options<Node, ElementNode> | undefined, context?: Node | Node[] | undefined) => CompiledQuery<Node>; now function... npmjs.com - Signature changed
Options.adapter
Was adapter?: Adapter<Node, ElementNode>; now adapter?: Adapter<Node, ElementNode> | undefined. npmjs.com
css-select 5.0.0 breaking changes
- Behavior changed
:host-context
The :host-context pseudo-class now throws an error. The error message for unknown pseudo-classes has also changed. github.com - Configuration changed
css-select is now published as a dual CJS and ESM package. Users must not rely on deep imports, which are no longer permitted. github.com - Signature changed
_compileToken
Was const _compileToken: <Node_1, ElementNode extends Node_1>(selector: import("./types").InternalSelector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<ElementNode>; now... npmjs.com - Signature changed
_compileUnsafe
Was const _compileUnsafe: <Node_1, ElementNode extends Node_1>(selector: string | import("css-what").Selector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<ElementNode>... npmjs.com - Signature changed
compile
Was const compile: <Node_1, ElementNode extends Node_1>(selector: string | import("css-what").Selector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<Node_1>; now const... npmjs.com - Signature changed
default
Was const selectAll: <Node_1, ElementNode extends Node_1>(query: Query<ElementNode>, elements: Node_1 | Node_1[], options?: Options<Node_1, ElementNode> | undefined) => ElementNode[]; now const selectAll: <Node, ElementNode extends... npmjs.com - Signature changed
selectAll
Was const selectAll: <Node_1, ElementNode extends Node_1>(query: Query<ElementNode>, elements: Node_1 | Node_1[], options?: Options<Node_1, ElementNode> | undefined) => ElementNode[]; now const selectAll: <Node, ElementNode extends... npmjs.com - Signature changed
selectOne
Was const selectOne: <Node_1, ElementNode extends Node_1>(query: Query<ElementNode>, elements: Node_1 | Node_1[], options?: Options<Node_1, ElementNode> | undefined) => ElementNode | null; now const selectOne: <Node, ElementNode extends... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.