Skip to content

Commit

Permalink
Change class-validator peer dependency to include version ^0.14.0 tha…
Browse files Browse the repository at this point in the history
…t fixes a critical security issue
  • Loading branch information
abarghoud committed Jun 24, 2024
1 parent 658413e commit 3d7bdce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ A lightweight library for dynamically validate Angular reactive forms using [cla
"@angular/common": ">= 2.0.0 <= ^18.0.0",
"@angular/core": ">= 2.0.0 <= ^18.0.0",
"@angular/forms": ">= 2.0.0 <= ^18.0.0",
"class-validator": "^0.12.2"
"class-validator": ">= 0.12.0 <= ^0.14.0"

###### _While this library will function with any version of class-validator within this range, we strongly recommend using class-validator ^0.14.0 or later due to a critical [security vulnerability](https://github.com/typestack/class-validator/blob/develop/CHANGELOG.md#:~:text=forbidUnknownValues%20option%20is%20enabled%20by%20default) addressed in versions 0.14.0 and beyond. This ensures the highest level of security for your application._

## Usage
### Defining classes with validators and deserializers
Expand Down
4 changes: 2 additions & 2 deletions libs/ngx-reactive-form-class-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ngx-reactive-form-class-validator",
"description": "A lightweight library for dynamically validate Angular reactive forms using class-validator library.",
"license": "MIT",
"version": "1.8.1",
"version": "1.8.2",
"keywords": [
"ng",
"angular",
Expand All @@ -27,6 +27,6 @@
"@angular/common": ">= 2.0.0 <= ^18.0.0",
"@angular/core": ">= 2.0.0 <= ^18.0.0",
"@angular/forms": ">= 2.0.0 <= ^18.0.0",
"class-validator": "^0.12.2"
"class-validator": ">= 0.12.0 <= ^0.14.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"bump-version:patch": "cd libs/ngx-reactive-form-class-validator && npm version patch --force",
"pre-publish:minor": "run-s bump-version:minor build:lib-pack",
"pre-publish:major": "run-s bump-version:major build:lib-pack",
"pre-publish:patch": "run-s bump-version:patch build:lib-pack commit-git"
"pre-publish:patch": "run-s bump-version:patch build:lib-pack"
},
"private": true,
"dependencies": {
Expand Down

0 comments on commit 3d7bdce

Please # to comment.