Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Remove reference to GlobalFetch in Typescript #1095

Merged

Conversation

sandersn
Copy link
Contributor

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.

Fixes compilation of apollo-link-http-common in the upcoming Typescript
3.6.

Fixes apollographql#1094
@apollo-cla
Copy link

@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/

Copy link
Member

@benjamn benjamn left a 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-io
Copy link

codecov-io commented Jun 19, 2019

Codecov Report

Merging #1095 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          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
Impacted Files Coverage Δ
packages/apollo-link-http-common/src/index.ts 92.75% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d006fa...356922b. Read the comment docs.

sandersn added a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Jun 19, 2019
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.
@sandersn sandersn closed this Jun 19, 2019
@sandersn sandersn reopened this Jun 19, 2019
@sandersn
Copy link
Contributor Author

@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.

@sandersn sandersn closed this Jun 20, 2019
@sandersn sandersn reopened this Jun 20, 2019
@benjamn benjamn merged commit 04d405a into apollographql:master Jun 20, 2019
@sandersn sandersn deleted the remove-reference-to-globalfetch branch June 20, 2019 20:51
iRON5 pushed a commit to iRON5/DefinitelyTyped that referenced this pull request Aug 13, 2019
* 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
@akleiner2
Copy link

Hey @benjamn @hwillson! Would it be possible to do a release that includes this commit? We're looking at upgrading to TS3.6 ourselves, and would love to have this as a part of the upgrade :).

@sarink
Copy link

sarink commented Sep 15, 2019

^ 🙏

In the meantime... Is there any workaround?

@smyrick
Copy link
Member

smyrick commented Sep 15, 2019

@sarink @akleiner2 The latest release fixed the issue for us

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apollo-link-http-common references type GlobalFetch, to be removed in Typescript 3.6
7 participants