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

Log a deprecation warning when when Ember Data is loaded with Ember 1.13 #3841

Merged
merged 1 commit into from
Dec 4, 2015

Conversation

bmac
Copy link
Member

@bmac bmac commented Oct 12, 2015

No description provided.

Ember.deprecate(`Use of Ember Data 2+ with Ember 1.13 is deprecated. Please upgrade your version of Ember to 2.0 or higher.`, false, {
id: 'ds.version.ember-1-13',
until: '3.0.0'
});
}

if (Ember.VERSION.match(/^1\.12\.0/)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this could be removed since we're erroring out < 1.13 anyway?

Copy link
Member Author

Choose a reason for hiding this comment

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

good call

@bmac bmac force-pushed the deprecate-ember-1-13 branch from ddb7de3 to 86501a0 Compare October 12, 2015 14:20
if (Ember.VERSION.match(/^1\.13\./)) {
Ember.deprecate(`Use of Ember Data 2+ with Ember 1.13 is deprecated. Please upgrade your version of Ember to 2.0 or higher.`, false, {
id: 'ds.version.ember-1-13',
until: '3.0.0'
Copy link
Member

Choose a reason for hiding this comment

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

I think this means we are telling people that we are supporting 1.13 ember until ember data 3.0. I don't know how achievable this goal really is.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing this out @fivetanley. I'm not sure what to put for this value. Any thoughts @igorT? @wycats?

Copy link
Member Author

Choose a reason for hiding this comment

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

We chatted about this in the weekly meeting and decided we should add a warning for now and will likely choose the first LTS release as the version where we drop 1.13 support for good.

@bmac bmac removed the team-review label Oct 28, 2015
@bmac bmac force-pushed the deprecate-ember-1-13 branch 2 times, most recently from 281d97b to 14a2a8a Compare December 3, 2015 17:00
@bmac bmac force-pushed the deprecate-ember-1-13 branch from 14a2a8a to 8635f50 Compare December 4, 2015 16:24
bmac added a commit that referenced this pull request Dec 4, 2015
Log a deprecation warning when when Ember Data is loaded with Ember 1.13
@bmac bmac merged commit 9154cf9 into emberjs:master Dec 4, 2015
@bmac bmac deleted the deprecate-ember-1-13 branch December 4, 2015 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants