Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with Ember 3.24+ #742

Merged
merged 4 commits into from
Jan 14, 2021
Merged

Fix compatibility with Ember 3.24+ #742

merged 4 commits into from
Jan 14, 2021

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jan 14, 2021

  • Ensure _externalRoutes is defined on EngineInstance instances.
  • Fix issues with LinkTo and LinkToExternal on Ember 3.24.0.
  • Enable 3.24 on CI.

Related:

Closes #740

@rwjblue rwjblue added the bug label Jan 14, 2021
@rwjblue rwjblue requested a review from dgeb January 14, 2021 00:54
Prior to Ember 3.24 within a `setupRenderingTest` a link-to-external we
short curcuit well before attempting to invoke `_getExternalRoute`
(because no router was present, so it did nothing). As of Ember 3.24+
the router is setup and available on demand (including in these types of
rendering tests).

This moves the initial definition of `engineOwner._externalRoutes` to
`init` of the engine instance instance (so that we know it is always
initialized) and updates a couple of tests to ensure that a proper
external route mapping is setup.
Also includes a work around for 3.24.0 (which should be fixed in Ember
3.24.1 once released).
As of Ember 3.26+, `LinkTo` will lazily boot the router when rendered.
This means that we now will receive assertions if we attempt to `<LinkTo
@route="foo" />` where `foo` route does not exist.
@rwjblue rwjblue merged commit 149d73e into master Jan 14, 2021
@rwjblue rwjblue deleted the fix-ember-3-24 branch January 14, 2021 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support change for Ember 3.24 LinkTo refactor
1 participant