Closed akrantz01 closed 4 months ago
Latest commit: 1a0015d63109e088beb344e981942a90cfe23bb8
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Summary
Changes query parameter handling to allow path-only URLs (i.e.
/api/graphql
) passed tofetch
to be used with GET requests. This was previously broken asURL
would throw aTypeError: Invalid URL
as it only works with fully formed URLs.Extracting the unparsed query parameters is now done manually, so as to not depend on
URL
. Important to note is that the current method will not handle URLs with fragments (i.e./api/graphql#fragment
) in them, but it is easy to add if desired.