Skip to content

Commit e1d3faf

Browse files
committed
enhance(url-loader): refactor
1 parent caf7487 commit e1d3faf

File tree

7 files changed

+339
-271
lines changed

7 files changed

+339
-271
lines changed

.changeset/fifty-carrots-pretend.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@graphql-tools/url-loader': major
3+
---
4+
5+
BREAKING CHANGE
6+
- Remove `handleSDLAsync` and `handleSDLSync`; use `handleSDL` instead
7+
- Remove `useSSEForSubscription` and `useWebSocketLegacyProtocol`; use `subscriptionProtocol` instead
8+
- If introspection source is different than endpoint, use `endpoint` for remote execution source
9+
- Default HTTP Executor is renamed to `buildHTTPExecutor` with a new signature
10+
- `build*Subscriber` methods are renamed to `buildWSLegacyExecutor`, `buildWSExecutor` and `buildSSEExecutor` with new signatures
11+
- `getFetch` no longer takes `async` flag

packages/loaders/url/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@graphql-tools/utils": "^7.9.0",
4747
"@graphql-tools/wrap": "^7.0.4",
4848
"@microsoft/fetch-event-source": "2.0.1",
49+
"@n1ru4l/graphql-live-query": "0.7.1",
4950
"@types/websocket": "1.0.2",
5051
"abort-controller": "3.0.0",
5152
"cross-fetch": "3.1.4",
@@ -60,7 +61,8 @@
6061
"sync-fetch": "0.3.0",
6162
"tslib": "~2.3.0",
6263
"valid-url": "1.0.9",
63-
"ws": "7.5.1"
64+
"ws": "7.5.1",
65+
"value-or-promise": "1.0.10"
6466
},
6567
"publishConfig": {
6668
"access": "public",

0 commit comments

Comments
 (0)