Skip to content

feat!: drop iso-8859-1 charset support, UTF-8 only#5

Merged
AlessioGr merged 1 commit intomainfrom
feat/remove-charset
Mar 31, 2026
Merged

feat!: drop iso-8859-1 charset support, UTF-8 only#5
AlessioGr merged 1 commit intomainfrom
feat/remove-charset

Conversation

@AlessioGr
Copy link
Copy Markdown
Member

Removes the charset, charsetSentinel, and interpretNumericEntities options from both parse and stringify. All encoding/decoding is now UTF-8 only.

Why: These options existed for legacy browser compatibility (old IE iso-8859-1 form submissions, Rails charset sentinel params) that doesn't apply to modern apps. Dropping them removes unnecessary code and complexity.

Breaking changes:

  • charset, charsetSentinel, and interpretNumericEntities options are removed from parse and stringify.
  • Custom encoder/decoder callbacks no longer receive a charset argument

@AlessioGr AlessioGr merged commit 84db026 into main Mar 31, 2026
1 check passed
AlessioGr added a commit to payloadcms/payload that referenced this pull request Mar 31, 2026
Bumps qs-esm from 7.0.2 to 8.0.1. [qs-esm 8 removes some legacy code
that is not used in
payload](payloadcms/qs-esm#5), making the
package a bit smaller.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant