perf: reduce nuqs bundle size by 440 bytes (-3.24%)#1392
Draft
franky47 wants to merge 27 commits into
Draft
Conversation
From evo experiment exp_0013.
From evo experiment exp_0015.
From evo experiment exp_0017.
From evo experiment exp_0030.
From evo experiment exp_0040.
From evo experiment exp_0042.
From evo experiment exp_0053.
From evo experiment exp_0063.
From evo experiment exp_0066.
From evo experiment exp_0070.
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_0087.
From evo experiment exp_0088.
From evo experiment exp_0097.
From evo experiment exp_0099.
From evo experiment exp_0103.
From evo experiment exp_0106.
…ry, key-isolation) From evo experiment exp_0118.
…uard From evo experiment exp_0123.
From evo experiment exp_0125.
From evo experiment exp_0127.
From evo experiment exp_0129.
Auto-format applied after cherry-picking the evo optimization series.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
Leaked into one cherry-picked commit; lives in evo's run branches, not the published library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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