Skip to content

Commit 2784202

Browse files
Merge pull request #316 from erikmom/feat-angular-19
feat: Upgrades to Angular 19
2 parents c61cb64 + 12055b7 commit 2784202

25 files changed

+3041
-3849
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 20.14.x
19+
node-version: 22.12.x
2020
- name: Install dependencies
2121
run: yarn --frozen-lockfile --non-interactive --no-progress
2222
- name: Lint Demo
@@ -34,7 +34,7 @@ jobs:
3434
- name: Build Demo
3535
run: yarn run demo:build:prod --progress=false --base-href "https://cloudnc.github.io/ngx-sub-form/"
3636
- name: Cypress run
37-
uses: cypress-io/github-action@v5
37+
uses: cypress-io/github-action@v6
3838
with:
3939
browser: chrome
4040
start: yarn start-e2e-file-server

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.1
1+
v22.12.0

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ npm i ngx-sub-form
5353
| `16.x` | `9.0.0` |
5454
| `17.x` | `10.0.0` |
5555
| `18.x` | `11.0.0` |
56+
| `19.x` | `12.0.0` |
5657

5758
# API
5859

angular.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
},
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
20-
"outputPath": "dist/ngx-sub-form-demo",
20+
"outputPath": {
21+
"base": "dist/ngx-sub-form-demo"
22+
},
2123
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
24+
"polyfills": ["src/polyfills.ts"],
2425
"tsConfig": "src/tsconfig.app.json",
2526
"assets": ["src/favicon.ico", "src/assets"],
2627
"styles": ["src/styles.scss"],
2728
"scripts": [],
28-
"vendorChunk": true,
2929
"extractLicenses": false,
30-
"buildOptimizer": false,
3130
"sourceMap": true,
3231
"optimization": false,
33-
"namedChunks": true
32+
"namedChunks": true,
33+
"browser": "src/main.ts"
3434
},
3535
"configurations": {
3636
"production": {
@@ -45,8 +45,6 @@
4545
"sourceMap": false,
4646
"namedChunks": false,
4747
"extractLicenses": true,
48-
"vendorChunk": false,
49-
"buildOptimizer": true,
5048
"budgets": [
5149
{
5250
"type": "initial",

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
"readme:check": "yarn readme:build && ! git status | grep README.md || (echo 'You must commit build and commit changes to README.md!' && exit 1)",
3535
"lint": "ng lint",
3636
"------------------------ CI ------------------------": "",
37-
"start-e2e-file-server": "cp -r dist/ngx-sub-form-demo dist/ngx-sub-form-demo-e2e && sed -i 's/base href=\"https:\\/\\/cloudnc.github.io\\/ngx-sub-form\\/\"/base href=\"\\/\"/' dist/ngx-sub-form-demo-e2e/index.html && npx http-server --port 4765 ./dist/ngx-sub-form-demo-e2e"
37+
"start-e2e-file-server": "cp -r dist/ngx-sub-form-demo dist/ngx-sub-form-demo-e2e && sed -i 's/base href=\"https:\\/\\/cloudnc.github.io\\/ngx-sub-form\\/\"/base href=\"\\/\"/' dist/ngx-sub-form-demo-e2e/browser/index.html && npx http-server --port 4765 ./dist/ngx-sub-form-demo-e2e/browser"
3838
},
3939
"private": true,
4040
"dependencies": {
41-
"@angular/animations": "18.0.1",
42-
"@angular/cdk": "18.0.1",
43-
"@angular/common": "18.0.1",
44-
"@angular/compiler": "18.0.1",
45-
"@angular/core": "18.0.1",
46-
"@angular/forms": "18.0.1",
47-
"@angular/material": "18.0.1",
48-
"@angular/platform-browser": "18.0.1",
49-
"@angular/platform-browser-dynamic": "18.0.1",
50-
"@angular/router": "18.0.1",
41+
"@angular/animations": "19.0.3",
42+
"@angular/cdk": "19.0.3",
43+
"@angular/common": "19.0.3",
44+
"@angular/compiler": "19.0.3",
45+
"@angular/core": "19.0.3",
46+
"@angular/forms": "19.0.3",
47+
"@angular/material": "19.0.3",
48+
"@angular/platform-browser": "19.0.3",
49+
"@angular/platform-browser-dynamic": "19.0.3",
50+
"@angular/router": "19.0.3",
5151
"@types/uuid": "9.0.0",
5252
"commitizen": "4.2.6",
5353
"core-js": "3.23.1",
@@ -57,26 +57,26 @@
5757
"rxjs": "7.6.0",
5858
"tslib": "2.4.1",
5959
"uuid": "9.0.0",
60-
"zone.js": "0.14.0"
60+
"zone.js": "0.15.0"
6161
},
6262
"devDependencies": {
63-
"@angular-devkit/build-angular": "18.0.2",
64-
"@angular-eslint/builder": "18.0.0",
65-
"@angular-eslint/eslint-plugin": "18.0.0",
66-
"@angular-eslint/eslint-plugin-template": "18.0.0",
67-
"@angular-eslint/schematics": "18.0.0",
68-
"@angular-eslint/template-parser": "18.0.0",
69-
"@angular/cli": "18.0.2",
70-
"@angular/compiler-cli": "18.0.1",
71-
"@angular/language-service": "18.0.1",
63+
"@angular-devkit/build-angular": "19.0.4",
64+
"@angular-eslint/builder": "19.0.2",
65+
"@angular-eslint/eslint-plugin": "19.0.2",
66+
"@angular-eslint/eslint-plugin-template": "19.0.2",
67+
"@angular-eslint/schematics": "19.0.2",
68+
"@angular-eslint/template-parser": "19.0.2",
69+
"@angular/cli": "19.0.4",
70+
"@angular/compiler-cli": "19.0.3",
71+
"@angular/language-service": "19.0.3",
7272
"@types/jasmine": "4.3.1",
7373
"@types/jasminewd2": "2.0.10",
7474
"@types/lodash": "4.14.191",
7575
"@types/lodash-es": "4.17.6",
76-
"@types/node": "18.11.11",
76+
"@types/node": "22.10.2",
7777
"@typescript-eslint/eslint-plugin": "7.11.0",
7878
"@typescript-eslint/parser": "7.11.0",
79-
"cypress": "12.0.2",
79+
"cypress": "13.16.1",
8080
"cz-conventional-changelog": "3.3.0",
8181
"embedme": "1.22.1",
8282
"eslint": "9.3.0",
@@ -92,13 +92,13 @@
9292
"karma-coverage-istanbul-reporter": "3.0.3",
9393
"karma-jasmine": "5.1.0",
9494
"karma-jasmine-html-reporter": "2.0.0",
95-
"ng-packagr": "18.0.0",
95+
"ng-packagr": "19.0.1",
9696
"prettier": "2.7.1",
9797
"semantic-release": "19.0.5",
9898
"ts-node": "10.9.1",
9999
"tsconfig-paths-webpack-plugin": "3.5.2",
100100
"tsdef": "0.0.14",
101-
"typescript": "5.4.5"
101+
"typescript": "5.6.3"
102102
},
103103
"repository": {
104104
"type": "git",

prettier.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ module.exports = {
1313
insertPragma: false,
1414
proseWrap: 'preserve',
1515
htmlWhitespaceSensitivity: 'ignore',
16+
endOfLine: 'lf',
1617
};

projects/ngx-sub-form/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"tslib": "^2.0.0"
77
},
88
"peerDependencies": {
9-
"@angular/common": "^18.0.0",
10-
"@angular/core": "^18.0.0",
11-
"@angular/forms": "^18.0.0",
9+
"@angular/common": "^19.0.0",
10+
"@angular/core": "^19.0.0",
11+
"@angular/forms": "^19.0.0",
1212
"fast-deep-equal": "^3.1.3",
1313
"lodash-es": "^4.17.21",
1414
"ngx-observable-lifecycle": "^2.2.1",

src/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Component } from '@angular/core';
44
selector: 'app-root',
55
templateUrl: './app.component.html',
66
styleUrls: ['./app.component.scss'],
7+
standalone: false,
78
})
89
export class AppComponent {}

src/app/main/listing/listing-form/droid-listing/assassin-droid/assassin-droid.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const ASSASSIN_DROID_WEAPON_TEXT: { [K in AssassinDroidWeapon]: string }
1616
styleUrls: ['./assassin-droid.component.scss'],
1717
providers: subformComponentProviders(AssassinDroidComponent),
1818
changeDetection: ChangeDetectionStrategy.OnPush,
19+
standalone: false,
1920
})
2021
export class AssassinDroidComponent {
2122
public AssassinDroidWeapon = AssassinDroidWeapon;

src/app/main/listing/listing-form/droid-listing/astromech-droid/astromech-droid.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { AstromechDroid, AstromechDroidShape, DroidType } from '../../../../../i
99
styleUrls: ['./astromech-droid.component.scss'],
1010
providers: subformComponentProviders(AstromechDroidComponent),
1111
changeDetection: ChangeDetectionStrategy.OnPush,
12+
standalone: false,
1213
})
1314
export class AstromechDroidComponent {
1415
public AstromechDroidShape = AstromechDroidShape;

0 commit comments

Comments
 (0)