Skip to content

fix: support bigint params in server-side route resolution - #17130

Merged
Rich-Harris merged 2 commits into
version-3from
triage/kit-17129-bigint-route-resolution
Sep 18, 2026
Merged

Rich-Harris merged 2 commits into
version-3from
triage/kit-17129-bigint-route-resolution

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor

Summary

  • serialize server-side route-resolution params with devalue.uneval
  • preserve bigint values produced by defineParams in generated route modules
  • add a navigation regression test using a bigint above Number.MAX_SAFE_INTEGER

Fixes #17129

Testing

  • focused server-side route-resolution Playwright test in dev mode
  • focused server-side route-resolution Playwright test against a production build
  • pnpm -F @sveltejs/kit test:unit
  • pnpm format
  • pnpm lint
  • pnpm check

Issue: #17129

ghost commented Sep 17, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 6d0aafc:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/6d0aafc4ef39cdaf0ec191b150269daa5f6c8e4b

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17130

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

ghost commented Sep 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6d0aafc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

ghost commented Sep 17, 2026

Copy link
Copy Markdown
Member

@svelte-triage-bot fix the stale params JSDoc type and use import * as devalue like render.js

@ghost
ghost marked this pull request as ready for review September 18, 2026 00:17
@ghost
ghost merged commit abf47df into sveltejs:version-3 Sep 18, 2026
@ghost ghost mentioned this pull request Sep 18, 2026
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.

Server-side route-resolution fails for params that are converted to bigints

2 participants