Skip to content

TRAC-525: fix - client.ts not using Header object for default values#3018

Merged
parthshahp merged 1 commit into
canaryfrom
trac-525-client-fix
May 19, 2026
Merged

TRAC-525: fix - client.ts not using Header object for default values#3018
parthshahp merged 1 commit into
canaryfrom
trac-525-client-fix

Conversation

@parthshahp

Copy link
Copy Markdown
Contributor

What/Why?

Spreading plain object literals into the fetch headers field left case-variant keys (e.g. Authorization and authorization) as distinct properties, which fetch then appended together into a single comma-joined value. Build the header set with a Headers object so overrides from beforeRequest and per-call headers replace the defaults instead of duplicating them.

Testing

Tested manually. Previously, passing in a header with Authorization would append the key to the authorization header rather than replacing it.

Migration

No migration needed.

@vercel

vercel Bot commented May 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
catalyst Ready Ready Preview, Comment May 19, 2026 2:54pm

Request Review

@changeset-bot

changeset-bot Bot commented May 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 05aa48b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@bigcommerce/catalyst-client Patch
@bigcommerce/catalyst-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

Comparing against baseline from a792a86 (2026-05-19).

No bundle size changes detected.

@github-actions

github-actions Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Unlighthouse Performance Comparison — Vercel

Comparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores.

Summary Score

Aggregate score across all categories as reported by Unlighthouse.

Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Score 90 92 92 95

Category Scores

Category Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Performance 75 87 78 81
Accessibility 95 98 95 92
Best Practices 100 100 100 100
SEO 88 88 100 100

Core Web Vitals

Metric Prod Desktop Prod Mobile Preview Desktop Preview Mobile
LCP 3.6 s 4.0 s 3.3 s 4.9 s
CLS 0.04 0 0.001 0
FCP 1.2 s 1.2 s 1.1 s 1.2 s
TBT 10 ms 0 ms 0 ms 0 ms
Max Potential FID 60 ms 40 ms 50 ms 50 ms
Time to Interactive 3.6 s 4.0 s 3.3 s 4.9 s

Full Unlighthouse report →

@parthshahp
parthshahp marked this pull request as ready for review May 18, 2026 16:43
@parthshahp
parthshahp requested a review from a team as a code owner May 18, 2026 16:43
@parthshahp
parthshahp added this pull request to the merge queue May 18, 2026
@parthshahp
parthshahp removed this pull request from the merge queue due to a manual request May 18, 2026
@parthshahp
parthshahp force-pushed the trac-525-client-fix branch from 0fd8063 to eeb69da Compare May 18, 2026 16:45
Comment thread .changeset/fresh-steaks-remain.md Outdated
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-client": minor

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🍹 I'd say it's a patch, since we are technically fixing an intended functionality.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're right, I thought I changed that but I didn't. Updating.

@parthshahp
parthshahp force-pushed the trac-525-client-fix branch from eeb69da to 05aa48b Compare May 19, 2026 14:53
@parthshahp
parthshahp added this pull request to the merge queue May 19, 2026
Merged via the queue into canary with commit f4216a6 May 19, 2026
19 checks passed
@parthshahp
parthshahp deleted the trac-525-client-fix branch May 19, 2026 17:26
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.

3 participants