Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change class-validator peer dependency to include version ^0.14.0 that fixes a critical security issue #41

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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