Skip to content

Release v3.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Aug 07:53
· 136 commits to master since this release
de709d6

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 } in config/environment.js, as long as { embedded: delegateStart: true } is set in config/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

screenshots of updated docs:

Screenshot 2023-06-19 at 12 16 05 Screenshot 2023-06-19 at 12 16 22