-
Notifications
You must be signed in to change notification settings - Fork 344
Remove reference to GlobalFetch in Typescript #1095
Remove reference to GlobalFetch in Typescript #1095
Conversation
Fixes compilation of apollo-link-http-common in the upcoming Typescript 3.6. Fixes apollographql#1094
@sandersn: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @sandersn! I'll merge and release once the tests pass. Feel free to ping me if I forget.
Codecov Report
@@ Coverage Diff @@
## master #1095 +/- ##
======================================
Coverage 95.6% 95.6%
======================================
Files 22 22
Lines 1116 1116
Branches 174 162 -12
======================================
Hits 1067 1067
Misses 44 44
Partials 5 5
Continue to review full report at Codecov.
|
1. Apollo-link used GlobalFetch, which has been removed. Until my PR goes in (apollographql/apollo-link#1095), I added a shim in apollo-upload-client, which uses apollo-link-http-common. 2. dom-inputevent is updated to match the spec-standard InputEvent types that will ship with Typescript 3.6. 3. Same for webappsec-credential-management 4. Fixed to-markdown's tests to work with the new, non-nullable definition of node.style.fontStyle.
@benjamn It doesn't look like all the circleci tasks are running. Is it backlogged or something? The build succeeded but Filesize, Monorepo, Prettier, etc have not started. |
* Fixes for early June TS3.6 DOM update 1. Apollo-link used GlobalFetch, which has been removed. Until my PR goes in (apollographql/apollo-link#1095), I added a shim in apollo-upload-client, which uses apollo-link-http-common. 2. dom-inputevent is updated to match the spec-standard InputEvent types that will ship with Typescript 3.6. 3. Same for webappsec-credential-management 4. Fixed to-markdown's tests to work with the new, non-nullable definition of node.style.fontStyle. * Fix redundant `undefined` lint * Make fetch shim work on more versions of Typescript * Require TS 3.1 for apollo-upload-client fix
^ 🙏 In the meantime... Is there any workaround? |
@sarink @akleiner2 The latest release fixed the issue for us |
Fixes compilation of apollo-link-http-common in the upcoming Typescript 3.6.
Fixes #1094
There is no new test for this -- if it builds then it works with whatever version of Typescript is on CI; if apollo-link doesn't already test with multiple versions of TS then I don't think this is the place to make that happen.