Skip to content

Latest commit

 

History

History
453 lines (285 loc) · 24.6 KB

CHANGELOG.md

File metadata and controls

453 lines (285 loc) · 24.6 KB

Changelog

Release (2024-02-26)

ember-cp-validations 6.0.1 (patch)

🐛 Bug Fix

  • ember-cp-validations

🏠 Internal

Committers: 2

v6.0.0 (2023-11-09)

💥 Breaking Change

  • #731 Update ember-cli to v4.4 and drop support for node v12 (@fsmanuel)

🚀 Enhancement

  • #741 Replace require with @embroider/macros fixing embroider support (@achambers)

📝 Documentation

🏠 Internal

Committers: 3

v5.0.0 (2022-10-27)

💥 Breaking Change

  • #717 Ember 4.0 compatibility - drops support for Ember < 3.28 (@fsmanuel)

Committers: 1

v4.0.0 (2022-09-21)

🏠 Internal

Committers: 1

v4.0.0-beta.13

  • [Major]: Remove Moment and Node 10;
    • Remove Node 10 minimum requirement in favor of Node 12
    • removed custom String 'now' argument.
    • remove momentjs
    • Remove precision argument. If you need to compare based on precision, you can use the Intl.DateTimeFormat APIs to hone in on the comparison - { year: 'numeric' }
    • Added locale option. Defaults to en-us when creating date times using Intl.DateTimeFormat API.

v4.0.0-beta.12

  • #688 Bump node version and ember-validators from ^2.0.0 to ^3.0.1 @gilest

v4.0.0-beta.11

v4.0.0-beta.10

v4.0.0-beta.9

v4.0.0-beta.8

  • #633 Do not override _result @mydea
  • #634 fix: use weakmap instead of mutating object validation mixin is applied to @jasonmit

v4.0.0-beta.7

  • #630 fix: Enable parallel babel builds

v4.0.0-beta.6

  • 283fc05 fix: Remove NAME_KEY usage

v4.0.0-beta.5

  • #619 chore: Upgrade to 3.6
  • #619 Update hasValidations decorator to stage 2

v4.0.0-beta.4

  • #618 chore: Bump ember-validators

v4.0.0-beta.3

  • 75bd547 chore: Bump ember-validators

v4.0.0-beta.2

  • #600 fix: v-get helper with named argument

v4.0.0-beta.1

  • #579 Update validator test blueprints to latest APIs
  • #580 Remove isDirty
  • #583 export hasValidations decorator for es6 style models @danielspaniel
  • #586 update to 3.1 and fix ObjectProxy extends validations bug @danielspaniel
  • #590 Update ember-require-module to v0.3.0
  • #593 Upgrade ember-validators to 1.2.0

v4.0.0-beta.0

  • #564 Update all the things
  • #566 Validator Composability
  • #568 Partial memory leak fixes
  • #569 Inline Validator
  • #576 Ember 3.0 + Updated Tests

v3.5.2

  • Fix ember-validators and ember-require-module versions

v3.5.1

v3.5.0

  • #538 [BUGFIX] Rework Warning Logic

Upgrade Notes

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.

v3.4.1

v3.4.0

  • #523 Upgrade All the Dependencies!

v3.3.2

  • #505 [BUGFIX] Ember Data 2.13 Nested Key Destroy

v3.3.1

  • #494 [BUGFIX] Async relational validations resolve with fake positive

