test: switch bundle budget to gzip-only (<15KB) - #19
Merged
Merged
Conversation
Retired raw-byte budget (45.5KB); consumers care about gzip size. Test now measures dist/index.js gzip compression (11.2KB measured). Updated terse-naming comments in defineTask.ts and internal.ts to note they are legacy artifacts of the retired raw-byte budget; future code should prefer descriptive names. All tests pass: lint, typecheck, build, test, test:compat:dist, check:snippets.
Merged
halaprix
added a commit
that referenced
this pull request
Jul 24, 2026
Retired raw-byte budget (45.5KB); consumers care about gzip size. Test now measures dist/index.js gzip compression (11.2KB measured). Updated terse-naming comments in defineTask.ts and internal.ts to note they are legacy artifacts of the retired raw-byte budget; future code should prefer descriptive names. All tests pass: lint, typecheck, build, test, test:compat:dist, check:snippets. Co-authored-by: halaprix <halaprix@users.noreply.github.com>
halaprix
added a commit
that referenced
this pull request
Jul 24, 2026
Retired raw-byte budget (45.5KB); consumers care about gzip size. Test now measures dist/index.js gzip compression (11.2KB measured). Updated terse-naming comments in defineTask.ts and internal.ts to note they are legacy artifacts of the retired raw-byte budget; future code should prefer descriptive names. All tests pass: lint, typecheck, build, test, test:compat:dist, check:snippets. Co-authored-by: halaprix <halaprix@users.noreply.github.com>
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.
Summary
User-approved policy change: the bundle-size regression test now asserts the gzip size of
dist/index.js(<15KB, currently 10.9KB) instead of the raw unminified byte length. The raw ceiling forced byte-shaving and per-PR bumps (35→43KB) across four 1.1 tasks; gzip is what consumers actually transfer, and the README badge is drift-checked against the same measurement in CI. Historical raw-budget context preserved as comments; the terse internal naming in defineTask.ts/internal.ts is annotated as a legacy of the retired budget (no renames in this PR). No-subpath and viem-external assertions unchanged.Test evidence
Full gate green; measured gzip 10.92KB vs 15KB ceiling.