Skip to content

Commit 14b0960

Browse files
authored
Merge pull request #45 from abarghoud/angular-19-support
Angular 19 support
2 parents 846cda4 + fdff511 commit 14b0960

File tree

9 files changed

+4730
-3288
lines changed

9 files changed

+4730
-3288
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ testem.log
4040
Thumbs.db
4141

4242
.nx/cache
43+
.nx/workspace-data
4344
.angular

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55

66
/.nx/cache
77
.angular
8+
9+
/.nx/workspace-data

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ A lightweight library for dynamically validate Angular reactive forms using [cla
4646

4747
yarn add ngx-reactive-form-class-validator
4848
### Peer dependencies
49-
"@angular/common": ">= 2.0.0 <= ^18.0.0",
50-
"@angular/core": ">= 2.0.0 <= ^18.0.0",
51-
"@angular/forms": ">= 2.0.0 <= ^18.0.0",
49+
"@angular/common": ">= 2.0.0 <= ^19.0.0",
50+
"@angular/core": ">= 2.0.0 <= ^19.0.0",
51+
"@angular/forms": ">= 2.0.0 <= ^19.0.0",
5252
"class-validator": ">= 0.12.0 <= ^0.14.0"
5353

5454
###### _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._

apps/test/src/app/app.component.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ class Profile {
4747
}
4848

4949
@Component({
50-
standalone: true,
51-
selector: 'app-root',
52-
templateUrl: './app.component.html',
53-
imports: [
54-
ReactiveFormsModule,
55-
JsonPipe,
56-
ClassValidatorFormBuilderModule,
57-
]
50+
selector: 'app-root',
51+
templateUrl: './app.component.html',
52+
imports: [
53+
ReactiveFormsModule,
54+
JsonPipe,
55+
ClassValidatorFormBuilderModule,
56+
]
5857
})
5958
export class AppComponent implements OnInit {
6059
public profileForm: ClassValidatorFormGroup;

libs/ngx-reactive-form-class-validator/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ngx-reactive-form-class-validator",
33
"description": "A lightweight library for dynamically validate Angular reactive forms using class-validator library.",
44
"license": "MIT",
5-
"version": "1.8.2",
5+
"version": "1.9.0",
66
"keywords": [
77
"ng",
88
"angular",
@@ -24,9 +24,9 @@
2424
},
2525
"homepage": "https://github.com/abarghoud/ngx-reactive-form-class-validator#readme",
2626
"peerDependencies": {
27-
"@angular/common": ">= 2.0.0 <= ^18.0.0",
28-
"@angular/core": ">= 2.0.0 <= ^18.0.0",
29-
"@angular/forms": ">= 2.0.0 <= ^18.0.0",
27+
"@angular/common": ">= 2.0.0 <= ^19.0.0",
28+
"@angular/core": ">= 2.0.0 <= ^19.0.0",
29+
"@angular/forms": ">= 2.0.0 <= ^19.0.0",
3030
"class-validator": ">= 0.12.0 <= ^0.14.0"
3131
}
3232
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
import 'jest-preset-angular/setup-jest';
1+
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
2+
3+
setupZoneTestEnv();

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@
6969
]
7070
},
7171
"parallel": 1,
72-
"defaultBase": "master"
72+
"defaultBase": "master",
73+
"useLegacyCache": true
7374
}

