Releases: CrowdStrike/ember-browser-services
[email protected]
Patch Changes
-
#425
71e831a
Thanks @MrChocolatine! - Unregister services before they are registered insetupBrowserFakes()
Fixes #413
[email protected]
Major Changes
-
#397
606e0f8fe4e6ef3ff527cb432c65af2fb9d631d4
Thanks @simonihmig! - Drop support for Ember < 4.8 -
#399
562c673596fdcad78a4f7f5b89877b2ff3a18073
Thanks @simonihmig! - Update ember-window-mock, drop unneeded glue codeThere is a potentially breaking change, as you cannot mock
window.location.origin
directly anymore. But this should not restrict you, as you can setwindow.location.href
, andorigin
will be correctly reflected. Havingorigin
not be aligned withhref
can never happen in reality, sinceorigin
is a read-only property, so having these diverge in tests is not really useful.
[email protected]
Patch Changes
-
#364
0be2928
Thanks @NullVoxPopuli! - Include the LICENSE.md in the npm package -
#364
398d517
Thanks @NullVoxPopuli! - Address an issue where the types of each of the browser services did not have sufficient overlap withService
.This is required for folks using more modern TypeScript in ember apps,
where the service-name argument is passed to the@service
decorator.Previously, an error would occur:
../ember-browser-services/dist/services/browser/document.d.ts:4:9 - error TS2411: Property ''browser/document'' of type 'typeof Service & Document' is not assignable to 'string' index type 'Service'. 4 'browser/document': typeof DocumentProxyService; ~~~~~~~~~~~~~~~~~~
The expected type of Services in the Service Registry is
Service
, nottypeof Service
.