-
Notifications
You must be signed in to change notification settings - Fork 27k
Use globalThis for global
#50063
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
Use globalThis for global
#50063
Conversation
|
I have no idea whether this is correct, and I'm honest not sure who to ask. Maybe @devversion? |
|
Isn't globalThis supported by all the browsers that Angular supports now? |
|
@alfaproject You're making a goodpoint, the global definitions could be simplified now that IE has been dropped. |
WorkerGlobalScope from globalglobalThis for global
|
@dylhunn Following @alfaproject's comment, I change the scope of the PR to actually generalize the behaviour ! |
9582071 to
e7ce29a
Compare
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.
Seems reasonable to me. I think the current logic is mostly a historic artifact
|
@alan-agius4 do you see any risks from SSR standpoint? |
alan-agius4
left a comment
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.
LGTM
`globalThis` is now available on every runtime supported by Angular
`globalThis` is now available on every runtime supported by Angular
`globalThis` is now available on every runtime supported by Angular
`globalThis` is now available on every runtime supported by Angular
`globalThis` is now available on every runtime supported by Angular PR Close #50063
`globalThis` is now available on every runtime supported by Angular PR Close #50063
`globalThis` is now available on every runtime supported by Angular PR Close #50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
This commit fixes a regression introduced in angular#50063 Fixes angular#51382
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
`globalThis` is now available on every runtime supported by Angular PR Close angular#50063
use
globalThisforglobalglobalThisis now available on every runtime supported by AngularSee individual commits for the 3 impacted packages.
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Other information