package.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -61,38 +61,38 @@
6161
},
6262
"private": true,
6363
"dependencies": {
64-
"@angular/animations": "18.0.1",
65-
"@angular/common": "18.0.1",
66-
"@angular/compiler": "18.0.1",
67-
"@angular/core": "18.0.1",
68-
"@angular/forms": "18.0.1",
69-
"@angular/platform-browser": "18.0.1",
70-
"@angular/platform-browser-dynamic": "18.0.1",
71-
"@angular/router": "18.0.1",
72-
"@nx/angular": "19.1.2",
64+
"@angular/animations": "19.1.5",
65+
"@angular/common": "19.1.5",
66+
"@angular/compiler": "19.1.5",
67+
"@angular/core": "19.1.5",
68+
"@angular/forms": "19.1.5",
69+
"@angular/platform-browser": "19.1.5",
70+
"@angular/platform-browser-dynamic": "19.1.5",
71+
"@angular/router": "19.1.5",
72+
"@nx/angular": "20.4.1",
7373
"class-validator": "^0.14.0",
7474
"cerialize": "^0.1.18",
7575
"rxjs": "7.8.1",
76-
"tslib": "^2.6.2",
77-
"zone.js": "0.14.4"
76+
"tslib": "^2.8.1",
77+
"zone.js": "0.15.0"
7878
},
7979
"devDependencies": {
80-
"@angular-devkit/build-angular": "18.0.2",
81-
"@angular-devkit/core": "18.0.2",
82-
"@angular-devkit/schematics": "18.0.2",
83-
"@angular/cli": "18.0.2",
84-
"@angular/compiler-cli": "18.0.1",
85-
"@angular/language-service": "18.0.1",
86-
"@nx/cypress": "19.1.2",
87-
"@nx/eslint-plugin": "19.1.2",
88-
"@nx/jest": "19.1.2",
89-
"@nx/js": "19.1.2",
90-
"@nx/workspace": "19.1.2",
91-
"@schematics/angular": "18.0.2",
92-
"@swc-node/register": "~1.8.0",
93-
"@swc/core": "~1.3.85",
94-
"@swc/helpers": "~0.5.2",
95-
"@types/jest": "29.4.4",
80+
"@angular-devkit/build-angular": "19.1.6",
81+
"@angular-devkit/core": "19.1.6",
82+
"@angular-devkit/schematics": "19.1.6",
83+
"@angular/cli": "~19.1.0",
84+
"@angular/compiler-cli": "19.1.5",
85+
"@angular/language-service": "19.1.5",
86+
"@nx/cypress": "20.4.1",
87+
"@nx/eslint-plugin": "20.4.1",
88+
"@nx/jest": "20.4.1",
89+
"@nx/js": "20.4.1",
90+
"@nx/workspace": "20.4.1",
91+
"@schematics/angular": "19.1.6",
92+
"@swc-node/register": "1.9.2",
93+
"@swc/core": "1.5.7",
94+
"@swc/helpers": "0.5.15",
95+
"@types/jest": "29.5.14",
9696
"@types/node": "18.16.9",
9797
"@typescript-eslint/eslint-plugin": "4.19.0",
9898
"@typescript-eslint/parser": "4.19.0",
@@ -102,18 +102,18 @@
102102
"eslint-config-prettier": "8.1.0",
103103
"eslint-plugin-cypress": "2.15.1",
104104
"jest": "29.7.0",
105-
"jest-environment-jsdom": "29.4.3",
106-
"jest-preset-angular": "14.1.0",
107-
"ng-packagr": "18.0.0",
105+
"jest-environment-jsdom": "29.7.0",
106+
"jest-preset-angular": "14.4.2",
107+
"ng-packagr": "19.1.2",
108108
"npm-run-all": "^4.1.5",
109-
"nx": "19.1.2",
110-
"postcss": "^8.3.9",
111-
"postcss-import": "14.1.0",
112-
"postcss-preset-env": "7.5.0",
109+
"nx": "20.4.1",
110+
"postcss": "^8.5.1",
111+
"postcss-import": "16.1.0",
112+
"postcss-preset-env": "10.1.3",
113113
"postcss-url": "10.1.3",
114-
"prettier": "2.7.1",
115-
"ts-jest": "29.1.0",
116-
"ts-node": "10.9.1",
117-
"typescript": "5.4.2"
114+
"prettier": "3.4.2",
115+
"ts-jest": "29.2.5",
116+
"ts-node": "10.9.2",
117+
"typescript": "5.7.3"
118118
}
119119
}

0 commit comments

Comments
 (0)