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

fix: always use options.fetch in getWellKnownSolid #1680

Merged
merged 2 commits into from
Aug 18, 2022

Conversation

ThisIsMissEm
Copy link
Contributor

This PR fixes the bug SDK-2780 partially, as in some situations fetcher.ts was failing to load cross-fetch, so the easy work-around is to always use the provided fetch implementation, that way we know that the method will behave correctly in @inrupt/solid-client-notifications.

  • I've added a unit test to test for potential regressions of this bug.
  • The changelog has been updated, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

@ThisIsMissEm ThisIsMissEm requested a review from a team as a code owner August 17, 2022 18:26
@vercel
Copy link

vercel bot commented Aug 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
solid-client-js ✅ Ready (Inspect) Visit Preview Aug 17, 2022 at 6:30PM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 17, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6283e29:

Sandbox Source
solid-client-sandbox Configuration

@ThisIsMissEm ThisIsMissEm temporarily deployed to Inrupt Dev-Next August 17, 2022 18:29 Inactive
@ThisIsMissEm ThisIsMissEm temporarily deployed to NSS August 17, 2022 18:29 Inactive
@ThisIsMissEm ThisIsMissEm temporarily deployed to Inrupt Dev-Next August 17, 2022 18:30 Inactive
@ThisIsMissEm ThisIsMissEm temporarily deployed to Inrupt Dev-Next August 17, 2022 18:30 Inactive
@ThisIsMissEm ThisIsMissEm temporarily deployed to Inrupt Dev-Next August 17, 2022 18:30 Inactive
@vercel vercel bot temporarily deployed to Preview August 17, 2022 18:30 Inactive
Copy link
Contributor

@jeswr jeswr left a comment

Choose a reason for hiding this comment

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

The functional changes are fine - but lots of unecessary formatting changes (changing indents, adding lines etc.).

@ThisIsMissEm
Copy link
Contributor Author

The functional changes are fine - but lots of unnecessary formatting changes (changing indents, adding lines etc.).

Yeah, in the tests it's mostly just trying to simplify them and make them consistent in implementation of fetch mocking.

@ThisIsMissEm ThisIsMissEm merged commit f658bf1 into main Aug 18, 2022
@ThisIsMissEm ThisIsMissEm deleted the fix/get-well-known-solid-fetch-issue branch August 18, 2022 15:05
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