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

Add deprecation for Route#disconnectOutlet #19407

Merged

Conversation

patocallaghan
Copy link
Contributor

Adds deprecation for Route#disconnectOutlet. See RFC 491 for more info.

I was initially going to ship the disconnectOutlet, render and renderTemplate deprecations together in #19388 but the amount of tests which break and require a expectDeprecation is a bit overwhelming and taking longer than expected 😅 I've decided to break this one out instead.

id: 'route-disconnect-outlet',
until: '4.0.0',
url: 'https://deprecations.emberjs.com/v3.x/#toc_route-disconnect-outlet',
for: 'ember-source',
since: {
  enabled: '3.27.0',
},

Copy link
Contributor

@pzuraq pzuraq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, I think we should handle the types for expectDeprecation a bit differently, but other than that this is great!

@@ -4,6 +4,8 @@ import {
moduleFor,
strip,
} from 'internal-test-helpers';
import { ExpectDeprecationFunc } from '../../../../../../internal-test-helpers/lib/ember-dev/deprecation';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should likely be added to the above imports from internal-test-helpers, and the ExpectDeprecationFunc type/interface should be exported from that package

@patocallaghan patocallaghan force-pushed the patoc/disconnect-outlet-deprecation branch from f9da995 to a7f16ce Compare February 15, 2021 21:47
@patocallaghan patocallaghan force-pushed the patoc/disconnect-outlet-deprecation branch 2 times, most recently from 96a8a34 to a34856e Compare February 23, 2021 21:58
@patocallaghan patocallaghan force-pushed the patoc/disconnect-outlet-deprecation branch from a34856e to 33979b8 Compare February 24, 2021 15:25
@patocallaghan
Copy link
Contributor Author

@rwjblue I've resolved the conflict 🙇‍♂️

@rwjblue rwjblue merged commit 0f8b0a8 into emberjs:master Feb 24, 2021
@rwjblue
Copy link
Member

rwjblue commented Feb 24, 2021

Thank you @patocallaghan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants