Skip to content

Commit

Permalink
enhance(url-loader): refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jun 29, 2021
1 parent caf7487 commit 614c08c
Show file tree
Hide file tree
Showing 7 changed files with 339 additions and 271 deletions.
11 changes: 11 additions & 0 deletions .changeset/fifty-carrots-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@graphql-tools/url-loader': major
---

BREAKING CHANGE
- Remove `handleSDLAsync` and `handleSDLSync`; use `handleSDL` instead
- Remove `useSSEForSubscription` and `useWebSocketLegacyProtocol`; use `subscriptionProtocol` instead
- If introspection source is different than endpoint, use `endpoint` for remote execution source
- Default HTTP Executor is renamed to `buildHTTPExecutor` with a new signature
- `build*Subscriber` methods are renamed to `buildWSLegacyExecutor`, `buildWSExecutor` and `buildSSEExecutor` with new signatures
- `getFetch` no longer takes `async` flag
4 changes: 3 additions & 1 deletion packages/loaders/url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@graphql-tools/utils": "^7.9.0",
"@graphql-tools/wrap": "^7.0.4",
"@microsoft/fetch-event-source": "2.0.1",
"@n1ru4l/graphql-live-query": "0.7.1",
"@types/websocket": "1.0.2",
"abort-controller": "3.0.0",
"cross-fetch": "3.1.4",
Expand All @@ -60,7 +61,8 @@
"sync-fetch": "0.3.0",
"tslib": "~2.3.0",
"valid-url": "1.0.9",
"ws": "7.5.1"
"ws": "7.5.1",
"value-or-promise": "1.0.10"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit 614c08c

Please sign in to comment.