unstale

npm / qs

qs

What changed in qs 6, from its official release notes, upgrade guides and advisories. Also covers @types/qs. Sources checked 2026-11-30.

9 breaking7 security3 new APIs and options1 performance2 behavior and defaults33 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

qs 655 changes

Breaking changes 9

  • The [] sequence is treated as array syntax only when it ends the key.

    6.16.1release notes

  • Enforces arrayLimit on comma groups under []= when throwOnLimitExceeded is set.

    6.16.0release notessecurity advisory

  • allowEmptyArrays no longer skips cycle detection or drops own keys on an empty array with own properties.

    6.16.0release notes

  • Throws the arrayLimit error before splitting oversized comma values.

    6.15.3release notes

  • Enforces throwOnLimitExceeded when arrays grow cumulatively through combine or merge.

    6.15.3release notes

  • Handles nested bracket groups; output changes for some unbalanced bracket keys.

    6.15.2release notes

  • Keys are now encoded when allowEmptyArrays is set.

    6.14.3release notes

  • arrayLimit is now enforced on values parsed using comma notation.

    6.14.2release notessecurity advisory

  • With throwOnLimitExceeded enabled, parse now throws when indexed notation exceeds arrayLimit.

    6.14.2release notes

Security 7

New APIs and options 3

  • Adds a WHATWG format for stringify output.

    6.17.0release notes

  • Adds a depth option to bound recursion depth; its default is Infinity.

    6.16.0release notes

  • Adds the strictMerge option to wrap object/primitive conflicts in an array.

    6.15.0release notes

Performance 1

  • Decoders are skipped when the input contains no percent sign.

    6.16.1release notes

Behavior and default changes 2

  • Date values are serialized when a filter is provided.

    6.16.0release notes

  • Indexed notation exceeding arrayLimit now marks overflow objects.

    6.14.2release notes

Fixes and other changes 33

  • Count sparse array elements against arrayLimit rather than counting their holes.

    6.17.1release notes

  • Guard bracket-wrapped prototype keys when depth is 0.

    6.17.1release notes

  • Decode code points above U+FFFF as surrogate pairs when interpretNumericEntities is enabled.

    6.17.1release notes

  • Respect plainObjects when parsing [] with parseArrays: false.

    6.17.1release notes

  • Encodes lone surrogates as U+FFFD instead of consuming the next code unit.

    6.17.0release notes

  • Allows scalar fields when the array limit is zero.

    6.17.0release notes

  • Does not count an existing comma array toward arrayLimit when duplicates discards or replaces it.

    6.17.0release notes

  • Preserves comma arrays when interpreting numeric entities.

    6.17.0release notes

  • Decodes percent-encoded dots case-insensitively.

    6.17.0release notes

  • Encodes keys when allowEmptyArrays is set.

    6.12.6 … 6.17.0release notesrelease notesrelease notesrelease notesrelease notes

  • No longer sorts the caller's filter array in place.

    6.17.0release notes

  • parse no longer mutates an object input.

    6.16.1release notes

  • Only top-level dots are converted to brackets when allowDots is enabled.

    6.16.1release notes

  • arrayLimit is applied to the two-element array built for colliding values.

    6.16.1release notes

  • Conflict containers retain a correct index and arrayLimit during strictMerge.

    6.16.1release notes

  • Nesting added by repeated strictMerge conflicts is bounded.

    6.16.1release notes

  • Merge overflow containers use their own keys to seed the index.

    6.16.1release notes

  • Inherited array format names are ignored.

    6.16.1release notes

  • In iso-8859-1 mode, + is encoded as %2B so values round-trip.

    6.16.1release notes

  • Structural separator dots are no longer re-encoded when encodeDotInKeys is set.

    6.16.1release notes

  • With arrayFormat set to comma, the full encoder arguments are passed when encodeValuesOnly is enabled.

    6.16.1release notes

  • Flattens a collection appended to an overflowed array.

    6.16.0release notes

  • Encodes dots in a top-level key with a primitive value when encodeDotInKeys is set.

    6.16.0release notes

  • Preserves surrogate-pair encoding across chunks.

    6.15.3release notes

  • Enforces arrayLimit consistently across merge's array paths.

    6.15.3release notes

  • Uses the configured delimiter after charsetSentinel.

    6.15.2release notes

  • Skips null/undefined filter-array entries instead of crashing in the encoder.

    6.15.2release notes

  • Applies the formatter to the encoded key under strictNullHandling.

    6.15.2release notes

  • The duplicates option no longer applies to bracket notation keys.

    6.15.0release notes

  • arrayLimit means maximum count, not maximum index, in combine, merge, and parseArrayValue.

    6.14.2release notes

  • Ignore a key when a custom decoder returns null for it.

    6.14.1release notes

  • Fixes regressions from the robustness refactor.

    6.6.3, 6.8.5, 6.9.9release notesrelease notesrelease notes

  • Fixes a regression from the robustness refactor.

    6.0.6release notes