Skip to content

Keep direct assignments for custom fetcher responses to avoid a slowdown - #123

Merged
MattCCC merged 2 commits into
claude/elegant-ritchie-umt7vafrom
response-assignments
Sep 27, 2026
Merged

MattCCC merged 2 commits into
claude/elegant-ritchie-umt7vafrom
response-assignments

Conversation

@MattCCC

@MattCCC MattCCC commented Sep 27, 2026

Copy link
Copy Markdown
Owner

This pull request undoes one change of #121, which saved a few bytes but made requests measurably slower. It targets the 4.3.0 release pull request #120.

🐛 Bug Fixes

🧪 Tests

  • All 895 tests pass with 100% coverage.

📦 Bundle Size

The bundles grow by about 10 bytes (brotli), e.g. browser/index.mjs from 7.97 kB to 7.98 kB. That's still 0.16 kB smaller than before #121, and the README's 8.9 KB for fetchff doesn't change.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/browser/index.mjs 7.79 KB (+0.13% 🔺)
dist/browser/index.global.js 7.98 KB (+0.1% 🔺)
dist/node/index.js 7.96 KB (+0.14% 🔺)
dist/react/index.mjs 10.96 KB (+0.56% 🔺)
dist/react/index.js 11.78 KB (+0.11% 🔺)

@MattCCC
MattCCC merged commit 8067115 into claude/elegant-ritchie-umt7va Sep 27, 2026
12 checks passed
@MattCCC
MattCCC deleted the response-assignments branch September 27, 2026 21:49
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.

1 participant