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

# query-string breaking changes

query-string 10.0.0 (October 21, 2026) is its newest release with breaking changes, 20 of them. The first: query-string 10.0.0 requires Node.js 22 or later. Every breaking API change we have recorded in query-string on npm: 36 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

Latest version `10.0.0`, released October 21, 2026. [Source repository](https://github.com/sindresorhus/query-string)

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

- From [9.0.0](#v-9-0-0) to [10.0.0](#v-10-0-0): 20 breaking changes in 1 version.
- From [8.0.0](#v-8-0-0) to [10.0.0](#v-10-0-0): 21 breaking changes in 2 versions.

## query-string 10.0.0 breaking changes

query-string 10.0.0, released October 21, 2026: 20 breaking changes.

- **Removed**  

The package now requires Node.js 22, so users on older Node.js versions must upgrade their runtime. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `arrayFormat`  

With arrayFormat bracket-separator, a percent-encoded separator is no longer split on, so foo\[\]=a%2Cb,c now gives \['a,b', 'c'\]. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `exclude`  

exclude() now keeps parameters exactly as they were in the URL, so options like parseNumbers only change the value the filter receives. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `parse`  

parse() now collects a repeated key into an array for all arrayFormat values, where some formats previously kept only the last value. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `pick`  

pick() now keeps parameters exactly as they were in the URL, so options like parseNumbers only change the value the filter receives. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `stringify`  

stringify() now throws a TypeError for objects, functions, symbols and Date values instead of writing them out. Use the replacer option to convert such values. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `stringifyUrl`  

stringifyUrl now percent-encodes the fragmentIdentifier as a decoded value, so an already encoded fragment identifier must be passed decoded. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Behavior changed** `types`  

An explicit types entry now overrides parseNumbers and parseBooleans, and values that do not match their type stay strings. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v10.0.0)
- **Signature changed** `default.exclude`  

Was function exclude(url: string, filter: (key: string, value: string | boolean | number) => boolean, options?: {parseBooleans: true; parseNumbers: true} & ParseOptions & StringifyOptions): string function exclude(url: string, filter... [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `default.parse`  

Was function parse(query: string, options: {parseBooleans: true; parseNumbers: true} & ParseOptions): ParsedQuery\<string | boolean | number> function parse(query: string, options: {parseBooleans: true} & ParseOptions): ParsedQuery\<string |... [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `default.parseUrl`  

Was function parseUrl(url: string, options?: ParseOptions): ParsedUrl; now function parseUrl\<Options extends ParseOptions>(url: string, options?: KnownOptions\<Options>): ParsedUrl\<ParsedValue\<Options>>. [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `default.pick`  

Was function pick(url: string, filter: (key: string, value: string | boolean | number) => boolean, options?: {parseBooleans: true; parseNumbers: true} & ParseOptions & StringifyOptions): string function pick(url: string, filter: (key... [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `ParsedUrl`  

Was type ParsedUrl = {readonly url: string; readonly query: ParsedQuery; readonly fragmentIdentifier?: string;}; now type ParsedUrl\<T = string> = {readonly url: string; readonly query: ParsedQuery\<T>; readonly fragmentIdentifier?: string;}. [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `ParsedUrl.query`  

Was readonly query: ParsedQuery; now readonly query: ParsedQuery\<T>. [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `ParseOptions`  

Was type ParseOptions = {readonly decode?: boolean; readonly arrayFormat?: | 'bracket' | 'index' | 'comma' | 'separator' | 'bracket-separator' | 'colon-list-separator' | 'none'; readonly arrayFormatSeparator?: string; readonly sort?... [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `ParseOptions.sort`  

Was readonly sort?: ((itemLeft: string, itemRight: string) => number) | false; now readonly sort?: ((itemLeft: string, itemRight: string) => number) | boolean. [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `StringifyOptions`  

Was type StringifyOptions = {readonly strict?: boolean; readonly encode?: boolean; readonly arrayFormat?: 'bracket' | 'index' | 'comma' | 'separator' | 'bracket-separator' | 'colon-list-separator' | 'none'; readonly arrayFormatSeparator?... [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `StringifyOptions.sort`  

Was readonly sort?: ((itemLeft: string, itemRight: string) => number) | false; now readonly sort?: ((itemLeft: string, itemRight: string) => number) | boolean. [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `UrlObject`  

Was type UrlObject = {readonly url: string; readonly query?: StringifiableRecord; readonly fragmentIdentifier?: string;}; now type UrlObject = {readonly url: string; readonly query?: Record\<string, any>; readonly fragmentIdentifier?... [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)
- **Signature changed** `UrlObject.query`  

Was readonly query?: StringifiableRecord; now readonly query?: Record\<string, any>. [npmjs.com](https://www.npmjs.com/package/query-string/v/10.0.0)

## query-string 9.0.0 breaking changes

query-string 9.0.0, released February 26, 2024: 1 breaking change.

- **Behavior changed**  

The package now requires Node.js 18 or later. Users on older Node.js versions must upgrade Node.js before upgrading this package. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v9.0.0)

## query-string 8.0.0 breaking changes

query-string 8.0.0, released December 12, 2022: 15 breaking changes.

- **Removed** `exclude`  

exclude was removed in query-string 8.0.0 [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Removed** `parse`  

parse was removed in query-string 8.0.0 [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Removed** `ParsedQuery.__index`  

ParsedQuery.\_\_index was removed in query-string 8.0.0 [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Removed** `pick`  

pick was removed in query-string 8.0.0 [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Renamed** `extract`  

Use extract instead. [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Renamed** `parseUrl`  

Use parseUrl instead. [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Renamed** `stringify`  

Use stringify instead. [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Renamed** `stringifyUrl`  

Use stringifyUrl instead. [npmjs.com](https://www.npmjs.com/package/query-string/v/8.0.0)
- **Behavior changed**  

Node.js versions older than 14 are no longer supported; upgrade Node.js before using this release. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v8.0.0)
- **Behavior changed**  

The package is now pure ESM, so CommonJS require() no longer works; use import and add module and moduleResolution node16 to tsconfig.json. Node.js 14 is the minimum runtime. [github.com](https://github.com/sindresorhus/query-string/releases/tag/v8.0.0)

And 5 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

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