Skip to content

Conversation

@usualoma
Copy link
Member

fix #294

compress: false was added below.

#41

This is likely for compatibility with the compress option when using node-fetch.

https://www.npmjs.com/package/node-fetch

The compress option is not used with the Fetch API.

https://developer.mozilla.org/docs/Web/API/RequestInit

Since we no longer need to consider the use of node-fetch in the current version of node-server, I believe we can stop overriding global.fetch.

@yusukebe yusukebe changed the title refactor(globals): Stop overwriting global.fetch fix(globals): Stop overwriting global.fetch Jan 13, 2026
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

@usualoma

I think it's better to mark it as a fix since we have to release a new patch version including this change. I've changed the title myself.

Thanks!

@yusukebe yusukebe merged commit 2d729e7 into main Jan 13, 2026
5 checks passed
@yusukebe yusukebe deleted the refactor/remove-global-fetch-overwrite branch January 13, 2026 21:41
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.

Library is overriding global.fetch on import

3 participants