Skip to content

Commit f2e5ed8

Browse files
build: update to Angular 18
BREAKING CHANGE: Angular 16 is no more supported
1 parent 6c88713 commit f2e5ed8

File tree

5 files changed

+1893
-1091
lines changed

5 files changed

+1893
-1091
lines changed

angular.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@
3232
"prefix": "app",
3333
"architect": {
3434
"build": {
35-
"builder": "@angular-devkit/build-angular:browser",
35+
"builder": "@angular-devkit/build-angular:application",
3636
"options": {
37-
"outputPath": "dist/demo-ngx-openlayers",
37+
"outputPath": {
38+
"base": "dist/demo-ngx-openlayers"
39+
},
3840
"index": "src/index.html",
39-
"main": "src/main.ts",
40-
"polyfills": "src/polyfills.ts",
41+
"polyfills": [
42+
"src/polyfills.ts"
43+
],
4144
"tsConfig": "tsconfig.app.json",
4245
"assets": [
4346
"src/favicon.ico",
@@ -48,12 +51,12 @@
4851
"node_modules/ol/ol.css"
4952
],
5053
"scripts": [],
51-
"vendorChunk": true,
5254
"extractLicenses": false,
53-
"buildOptimizer": false,
5455
"sourceMap": true,
5556
"optimization": false,
56-
"namedChunks": true
57+
"namedChunks": true,
58+
"browser": "src/main.ts",
59+
"allowedCommonJsDependencies": ["xml-utils", "hammerjs", "lerc"]
5760
},
5861
"configurations": {
5962
"production": {
@@ -73,9 +76,7 @@
7376
"outputHashing": "all",
7477
"sourceMap": false,
7578
"namedChunks": false,
76-
"extractLicenses": true,
77-
"vendorChunk": false,
78-
"buildOptimizer": true
79+
"extractLicenses": true
7980
}
8081
},
8182
"defaultConfiguration": "production"

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/animations": "^17.3.12",
19-
"@angular/common": "^17.3.12",
20-
"@angular/compiler": "^17.3.12",
21-
"@angular/core": "^17.3.12",
22-
"@angular/forms": "^17.3.12",
23-
"@angular/platform-browser": "^17.3.12",
24-
"@angular/platform-browser-dynamic": "^17.3.12",
25-
"@angular/router": "^17.3.12",
18+
"@angular/animations": "^18.2.13",
19+
"@angular/common": "^18.2.13",
20+
"@angular/compiler": "^18.2.13",
21+
"@angular/core": "^18.2.13",
22+
"@angular/forms": "^18.2.13",
23+
"@angular/platform-browser": "^18.2.13",
24+
"@angular/platform-browser-dynamic": "^18.2.13",
25+
"@angular/router": "^18.2.13",
2626
"hammerjs": "^2.0.8",
2727
"ol": "~10.5.0",
2828
"rxjs": "~7.5.0",
2929
"tslib": "^2.5.0",
3030
"zone.js": "~0.14.10"
3131
},
3232
"devDependencies": {
33-
"@angular-devkit/build-angular": "^17.3.15",
34-
"@angular-eslint/builder": "17.5.3",
35-
"@angular-eslint/eslint-plugin": "17.5.3",
36-
"@angular-eslint/eslint-plugin-template": "17.5.3",
37-
"@angular-eslint/schematics": "17.5.3",
38-
"@angular-eslint/template-parser": "17.5.3",
39-
"@angular/cli": "^17.3.15",
40-
"@angular/compiler-cli": "^17.3.12",
41-
"@angular/language-service": "^17.3.12",
33+
"@angular-devkit/build-angular": "^18.2.19",
34+
"@angular-eslint/builder": "18.4.3",
35+
"@angular-eslint/eslint-plugin": "18.4.3",
36+
"@angular-eslint/eslint-plugin-template": "18.4.3",
37+
"@angular-eslint/schematics": "18.4.3",
38+
"@angular-eslint/template-parser": "18.4.3",
39+
"@angular/cli": "^18.2.19",
40+
"@angular/compiler-cli": "^18.2.13",
41+
"@angular/language-service": "^18.2.13",
4242
"@types/arcgis-rest-api": "^10.4.5",
4343
"@types/hammerjs": "^2.0.41",
4444
"@types/jasmine": "~5.1.5",
@@ -59,7 +59,7 @@
5959
"karma-coverage": "~2.2.0",
6060
"karma-jasmine": "~5.1.0",
6161
"karma-jasmine-html-reporter": "~2.1.0",
62-
"ng-packagr": "~17.3.0",
62+
"ng-packagr": "~18.2.1",
6363
"prettier": "^3.4.2",
6464
"protractor": "~7.0.0",
6565
"ts-node": "~8.3.0",

projects/ngx-openlayers/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"release": "commit-and-tag-version -m \"chore(release): version %s\" -t \"\" --prerelease next"
66
},
77
"peerDependencies": {
8-
"@angular/common": ">=16.0.0 <=17.x.x",
9-
"@angular/core": ">=16.0.0 <=17.x.x",
10-
"ol": "~9.2.4"
8+
"@angular/common": ">=17.0.0 <=18.x.x",
9+
"@angular/core": ">=17.0.0 <=18.x.x",
10+
"ol": "~10.5.0"
1111
}
1212
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
66
"forceConsistentCasingInFileNames": true,
7+
"esModuleInterop": true,
78
"noImplicitReturns": true,
89
"noFallthroughCasesInSwitch": true,
910
"sourceMap": true,
1011
"declaration": false,
11-
"downlevelIteration": true,
1212
"experimentalDecorators": true,
1313
"module": "ES2022",
1414
"moduleResolution": "node",

0 commit comments

Comments
 (0)