Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

feat: support fetch Headers class - #359

Merged
alvarowolfx merged 3 commits into
mainfrom
feat-support-fetch-header
Apr 7, 2025
Merged

alvarowolfx merged 3 commits into
mainfrom
feat-support-fetch-header

Conversation

@alvarowolfx

Copy link
Copy Markdown
Contributor

With new changes on google auth library (v10), headers can come as Fetch Headers, which is not supported by Teeny Request. Due to this mismatch, usage of the new auth lib causes system tests on Node BigQuery to fail (see googleapis/nodejs-bigquery#1458)

CoreOptions.headers was not updated as it would cause a breaking change and require consumers of the library to check if headers are an object vs Fetch Header. This change make it backward compatible.

Towards googleapis/nodejs-bigquery#1458

@alvarowolfx
alvarowolfx requested review from a team and sofisl April 7, 2025 15:30
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Apr 7, 2025
@alvarowolfx
alvarowolfx requested a review from leahecole April 7, 2025 15:30
@leahecole
leahecole requested a review from d-goog April 7, 2025 15:31
Comment thread test/index.ts Outdated
@alvarowolfx
alvarowolfx merged commit e9b1577 into main Apr 7, 2025
@alvarowolfx
alvarowolfx deleted the feat-support-fetch-header branch April 7, 2025 18:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants