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 #196

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Remove node-fetch #196

merged 1 commit into from
Jun 29, 2024

Conversation

qgustavor
Copy link
Owner

@qgustavor qgustavor commented Jun 29, 2024

node-fetch is no longer going to be included with the library since all currently supported Node.js versions include a fetch global. This allows for a faster install of the library, and, mainly, reduces the burden of having to update node-fetch whenever it gets a security update.

Users of this library using old unsupported Node.js versions can still use the library, but need to either define a fetch global (by importing node-fetch and setting globalThis.fetch), or, if that's undesirable, set this only for the library using require('megajs').API.fetchModule = require('node-fetch').

@qgustavor qgustavor merged commit 2068b0a into next Jun 29, 2024
1 check passed
@qgustavor qgustavor deleted the remove-node-fetch branch June 29, 2024 13:24
@qgustavor qgustavor mentioned this pull request Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant