Skip to content

Commit 9226a8f

Browse files
chore: migrate to angular 13
1 parent bc16e49 commit 9226a8f

File tree

9 files changed

+1828
-2897
lines changed

9 files changed

+1828
-2897
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
3232
.history/*
3333

3434
# misc
35+
/.angular/cache
3536
/.sass-cache
3637
/connect.lock
3738
/coverage

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/animations": "~12.2.17",
19-
"@angular/common": "~12.2.17",
20-
"@angular/compiler": "~12.2.17",
21-
"@angular/core": "~12.2.17",
22-
"@angular/forms": "~12.2.17",
23-
"@angular/platform-browser": "~12.2.17",
24-
"@angular/platform-browser-dynamic": "~12.2.17",
25-
"@angular/router": "~12.2.17",
18+
"@angular/animations": "~13.4.0",
19+
"@angular/common": "~13.4.0",
20+
"@angular/compiler": "~13.4.0",
21+
"@angular/core": "~13.4.0",
22+
"@angular/forms": "~13.4.0",
23+
"@angular/platform-browser": "~13.4.0",
24+
"@angular/platform-browser-dynamic": "~13.4.0",
25+
"@angular/router": "~13.4.0",
2626
"hammerjs": "^2.0.8",
2727
"ol": "~6.3.1",
28-
"rxjs": "~6.6.0",
28+
"rxjs": "~7.5.0",
2929
"tslib": "^2.5.0",
3030
"zone.js": "~0.11.4"
3131
},
3232
"devDependencies": {
33-
"@angular-devkit/build-angular": "~12.2.18",
33+
"@angular-devkit/build-angular": "~13.3.11",
3434
"@angular-eslint/builder": "13.5.0",
3535
"@angular-eslint/eslint-plugin": "13.5.0",
3636
"@angular-eslint/eslint-plugin-template": "13.5.0",
3737
"@angular-eslint/schematics": "13.5.0",
3838
"@angular-eslint/template-parser": "13.5.0",
39-
"@angular/cli": "~12.2.18",
40-
"@angular/compiler-cli": "~12.2.17",
41-
"@angular/language-service": "~12.2.17",
39+
"@angular/cli": "~13.3.11",
40+
"@angular/compiler-cli": "~13.4.0",
41+
"@angular/language-service": "~13.4.0",
4242
"@types/jasmine": "~3.8.0",
4343
"@types/node": "^12.11.1",
4444
"@typescript-eslint/eslint-plugin": "5.27.1",
@@ -47,18 +47,18 @@
4747
"eslint-plugin-import": "latest",
4848
"eslint-plugin-jsdoc": "latest",
4949
"eslint-plugin-prefer-arrow": "latest",
50-
"jasmine-core": "~3.8.0",
50+
"jasmine-core": "~4.0.0",
5151
"jasmine-spec-reporter": "~5.0.0",
5252
"karma": "~6.4.1",
5353
"karma-chrome-launcher": "~3.1.0",
54-
"karma-coverage": "~2.0.3",
54+
"karma-coverage": "~2.1.0",
5555
"karma-jasmine": "~4.0.0",
5656
"karma-jasmine-html-reporter": "~1.7.0",
57-
"ng-packagr": "^12.2.7",
57+
"ng-packagr": "^13.3.1",
5858
"prettier": "^2.0.3",
5959
"protractor": "~7.0.0",
6060
"standard-version": "^7.1.0",
6161
"ts-node": "~8.3.0",
62-
"typescript": "~4.3.5"
62+
"typescript": "~4.6.4"
6363
}
6464
}

projects/ngx-openlayers/ng-package.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,6 @@
55
"ngcc.config.js"
66
],
77
"lib": {
8-
"entryFile": "src/public-api.ts",
9-
"umdModuleIds": {
10-
"ol": "ol",
11-
"ol/control": "control",
12-
"ol/control/MousePosition": "MousePosition",
13-
"ol/format": "format",
14-
"ol/geom": "geom",
15-
"ol/interaction": "interaction",
16-
"ol/layer": "ol/layer",
17-
"ol/Map": "Map",
18-
"ol/proj": "proj",
19-
"ol/style": "style",
20-
"ol/source": "source",
21-
"ol/tilegrid": "tilegrid",
22-
"ol/tilegrid/TileGrid": "TileGrid",
23-
"ol/tilegrid/WMTS": "WMTS",
24-
"ol/View": "View"
25-
}
8+
"entryFile": "src/public-api.ts"
269
}
2710
}

projects/ngx-openlayers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"postchangelog": "cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md"
99
},
1010
"peerDependencies": {
11-
"@angular/common": ">=6.0.0 <=12.x.x",
12-
"@angular/core": ">=6.0.0 <=12.x.x",
11+
"@angular/common": ">=6.0.0 <=13.x.x",
12+
"@angular/core": ">=6.0.0 <=13.x.x",
1313
"ol": "^6.0.0"
1414
}
1515
}

projects/ngx-openlayers/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"types": [],
1010
"lib": [
1111
"dom",
12-
"es2018"
12+
"es2020"
1313
]
1414
},
1515
"angularCompilerOptions": {

projects/ngx-openlayers/tsconfig.lib.prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"declarationMap": false
55
},
66
"angularCompilerOptions": {
7-
"enableIvy": false
7+
"compilationMode": "partial"
88
}
99
}

src/polyfills.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
22-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
23-
24-
/**
25-
* Web Animations `@angular/platform-browser/animations`
26-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28-
*/
29-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30-
3121
/**
3222
* By default, zone.js will patch all possible macroTask and DomEvents
3323
* user can disable parts of macroTask/DomEvents patch by setting following flags

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
"node_modules/@types"
1919
],
2020
"lib": [
21-
"es2018",
21+
"es2020",
2222
"dom"
2323
],
2424
"paths": {
2525
"ngx-openlayers": [
2626
"dist/ngx-openlayers"
2727
]
28-
}
28+
},
29+
"skipLibCheck": true
2930
},
3031
"angularCompilerOptions": {
3132
"enableI18nLegacyMessageIdFormat": false,

0 commit comments

Comments
 (0)