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

Merged
merged 3 commits into from Mar 11, 2024
Merged

Remove node-fetch #35

merged 3 commits into from Mar 11, 2024

Conversation

jeff-zucker
Copy link
Member

@jeff-zucker jeff-zucker commented Mar 10, 2024

Node-fetch is stale, causes problems in downstream libraries, and is now replaceable with the better and more recently updated cross-fetch. I wasn't able to build solid-auth-fetcher, but substituting cross-fetch for node-fetch directy in the obtainAuthHeaders.js eliminated the downstream errors (in solid-node-client and solid-shell).

Node-fetch is stale, causes problems in downstream libraries, and is now replaceable with  the better native fetch function in node.js.  I wasn't able to build solid-auth-fetcher, but I think you'll find that commenting it out gives you a better fetch.  If you have to import something, try cross-fetch which is at least updated.  BTW I still use solid-auth-fetcher in solid-shell which has at least one user (he copies his timbl.com to his desktop with it).
Copy link
Collaborator

@michielbdejong michielbdejong left a comment

Choose a reason for hiding this comment

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

<3

@michielbdejong michielbdejong merged commit fe81ba4 into main Mar 11, 2024
This was referenced Mar 11, 2024
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