Skip to content

perf: reduce nuqs bundle size by 440 bytes (-3.24%)#1392

Draft
franky47 wants to merge 27 commits into
nextfrom
perf/bundle-size-reduction
Draft

perf: reduce nuqs bundle size by 440 bytes (-3.24%)#1392
franky47 wants to merge 27 commits into
nextfrom
perf/bundle-size-reduction

Conversation

@franky47
Copy link
Copy Markdown
Member

Why

Hard `size-limit` caps and "minimal bundle size" as a stated goal. Slack against the caps was effectively gone (Client 6 / 6000, minimal tree-shaken 25 / 4500, Server 398 / 3500), blocking new features without bumping limits.

After: 197, 139, 533. Total -440 B / -3.24%.

Constraints respected

  • Public API unchanged (`api.test.ts` runtime snapshot + `tests/*.test-d.ts`).
  • Behavior unchanged (full nuqs suite + e2e-next 513/513).
  • No tests, no `size-limit` thresholds, no build config touched.
  • Every `console.*` / `debug()` / `performance.mark` call site preserved (count: 41 in src).

Provenance

Each commit is one autonomous evo experiment; the trailer line ties it back to its experiment ID for spelunking. The trailing `style:` commit is just `prettier --write` after the cherry-pick.

Test plan

  • `pnpm test --filter nuqs` — green
  • `pnpm test --filter e2e-next` — 513/513 green
  • Smoke test in a downstream consumer
  • Reviewer pass on short helper names (`pe`, `ok`)

franky47 added 24 commits April 29, 2026 09:41
From evo experiment exp_0015.
From evo experiment exp_0053.
From evo experiment exp_0066.
compact lib utilities (errors, compose, compare, safe-parse, search-params, timeout, emitter,
debug, with-resolvers)

From evo experiment exp_0082.
From evo experiment exp_0084.
From evo experiment exp_0103.
…ry, key-isolation)

From evo experiment exp_0118.
Auto-format applied after cherry-picking the evo optimization series.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nuqs Ready Ready Preview, Comment Apr 29, 2026 2:58pm

Request Review

@franky47 franky47 added this to the 🚀 Shipping next milestone Apr 29, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 29, 2026

pnpm add https://pkg.pr.new/nuqs@1392

commit: eda1204

@franky47 franky47 added the AI slop PR generated by AI, needs some cleanup before merging label Apr 29, 2026
Leaked into one cherry-picked commit; lives in evo's run branches, not the published library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI slop PR generated by AI, needs some cleanup before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant