Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove node-fetch fallback #4417

Merged
merged 4 commits into from Jan 28, 2024
Merged

Conversation

ryanking13
Copy link
Member

@ryanking13 ryanking13 commented Jan 24, 2024

Description

Drops node-fetch fallback and add engines key to package.json.

Related: #4411

It is worth noting that the engines key is just for advisory only, so it will not prevent people from installing Pyodide in older Node versions... but at least we can tell users that we don't support old node versions anymore.

Checklists

Comment on lines 29 to 30
- {{ Breaking }} Pyodide will not fallback to `node-fetch` anymore when `fetch`
is not available in the Node.js environment.
Copy link
Member

Choose a reason for hiding this comment

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

Is this really breaking since we already said we don't support Node 16? Maybe mention Node 16 in the message too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I updated the changelog that it affects Node.js < 18.

Copy link
Member

@hoodmane hoodmane left a comment

Choose a reason for hiding this comment

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

Thanks @ryanking13!

@ryanking13 ryanking13 merged commit 54b8df1 into pyodide:main Jan 28, 2024
36 of 39 checks passed
@ryanking13 ryanking13 deleted the drop-node-fetch branch January 28, 2024 04:04
@samestep samestep mentioned this pull request Mar 13, 2024
3 tasks
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.

None yet

2 participants