Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 01 Feb 20:16
· 80 commits to main since this release
014fa42

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 with Service.

    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, not typeof Service.