Skip to content

Commit

Permalink
upgrade ember-changeset to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jelhan committed Mar 16, 2020
1 parent df99479 commit f8e7ecc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
3 changes: 1 addition & 2 deletions addon/components/bs-form/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import { A } from '@ember/array';
import BsFormElement from 'ember-bootstrap/components/bs-form/element';

export default BsFormElement.extend({

hasValidator: notEmpty('model.validate'),

setupValidations() {
let key = `model.error.${this.get('property')}.validation`;
defineProperty(this, 'errors', computed(`${key}[]`, function() {
defineProperty(this, 'errors', computed(`model._errors`, function() {
return A(this.get(key));
}));
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test:all": "ember try:each"
},
"dependencies": {
"ember-changeset-validations": "^2.1.0",
"ember-changeset-validations": "^3.0.0",
"ember-cli-babel": "^7.17.2",
"ember-cli-htmlbars": "^4.2.2"
},
Expand Down
44 changes: 22 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4938,7 +4938,7 @@ ember-assign-polyfill@^2.6.0:
ember-cli-babel "^6.16.0"
ember-cli-version-checker "^2.0.0"

ember-auto-import@^1.4.1, ember-auto-import@^1.5.3:
ember-auto-import@^1.4.1, ember-auto-import@^1.5.2, ember-auto-import@^1.5.3:
version "1.5.3"
resolved "https://registry.yarnpkg.com/ember-auto-import/-/ember-auto-import-1.5.3.tgz#b32936f874d1ed7057ad2ed3f6116357820be44b"
integrity sha512-7JfdunM1BmLy/lyUXu7uEoi0Gi4+dxkGM23FgIEyW5g7z4MidhP53Fc61t49oPSnq7+J4lLpbH1f6C+mDMgb4A==
Expand Down Expand Up @@ -5002,24 +5002,26 @@ ember-bootstrap@^3.1.1:
rsvp "^4.0.1"
silent-error "^1.0.1"

ember-changeset-validations@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/ember-changeset-validations/-/ember-changeset-validations-2.2.1.tgz#71b969fd5a75d436a3d06d160a2b31f8a67d778a"
integrity sha512-4pQdHqF1fksJ5/+N3BUU14xPF7DfFvHSJpLZp69t6f+a0t3WRKrEiW1aAyFnuoVzZppi1rvBdR+8LxHUIPTqKw==
ember-changeset-validations@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/ember-changeset-validations/-/ember-changeset-validations-3.0.1.tgz#cd04e5b93b592b75c0864bad4bb6991023ac6824"
integrity sha512-xLK9EjD/YTUTzs+In7Ax1T71faQDgs/mjXLWf8qKTXIHgooEwRVaYRN2ikFJPlA0SVWEAkSDxKjMPGlhtCKijg==
dependencies:
ember-changeset "2.2.4"
ember-cli-babel "^7.1.2"
ember-cli-htmlbars "^3.0.0"
ember-changeset "^3.0.0"
ember-cli-babel "^7.13.0"
ember-cli-htmlbars "^4.0.5"
ember-get-config "^0.2.4"
ember-validators "^2.0.0"

ember-changeset@2.2.4:
version "2.2.4"
resolved "https://registry.yarnpkg.com/ember-changeset/-/ember-changeset-2.2.4.tgz#2bf8c67815a57ee2e7ff76e6b58fc63bd3bdf1b9"
integrity sha512-JRcX/o8TpDhCkMwxcFxFepZ1nMJHFVwvEGXkZCdO1YZCzDkdkFCieaDQD+5S+B8kTRCLiiXPeClhG8XQOzcEkg==
ember-changeset@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/ember-changeset/-/ember-changeset-3.0.4.tgz#7e062b509e272b5501e03f2c2913c22e586b257c"
integrity sha512-ml2QkFw8w9c1hFWTXL2GF+DeLK294LKkD4gthm4O91gIb4fhjnp8fZ7lEm+b0vTH+tIWCXs/Jn2gWJpEvrPhXw==
dependencies:
ember-cli-babel "^7.1.2"
ember-deep-set "^0.2.0"
"@glimmer/tracking" "^1.0.0"
ember-auto-import "^1.5.2"
ember-cli-babel "^7.13.2"
validated-changeset "~0.1.3"

ember-cli-babel-plugin-helpers@^1.0.0, ember-cli-babel-plugin-helpers@^1.1.0:
version "1.1.0"
Expand All @@ -5045,7 +5047,7 @@ ember-cli-babel@^6.0.0-beta.4, ember-cli-babel@^6.16.0, ember-cli-babel@^6.17.0,
ember-cli-version-checker "^2.1.2"
semver "^5.5.0"

ember-cli-babel@^7.1.0, ember-cli-babel@^7.1.3, ember-cli-babel@^7.10.0, ember-cli-babel@^7.11.0, ember-cli-babel@^7.11.1, ember-cli-babel@^7.12.0, ember-cli-babel@^7.13.2, ember-cli-babel@^7.17.2, ember-cli-babel@^7.7.3:
ember-cli-babel@^7.1.0, ember-cli-babel@^7.1.3, ember-cli-babel@^7.10.0, ember-cli-babel@^7.11.0, ember-cli-babel@^7.11.1, ember-cli-babel@^7.12.0, ember-cli-babel@^7.13.0, ember-cli-babel@^7.13.2, ember-cli-babel@^7.17.2, ember-cli-babel@^7.7.3:
version "7.17.2"
resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-7.17.2.tgz#2c7717c6864425be3cd11913c722115fbf1448d2"
integrity sha512-64jRwtRVtEp4ghhew/sHeMsPyUOg3t1TB2dary5mCbKkRasb3L7FwF7xnuzPihaz+AW/v2LqYLALXGCml5XNLA==
Expand Down Expand Up @@ -5472,13 +5474,6 @@ ember-decorators@^6.1.0:
"@ember-decorators/object" "^6.1.1"
ember-cli-babel "^7.7.3"

ember-deep-set@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/ember-deep-set/-/ember-deep-set-0.2.0.tgz#93428b599f884c3da0550cbcc062b9ec5969a71e"
integrity sha512-3vg9Cw4CIInXzufZMQmScClg23mUw+2ybO53L51spFYP/eGaVmGduWmhrVljyl4lHKN7hW/jvG/YVWtwTPSTKA==
dependencies:
ember-cli-babel "^7.1.2"

ember-disable-prototype-extensions@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/ember-disable-prototype-extensions/-/ember-disable-prototype-extensions-1.1.3.tgz#1969135217654b5e278f9fe2d9d4e49b5720329e"
Expand Down Expand Up @@ -11945,6 +11940,11 @@ validate-npm-package-name@^3.0.0:
dependencies:
builtins "^1.0.3"

validated-changeset@~0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/validated-changeset/-/validated-changeset-0.1.3.tgz#4374fcc67cc3313e3b3a2a6f214928ee1e1395cc"
integrity sha512-oyeSida2RWV+73N7LNwesOh78ts9K4m60fbXkTCkVprR2QeO/QhmxVYI0GXCdUla/EUig/T0dkX7vTXzaM/vZA==

vary@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
Expand Down

0 comments on commit f8e7ecc

Please sign in to comment.