Skip to content

Web chunk(): build the blank signature inside the call, not at import - #79

Merged
bompus merged 1 commit into
mainfrom
t3/web-blank-signature-literal
Nov 7, 2026
Merged

bompus merged 1 commit into
mainfrom
t3/web-blank-signature-literal

Conversation

@bompus

@bompus bompus commented Nov 7, 2026

Copy link
Copy Markdown
Owner

The WebCrypto entry's module-level '0'.repeat(64) is a call a bundler cannot prove pure, so a bundle that imported only getAuthHeaders still carried it: 5,257 bytes minified in 1.0.5, against 5,235 in 1.0.4. It is now built inside chunk(), and the same bundle is 5,235 bytes again with no repeat(64) in it. Behavior is unchanged.

bun run check and bun test test/ pass. bench/results/tiers.json and the web size in docs/benchmarks.md still describe the published 1.0.5; the next release re-measures them.

The module-level '0'.repeat(64) is a call the bundler cannot prove pure, so a bundle that imported only getAuthHeaders from the WebCrypto entry still carried it: 5,257 bytes minified, against 5,235 in 1.0.4. Built inside chunk(), the bundle is back to 5,235 and no longer holds the constant. Behavior is unchanged.
@bompus bompus added author:anthropic Pull request written by a anthropic model author-model:sonnet-5-5 A model that wrote part of this pull request labels Nov 7, 2026
@bompus
bompus merged commit 4f7dc5d into main Nov 7, 2026
7 checks passed
@bompus
bompus deleted the t3/web-blank-signature-literal branch November 7, 2026 01:52

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (SWE-2 Max, max reasoning; Gemini 3.8 Flash, high reasoning): 0 finding(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:anthropic Pull request written by a anthropic model author-model:sonnet-5-5 A model that wrote part of this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant