Skip to content

Fix "global is not defined" from immediate dep#8816

Closed
alxndrsn wants to merge 2 commits intoapache:masterfrom
alxndrsn:immediate-global-workaround
Closed

Fix "global is not defined" from immediate dep#8816
alxndrsn wants to merge 2 commits intoapache:masterfrom
alxndrsn:immediate-global-workaround

Conversation

@alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented Nov 7, 2023

@garethbowen
Copy link
Contributor

immediate hasn't been updated for 10 years. What do we need it for and can we drop it?

@SourceR85
Copy link
Contributor

SourceR85 commented Jan 23, 2024

immediate hasn't been updated for 10 years. What do we need it for and can we drop it?

As far as I have discovered: the standardized queueMicrotask API has taken over, so there is no longer a demand for immediate.

The charts tell me queueMicrotask has been fully established:
https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask#browser_compatibility

A bit better visible on caniuse, if you switch to "Date relative":
implemented in the major browsers somewhere between 2019 and 2020
https://caniuse.com/?search=queueMicrotask

Instead of patching around immediate, it makes more sense to me switching to queueMicrotask.

@garethbowen
Copy link
Contributor

Fixed in a different way in #8849

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants