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

feat!: Do not treat Buffers as JSON by default#621

Merged
danielbankhead merged 35 commits intomainfrom
do-not-treat-buffer-as-json
Oct 30, 2024
Merged

feat!: Do not treat Buffers as JSON by default#621
danielbankhead merged 35 commits intomainfrom
do-not-treat-buffer-as-json

Conversation

@danielbankhead
Copy link
Contributor

@danielbankhead danielbankhead commented May 15, 2024

@generated-files-bot
Copy link

generated-files-bot bot commented May 15, 2024

Warning: This pull request is touching the following templated files:

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Jul 1, 2024
@danielbankhead danielbankhead added the next major: breaking change this is a change that we should wait to bundle into the next major version label Jul 1, 2024
@danielbankhead danielbankhead changed the base branch from upgrade-node-fetch to main July 2, 2024 21:50
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Sep 11, 2024
@danielbankhead danielbankhead marked this pull request as ready for review October 25, 2024 18:13
@danielbankhead danielbankhead requested a review from a team as a code owner October 25, 2024 18:13
@sofisl
Copy link
Contributor

sofisl commented Oct 29, 2024

Is there a FR tied to this?

@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xl Pull request size is extra large. labels Oct 29, 2024
@danielbankhead
Copy link
Contributor Author

assert.deepStrictEqual(res.data, {});
});

it('should set content-type to application/json by default, for buffer', async () => {
Copy link
Contributor

@sofisl sofisl Oct 30, 2024

Choose a reason for hiding this comment

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

can we write a test that asserts the behavior for what happens if a buffer does get sent in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, it’s mostly a partial revert of:

but that can be added.

@danielbankhead danielbankhead merged commit f3c1e76 into main Oct 30, 2024
@danielbankhead danielbankhead deleted the do-not-treat-buffer-as-json branch October 30, 2024 22:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

next major: breaking change this is a change that we should wait to bundle into the next major version size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants