Release v3.1.0
Chore
Dependabot updates
Features
Incorporates ember-export-application-global
initializer (#273)
- removes
ember-export-application-global
dependency - creates
export-application-global
initializer - adds
@ember/string
dependency (used by the above initializer) as it's no longer available in Ember 5 internally - adds relevant tests
- updates documentation
Features
ember-cli/ember-export-application-global
has been deprecated and archived. But an exported application global is essential to an embedded SPA and therefore to ember-cli-embedded as well. So rather than adding a deprecated/archived module as a dependency to this addon, or to an app using this addon, this commit now hardcodes the export-application-global
initializer into the ember-cli-embedded module itself, therefore removing the need for an external dependency
Behaviour
- An application global will be exported and attached to the
window
, without the need to set{ exportApplicationGlobal: true }
inconfig/environment.js
, as long as{ embedded: delegateStart: true }
is set inconfig/environment.js
- To avoid breaking changes with existing
config/environment.js
files,{ exportApplicationGlobal: false }
will still work, even though there is no need for it