Skip to content

Commit

Permalink
Add some options to UrlLoader (#2898)
Browse files Browse the repository at this point in the history
* Add some options to UrlLoader

* multipart response support

* changeset'

* Fix polyfill

* Bump

* Try to fix withCancel

* Align versions
  • Loading branch information
ardatan committed May 2, 2021
1 parent 1bb49c5 commit 20d2c7b
Show file tree
Hide file tree
Showing 13 changed files with 192 additions and 73 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-crews-rush.md
@@ -0,0 +1,5 @@
---
'@graphql-tools/url-loader': minor
---

feat(url-loader): multipart response support
5 changes: 5 additions & 0 deletions .changeset/two-papayas-work.md
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': minor
---

feat(utils): add withCancel
6 changes: 6 additions & 0 deletions .changeset/weak-eagles-flow.md
@@ -0,0 +1,6 @@
---
'@graphql-tools/url-loader': minor
---

feat(url-loader): ability to provide different subscriptionsEndpoint
feat(url-loader): ability to provide headers factory that takes executionParams
2 changes: 1 addition & 1 deletion packages/loaders/github/tests/schema-from-github.spec.ts
Expand Up @@ -28,7 +28,7 @@ function normalize(doc: string): string {
}

test('load schema from GitHub', async () => {
let headers: Record<string, string> = {};
let headers: Record<string, string | string[]> = {};
let query: string;
let variables: any;
let operationName: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/url/declarations.d.ts
@@ -1,2 +1,2 @@
declare module 'sync-fetch';
declare module 'graphql-upload';
declare module '@ardatan/eventsource';
9 changes: 6 additions & 3 deletions packages/loaders/url/package.json
Expand Up @@ -28,20 +28,23 @@
"@types/extract-files": "8.1.0",
"@types/eventsource": "1.1.5",
"@types/ws": "7.4.2",
"graphql-upload": "11.0.0",
"mock-http": "1.1.0",
"mock-socket": "9.0.3"
},
"dependencies": {
"@graphql-tools/delegate": "^7.0.1",
"@graphql-tools/utils": "^7.1.5",
"@graphql-tools/utils": "^7.8.1",
"@graphql-tools/wrap": "^7.0.4",
"@types/websocket": "1.0.2",
"abort-controller": "3.0.0",
"cross-fetch": "3.1.4",
"eventsource": "1.1.0",
"@ardatan/eventsource": "1.1.2",
"extract-files": "9.0.0",
"form-data": "4.0.0",
"graphql-upload": "^11.0.0",
"graphql-ws": "^4.4.1",
"lodash": "4.17.21",
"meros": "1.1.4",
"is-promise": "4.0.0",
"isomorphic-ws": "4.0.1",
"sse-z": "0.3.0",
Expand Down

0 comments on commit 20d2c7b

Please sign in to comment.