Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globalThis instead of global #293

Merged
merged 5 commits into from
Jan 5, 2022

Conversation

jean9696
Copy link
Contributor

@jean9696 jean9696 commented Jan 5, 2022

global is a node js const see more. We should use globalThis here.

@jean9696 jean9696 changed the title Window instead of global globalThis instead of global Jan 5, 2022
@fbartho
Copy link
Collaborator

fbartho commented Jan 5, 2022

I was concerned about your initial window proposal, but I see you’ve swapped that out.

I’m unfamiliar with globalThis though I’ve seen it referenced in typings over the past couple years. Will look up what it’s for!

@jean9696
Copy link
Contributor Author

jean9696 commented Jan 5, 2022

@fbartho
Copy link
Collaborator

fbartho commented Jan 5, 2022

@jean9696 I notice that it isn't supported on Internet Explorer -- do you know if ApolloClient still supports IE? or can we ignore that detail? (apollo-link-rest is supposed to match ApolloClient's support matrix)

@fbartho fbartho added this to the v0.next milestone Jan 5, 2022
@jean9696
Copy link
Contributor Author

jean9696 commented Jan 5, 2022

@fbartho indeed, but I don't think that apollo client supports internet explorer since it's using fetch which is not supported by default by IE according to caniuse (related issue: apollographql/apollo-link#357)

@fbartho
Copy link
Collaborator

fbartho commented Jan 5, 2022

@jean9696 Can you look at this commit to see if you approve of it? 26a799b

If yes, I'm happy to merge this so it ships in the next release.

@jean9696
Copy link
Contributor Author

jean9696 commented Jan 5, 2022

LGTM 👍

@fbartho
Copy link
Collaborator

fbartho commented Jan 5, 2022

Shipped in v0.9.0-rc.1

@jean9696 jean9696 deleted the fix/window-instead-of-global branch January 7, 2022 10:25
@fbartho
Copy link
Collaborator

fbartho commented Nov 15, 2022

Shipped this in v0.9.0! -- Enjoy! https://www.npmjs.com/package/apollo-link-rest/v/0.9.0

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

Successfully merging this pull request may close these issues.

2 participants