v3.3.0

  • #477 [FEATURE] Upgrade Ember Validators
    • Confirmation
      • allowBlank
    • Format
      • inverse
    • Length
      • useBetweenMessage (If min and max are set, use the between error message type
    • Number
      • allowNone (defaulted to true)
      • multipleOf

v3.2.4

v3.2.3

  • #443 [BUGFIX] Change factoryFor to use factoryFor().create() @jasonmit

v3.2.2

  • #442 [BUGFIX] Replace private and deprecated _lookupFactory with public & performant factoryFor @cibernox

v3.2.1

  • #441 [FEATURE] Updated blueprints to account for new mocha syntax @Patsy-issa

v3.2.0

  • #436 [BUGFIX] Performance Improvements
  • #438 Upgrade ember-validators

Ember-Validators

  • #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

v3.1.5

  • #434 [BUGFIX] Debounce context not properly set

v3.1.4

  • #414 Dependency upgrades

v3.1.3

v3.1.2

  • #389 [BUGFIX] Resolve _type conflicts with EmberValidator classes

v3.1.1

  • #383 [BUGFIX] Use ember-require-module

v3.1.0

  • #363 Use ember-validators
  • #364 [FEATURE] Volatile option

v3.0.1

  • #344 [BUGFIX] DEPRECATION: Ember.Handlebars.SafeString @kepek

v3.0.0

  • #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

v3.0.0-beta.7

  • #330 [FEATURE] Add option allowNonTld for email format validator @indr
  • #333 [BUGFIX] Define CPs and nested CPs in attrs object once per class

v3.0.0-beta.6

  • #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

v3.0.0-beta.5

  • #294 [BUGFIX] Validate promise resolves even when validations are still validating

v3.0.0-beta.4

  • #266 Check for null in extractOptionsDependentKeys @xcambar
  • #272 Fix ember-cli deprecation warning

v3.0.0-beta.3

  • #262 Use model instead of _model when declaring custom dependents

v3.0.0-beta.2

  • #252 Fix require module

v3.0.0-beta.1

  • #241 Fix blueprint warning
  • #245 Utilize __root__ in validator blueprint
  • #249 Fixed email regex of format validator @simonihmig

v3.0.0-beta.0

  • #226 Warning Validators
  • #232 Computed Options (special thanks to @xcambar)
  • #239 Use Require for Checking Ember Data
  • #240 DS Error Validator + Nested Keys

v2.9.3

  • #211 Fix regression from last patch by exposing allowNone which defaults to true in length validator

v2.9.2

  • #208 Null or undefined value in length should return invalid not blank

v2.9.1

  • #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

v2.9.0

  • #177 Expose dependent keys API to validators

Upgrade Notes

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']
});

v2.8.0

  • #161 Alias validator
  • #168 Add onOrBefore, onOrAfter, and precision 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 and attribute
  • #173 Add ignoreBlank option to presence validator @krasnoukhov

v2.7.2

  • #163 Fix leaky state with nested objects
  • #167 Add null safe checks for relational validators after promise resolves

v2.7.1

  • #159 Fix deprecation warning Ember.merge > Ember.assign for Ember >= 2.5.0 @urbany

v2.7.0

v2.6.1

v2.6.0

  • #132 Add support for nested keys in validation rules.
  • #132 Create validations object once per class instead of every instance

v2.5.0

  • #122 Blueprints/validator-test: Fix typo in _filesPath() method @Turbo87
  • #127 DS Error validator. See docs here

v2.4.1

  • #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

v2.4.0

  • #112 Support validations via inheritance
  • #116 Support relational validators (has-many and belongs-to) in plain Ember Objects
  • #117 Move caches out of the prototype and into the instance

v2.3.0

  • #106 Ability to enable/disable validations. See documentation here

v2.2.1

  • #103 Fixed debounced validation issue

v2.2.0

  • #92 Debounced Validation
  • #96 Expose options property for attribute validations which contains a hash of built options grouped by validator type

v2.1.2

  • #78 Migrate to owners over container for Ember >= 2.3.0-beta.1 support

v2.1.1

  • #64 Allow blank in number validator
  • #65 Handle ember-data promise proxy based instances in presence

v2.1.0

  • #59 Add enumerable list of all error objects
  • #62 Number validator

v2.0.1

  • #53 Support v-get inside element note attribute strings

v2.0.0

  • Renamed attributeDescription to description
  • 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

Upgrade Notes

Please checkout the upgrading documentation for more details.

v1.1.0

  • v-get helper

Upgrade Notes

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.

v1.0.2

  • 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

v1.0.1

  • BREAKING CHANGE - confirmation rework - issue
  • isInvalid helper - issue
  • fixed lodash error - issue

v1.0.0

  • Initial Release