Skip to content

Releases: Ninja-Squad/ngx-valdemort

v12.0.0

26 May 20:07
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • ngx-valdemort is now based on Angular 18.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-valdemort.

Features

  • make the component OnPush (630a53c)
  • upgrade to Angular and CLI 18 (4667e53)

v11.0.0

15 Nov 12:14
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • ngx-valdemort is now based on Angular 17.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-valdemort.

Features

  • demo: use SSR and SSG for demo (8581814)
  • upgrade to Angular and CLI 17 (da9a01d)

v10.0.1

05 May 09:20
Compare
Choose a tag to compare

Bug Fixes

  • fix dependency version in published package.json (8c50d05)

v10.0.0

05 May 09:09
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • ngx-valdemort is now based on Angular 16.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-valdemort.

Features

  • make valError input required (12d5c74)
  • upgrade to Angular 16 (02d8d46)

v9.0.0

18 Nov 12:16
Compare
Choose a tag to compare

All components and directives are now standalone. The ValdemortModule is still usable as it was before,
but you can also import the directives directly, from your standalone components or from your modules.

We have also updated our documentation about the integration of ngx-valdemort in Angular Material
applications, because a tiny CSS adjustment is now necessary for error messages to look good with material.

⚠ BREAKING CHANGES

  • ngx-valdemort is now based on Angular 15.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-valdemort.

Features

  • make all components and directives standalone (b4f7312)
  • upgrade to angular 15 (5bad8ad)

v8.1.0

08 Oct 13:35
Compare
Choose a tag to compare
  • improve typing of the structural directives (34ddd5b)

v8.0.0

03 Jun 12:24
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • ngx-valdemort is now based on Angular 14.x. If you want to use it with an older version of Angular, then stick to the previous version of ngx-valdemort.

v7.0.0

04 Nov 09:10
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • ngx-valdemort is now based on Angular 13.x. It also needs RxJS v7.4+. If you want to use it with an older version of Angular, then stick to the previous version of ngx-valdemort.

Bug Fixes

  • angular config invalid tsconfig reference (0921257)

  • remove debug expression from demo (0502df0)

  • migrate to ng and cli v13 (2fa7cb0)

v6.0.0

13 May 08:09
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • ngx-valdemort now targets Angular 12.0.0 and Ivy only. If you want to use it with Angular 11.x or View Engine, stick to the previous version of ngx-valdemort. Partial Ivy compilation is now enabled, allowing ngcc to skip this package and you to have faster builds! 🚀

Features

  • enable Ivy partial compilation (5166464)

v5.1.0

09 Apr 10:24
Compare
Choose a tag to compare

Features

  • add a validation fallback directive (d16d844), closes #264

The template of the valFallback directive is used for all the errors that exist on the form control but are not handled by any of the specific error templates:

<val-default-errors>
  <ng-template valError="required" let-label>{{ label }} is mandatory</ng-template>
  <ng-template valError="max" let-error="error" let-label>{{ label }} must be at most {{ error.max | number }}</ng-template>
  <ng-template valFallback let-label let-type="type" let-error="error">{{ label }} has an unhandled error of type {{ type }}: {{ error | json }}</ng-template>
</val-default-errors>
  • allow throwing on missing control (c2b739b)

This adds a configuration option called shouldThrowOnMissingControl that checks if the control is not found, if set to a function that returns true.
It is set to a function that returns false by default, so this is not breaking change.

This allows to catch situations where the controlName has been wrongly specified:

<input id="firstName" name="firstName" [(ngModel)]="user.firstName" #firstNameCtrl="ngModel" required/>
<!-- the control name mentions lastName whereas the control is firstName -->
<val-errors controlName="lastName" id="firstNameErrors">

In that case, if the new option is enabled, valdemort will throw:

ngx-valdemort: no control found for controlName: 'lastName'.

As the option accepts a function, it can easily be enabled in dev and tests, but disabled in production:

config.shouldThrowOnMissingControl = () => !environment.production;