mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #457] [MERGED] fix: object-form query array serialization in next/link and next/router #585
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#585
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/457
Author: @JaredStowell
Created: 3/11/2026
Status: ✅ Merged
Merged: 3/11/2026
Merged by: @james-elicx
Base:
main← Head:jstowell/fix-query-array-url-serialization📝 Commits (2)
4330d00Fix query param handlingbde4c63Fix scalar query serialization📊 Changes
7 files changed (+195 additions, -8 deletions)
View changed files
📝
packages/vinext/src/shims/link.tsx(+3 -3)📝
packages/vinext/src/shims/router.ts(+8 -3)📝
packages/vinext/src/utils/query.ts(+38 -0)📝
tests/fixtures/app-basic/next-shims.d.ts(+3 -1)📝
tests/fixtures/pages-basic/next-shims.d.ts(+3 -1)📝
tests/link.test.ts(+29 -0)📝
tests/shims.test.ts(+111 -0)📄 Description
Fix object-form URL serialization so array query values are emitted as repeated params instead of comma-joined strings.
Before:
{ pathname: "/search", query: { tag: ["a", "b"], q: "x" } }/search?tag=a,b&q=xAfter:
/search?tag=a&tag=b&q=xChanges
next/linkandnext/routernext/linktypings to allow array query valuesTesting
pnpm test tests/link.test.tspnpm test tests/shims.test.tspnpm run fmtpnpm run typecheck🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.