Skip to content

Commit afcda4c

Browse files
committed
angular upgrade v14 -> v15
1 parent 43e4237 commit afcda4c

File tree

6 files changed

+1671
-1628
lines changed

6 files changed

+1671
-1628
lines changed

angular/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"@angular/animations": "^14.2.0",
14-
"@angular/common": "^14.2.0",
15-
"@angular/compiler": "^14.2.0",
16-
"@angular/core": "^14.2.0",
17-
"@angular/forms": "^14.2.0",
18-
"@angular/platform-browser": "^14.2.0",
19-
"@angular/platform-browser-dynamic": "^14.2.0",
20-
"@angular/router": "^14.2.0",
13+
"@angular/animations": "~15.2.10",
14+
"@angular/common": "~15.2.10",
15+
"@angular/compiler": "~15.2.10",
16+
"@angular/core": "~15.2.10",
17+
"@angular/forms": "~15.2.10",
18+
"@angular/platform-browser": "~15.2.10",
19+
"@angular/platform-browser-dynamic": "~15.2.10",
20+
"@angular/router": "~15.2.10",
2121
"gridstack": "^10.3.1",
2222
"rxjs": "~7.5.0",
2323
"tslib": "^2.3.0",
2424
"zone.js": "~0.11.4"
2525
},
2626
"devDependencies": {
27-
"@angular-devkit/build-angular": "^14.2.11",
28-
"@angular/cli": "~14.2.10",
29-
"@angular/compiler-cli": "^14.2.0",
27+
"@angular-devkit/build-angular": "~15.2.11",
28+
"@angular/cli": "~15.2.11",
29+
"@angular/compiler-cli": "~15.2.10",
3030
"@types/jasmine": "~4.0.0",
3131
"jasmine-core": "~4.3.0",
3232
"karma": "~6.4.0",
3333
"karma-chrome-launcher": "~3.1.0",
3434
"karma-coverage": "~2.2.0",
3535
"karma-jasmine": "~5.1.0",
3636
"karma-jasmine-html-reporter": "~2.0.0",
37-
"ng-packagr": "^14.2.0",
38-
"typescript": "~4.7.2"
37+
"ng-packagr": "~15.2.2",
38+
"typescript": "~4.8"
3939
}
40-
}
40+
}

angular/projects/demo/.browserslistrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

angular/projects/demo/src/test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: {
11-
context(path: string, deep?: boolean, filter?: RegExp): {
12-
<T>(id: string): T;
13-
keys(): string[];
14-
};
15-
};
16-
1710
// First, initialize the Angular testing environment.
1811
getTestBed().initTestEnvironment(
1912
BrowserDynamicTestingModule,
2013
platformBrowserDynamicTesting(),
2114
);
22-
23-
// Then we find all the tests.
24-
const context = require.context('./', true, /\.spec\.ts$/);
25-
// And load the modules.
26-
context.keys().forEach(context);

angular/projects/lib/src/test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,8 @@ import {
88
platformBrowserDynamicTesting
99
} from '@angular/platform-browser-dynamic/testing';
1010

11-
declare const require: {
12-
context(path: string, deep?: boolean, filter?: RegExp): {
13-
<T>(id: string): T;
14-
keys(): string[];
15-
};
16-
};
17-
1811
// First, initialize the Angular testing environment.
1912
getTestBed().initTestEnvironment(
2013
BrowserDynamicTestingModule,
2114
platformBrowserDynamicTesting(),
2215
);
23-
24-
// Then we find all the tests.
25-
const context = require.context('./', true, /\.spec\.ts$/);
26-
// And load the modules.
27-
context.keys().forEach(context);

angular/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"experimentalDecorators": true,
2222
"moduleResolution": "node",
2323
"importHelpers": true,
24-
"target": "es2020",
24+
"target": "ES2022",
2525
"module": "es2020",
2626
"lib": [
2727
"es2020",
2828
"dom"
29-
]
29+
],
30+
"useDefineForClassFields": false
3031
},
3132
"angularCompilerOptions": {
3233
"enableI18nLegacyMessageIdFormat": false,

0 commit comments

Comments
 (0)