emberjs / ember-test-waiters

An Ember addon to allow @ember/test-helpers to manage asynchronous operations
MIT License
29 stars 15 forks source link

Drop support for the 'global' global. Every supported environment has `globalThis` #475

Closed NullVoxPopuli closed 4 months ago

NullVoxPopuli commented 4 months ago

tl;dr: I didn't want to figure out how to type global as a global, and since only node has global... we don't need to care about its existence (since any js runtime that has global also has globalThis -- which we do support)

for node / fastboot, globalThis was introduced in Node 12, which we already don't support as it's far beyond LTS support period. Prior to Node 12, this library will no longer work in fastboot mode (so you'd have to use v3.x of test-waiters).