-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
getting deprecation message #324
Comments
The deprecation your getting is related to 'ember-data', not 'ember-cp-validations'. Anyway, it's quite simple to fix. Just remove the DS import and import the modules directly. import Model from 'ember-data/model';
import attr from 'ember-data/attr'; Reference: https://guides.emberjs.com/v2.6.0/models/defining-models/ |
I'm using Ember version 2.7.0 ! Reference : https://guides.emberjs.com/v2.7.0/models/defining-models/ |
Yep! I've seen that too. |
It's actually being fixed emberjs/guides#1597. |
Even the below code throws the same DEPRECATION message !
Removing |
This deprecation happens when using It looks like ember-cp-validations is always grabbing |
Looks like this was fixed in #239 actually. |
But getting the DEPRECATION message. What should be changed in my side ? |
It seems that the fix made it to master (released on version v3.0.0-beta.5), but not the v2.x branch, as seen here https://github.com/offirgolan/ember-cp-validations/blob/v2.x/addon/utils/utils.js, so v2.9.4 still has the issue. |
After updating the addon
my addons version for htmlbars are listed below
|
A patch release has been published to take care of this for 2.x users.
This issue has been resolved and is currently in master. I will issue a new beta release in a few days once I get 2 other PRs merged. |
DEPRECATION: Using the global version of DS is deprecated. Please either import the specific modules needed or
import DS from 'ember-data';
. [deprecation id: ember-data.global-ds]my model:
The text was updated successfully, but these errors were encountered: