- #540 adding
isTruelyInvalid
property @artemgurzhii - #550 Update
ember-validators
to v1.0.4 @Turbo87
- #538 [BUGFIX] Rework Warning Logic
The isWarning
flag on the validations object as well as the individual attribute validations object has been removed since
it didn't really make any sense and replace with a hasWarnings
flag.
- #530 bumped version on ember-string-ishtmlsafe-polyfill dependency @stopfstedt
- #532 remove bower usage @Dhaulagiri
- #523 Upgrade All the Dependencies!
- #505 [BUGFIX] Ember Data 2.13 Nested Key Destroy
- #494 [BUGFIX] Async relational validations resolve with fake positive
- #477 [FEATURE] Upgrade Ember Validators
- Confirmation
- allowBlank
- Format
- inverse
- Length
- useBetweenMessage (If min and max are set, use the
between
error message type
- useBetweenMessage (If min and max are set, use the
- Number
- allowNone (defaulted to true)
- multipleOf
- Confirmation
- #442 [BUGFIX] Replace private and deprecated
_lookupFactory
with public & performantfactoryFor
@cibernox
- #441 [FEATURE] Updated blueprints to account for new mocha syntax @Patsy-issa
- #39 [FEATURE] allowNonTld & minTldLength in format validator by Offir Golan
- #41 [BUGFIX] Use String.match instead of RegExp.test to support g flag by Offir Golan
- #434 [BUGFIX] Debounce context not properly set
- #414 Dependency upgrades
- #389 [BUGFIX] Resolve _type conflicts with EmberValidator classes
- #383 [BUGFIX] Use ember-require-module
- #226 Warning Validators
- #232 Computed Options (special thanks to @xcambar)
- #239 Use Require for Checking Ember Data
- #240 DS Error Validator + Nested Keys
- #241 Fix blueprint warning
- #245 Utilize __root__ in validator blueprint
- #249 Fixed email regex of format validator @simonihmig
- #252 Fix require module
- #262 Use
model
instead of_model
when declaring custom dependents - #266 Check for null in extractOptionsDependentKeys @xcambar
- #272 Fix ember-cli deprecation warning
- #294 [BUGFIX] Validate promise resolves even when validations are still validating
- #305 [BUGFIX] Provide
baseDir
to allow for proper caching - #311 [FEATURE] Place mixin under a named scope for Ember Inspector
- #312 [BUGFIX] Deleted DS.Model records should be suppressed
- #321 [FEATURE] Lazily run validations
- #330 [FEATURE] Add option
allowNonTld
for email format validator @indr - #333 [BUGFIX] Define CPs and nested CPs in attrs object once per class
- #338 [FEATURE] Add validator type to error messages @kepek
- #339 [BUGFIX] Allow for requirejs.has to not be available @jasonmit
- #330 [FEATURE] Add option
allowNonTld
for email format validator @indr - #333 [BUGFIX] Define CPs and nested CPs in attrs object once per class
- #305 [BUGFIX] Provide
baseDir
to allow for proper caching - #311 [FEATURE] Place mixin under a named scope for Ember Inspector
- #312 [BUGFIX] Deleted DS.Model records should be suppressed
- #321 [FEATURE] Lazily run validations
- #294 [BUGFIX] Validate promise resolves even when validations are still validating
- #262 Use
model
instead of_model
when declaring custom dependents
- #252 Fix require module
- #241 Fix blueprint warning
- #245 Utilize __root__ in validator blueprint
- #249 Fixed email regex of format validator @simonihmig
- #226 Warning Validators
- #232 Computed Options (special thanks to @xcambar)
- #239 Use Require for Checking Ember Data
- #240 DS Error Validator + Nested Keys
- #211 Fix regression from last patch by exposing
allowNone
which defaults to true in length validator
- #208 Null or undefined value in length should return invalid not blank
- #203 Ember.String.htmlSafe throws exception
- #207 Minor bug fixes
- Null or undefined value in
length
validator should be invalid - Added
parentAttribute
to error object to better understand where an error is coming from - Added
.[]
to has-many dependent keys - Extend all dependents from Base
- Null or undefined value in
- #177 Expose dependent keys API to validators
Since the CPs now require container/owner access to get all the dependent keys, you will need to add all validators that your unit tests depend on to the needs
array in your test module declaration.
moduleForModel('user', {
needs: ['validator:presence', 'validator:length']
});
- #161 Alias validator
- #168 Add
onOrBefore
,onOrAfter
, andprecision
options to date validator @aaronbhansen - #170 Only call super on validations class if it exists via shouldCallSuper
- #171 Value option
- #171 All Options as Functions methods are now provided with
model
andattribute
- #173 Add
ignoreBlank
option to presence validator @krasnoukhov
- #163 Fix leaky state with nested objects
- #167 Add null safe checks for relational validators after promise resolves
- #146 Global options
- #152 Export validators from addon namespace @luxferresum
- #140 Fixed moment date parsing deprecations @danielspaniel
- #132 Add support for nested keys in validation rules.
- #132 Create validations object once per class instead of every instance
- #122 Blueprints/validator-test: Fix typo in
_filesPath()
method @Turbo87 - #127 DS Error validator. See docs here
- #119 Fix for
Dependent keys containing @each only work one level deep
warnings in Ember Canary - 2.5 - #124 Validate
on
runs validation on all attributes @kat3kasper
- #112 Support validations via inheritance
- #116 Support relational validators (
has-many
andbelongs-to
) in plain Ember Objects - #117 Move caches out of the prototype and into the instance
- #103 Fixed debounced validation issue
- #92 Debounced Validation
- #96 Expose
options
property for attribute validations which contains a hash of built options grouped by validator type
- #78 Migrate to owners over container for Ember >= 2.3.0-beta.1 support
- #53 Support v-get inside element note attribute strings
- Renamed
attributeDescription
todescription
- I18n support (currently Ember-Intl & Ember-I18n)
- Added hooks in both Message base and validator base
- Validation options can also be function that are called before validate
- #27 Declare custom dependent keys in validators (both custom and predefined)
- #30 MomentJS is now only required if you want to use the date validator and is no longer a forced dependency
- #33 Removed Ember.String.fmt dependency
- #38 Default options in validation declarations
Please checkout the upgrading documentation for more details.
v-get
helper
When upgrading, you will need to run ember install ember-cp-validations
again or run the generator ember g ember-cp-validations
after upping the version in package.json
.
- Fixed an issue where if a result was undefined or null, it would update the validation result to false but would continue to go down the chain on get
- Initial Release