Skip to content

Conversation

hbbrawer-twitch
Copy link
Contributor

@hbbrawer-twitch hbbrawer-twitch commented Jul 28, 2025

Prerequisites

Type of Change

Bug fix

Description

Removes the dependency on node-fetch which cause projects that import this package to also import node types.

Test

Just a type change so no additional tests were needed. Fixed one test that has an import to node-fetch.

Impact

Removes the dependence on node fetch which could affect projects relying on those types. However, 2.01 did not have this dependence.

Other Info

Open issue: #777

Comment on lines +5 to +6
import type { Headers as FetchAPIHeaders } from "undici";
import type { IncomingHttpHeaders } from "undici/types/header";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The main change

@hbbrawer-twitch hbbrawer-twitch changed the title Remove node fetch Remove node fetch types Jul 28, 2025
@hbbrawer-twitch hbbrawer-twitch changed the title Remove node fetch types Remove node fetch usage Jul 28, 2025
Copy link
Owner

@faisalman faisalman left a comment

Choose a reason for hiding this comment

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

Hi, Thanks for submitting a PR, before I can merge, can you rebase to latest commit and only add the main changes?

@faisalman
Copy link
Owner

Merged in 9e6dff6

@faisalman faisalman closed this Aug 9, 2025
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.

2 participants