Skip to content

Commit 83f06f8

Browse files
build: update to Angular 19
Closes #326 BREAKING CHANGE: Angular 17 is no more supported
1 parent e0dce86 commit 83f06f8

File tree

93 files changed

+2052
-2328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2052
-2328
lines changed

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,35 @@
99
"build": "yarn build:lib && yarn build:demo",
1010
"test": "yarn build:lib && ng test",
1111
"lint": "ng lint",
12-
"e2e": "yarn build:lib && ng e2e",
1312
"format": "prettier --write \"**/@(src|e2e)/**/*.ts\"",
1413
"release": "yarn --cwd projects/ngx-openlayers release"
1514
},
1615
"private": true,
1716
"dependencies": {
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",
17+
"@angular/animations": "^19.2.15",
18+
"@angular/common": "^19.2.15",
19+
"@angular/compiler": "^19.2.15",
20+
"@angular/core": "^19.2.15",
21+
"@angular/forms": "^19.2.15",
22+
"@angular/platform-browser": "^19.2.15",
23+
"@angular/platform-browser-dynamic": "^19.2.15",
24+
"@angular/router": "^19.2.15",
2625
"hammerjs": "^2.0.8",
2726
"ol": "~10.5.0",
2827
"rxjs": "~7.5.0",
2928
"tslib": "^2.5.0",
30-
"zone.js": "~0.14.10"
29+
"zone.js": "~0.15.1"
3130
},
3231
"devDependencies": {
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",
32+
"@angular-devkit/build-angular": "^19.2.17",
33+
"@angular-eslint/builder": "19.8.1",
34+
"@angular-eslint/eslint-plugin": "19.8.1",
35+
"@angular-eslint/eslint-plugin-template": "19.8.1",
36+
"@angular-eslint/schematics": "19.8.1",
37+
"@angular-eslint/template-parser": "19.8.1",
38+
"@angular/cli": "^19.2.17",
39+
"@angular/compiler-cli": "^19.2.15",
40+
"@angular/language-service": "^19.2.15",
4241
"@types/arcgis-rest-api": "^10.4.5",
4342
"@types/hammerjs": "^2.0.41",
4443
"@types/jasmine": "~5.1.5",
@@ -59,10 +58,10 @@
5958
"karma-coverage": "~2.2.0",
6059
"karma-jasmine": "~5.1.0",
6160
"karma-jasmine-html-reporter": "~2.1.0",
62-
"ng-packagr": "~18.2.1",
61+
"ng-packagr": "~19.2.2",
6362
"prettier": "^3.4.2",
6463
"ts-node": "~8.3.0",
65-
"typescript": "~5.4.5"
64+
"typescript": "~5.8.3"
6665
},
6766
"volta": {
6867
"node": "18.20.5"

projects/ngx-openlayers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"release": "commit-and-tag-version -m \"chore(release): version %s\" -t \"\""
77
},
88
"peerDependencies": {
9-
"@angular/common": ">=17.0.0 <=18.x.x",
10-
"@angular/core": ">=17.0.0 <=18.x.x",
9+
"@angular/common": ">=18.0.0 <=19.x.x",
10+
"@angular/core": ">=18.0.0 <=19.x.x",
1111
"ol": "~10.5.0"
1212
}
1313
}

projects/ngx-openlayers/src/lib/attribution.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { Component, ElementRef, OnInit } from '@angular/core';
22
import { Attribution } from 'ol/control';
33

44
@Component({
5-
selector: 'aol-attribution',
6-
template: '<ng-content></ng-content>',
7-
standalone: true,
5+
selector: 'aol-attribution',
6+
template: '<ng-content></ng-content>',
7+
standalone: true,
88
})
99
export class AttributionComponent implements OnInit {
1010
instance: Attribution;

projects/ngx-openlayers/src/lib/attributions.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { AttributionComponent } from './attribution.component';
33
import { SourceComponent } from './sources/source.component';
44

55
@Component({
6-
selector: 'aol-attributions',
7-
template: '<ng-content></ng-content>',
8-
standalone: true,
6+
selector: 'aol-attributions',
7+
template: '<ng-content></ng-content>',
8+
standalone: true,
99
})
1010
export class AttributionsComponent implements AfterViewInit {
1111
@ContentChildren(AttributionComponent)

projects/ngx-openlayers/src/lib/collectioncoordinates.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { GeometryPolygonComponent } from './geom/geometrypolygon.component';
99
import { MapComponent } from './map.component';
1010

1111
@Component({
12-
selector: 'aol-collection-coordinates',
13-
template: ` <div class="aol-collection-coordinates"></div> `,
14-
standalone: true,
12+
selector: 'aol-collection-coordinates',
13+
template: ` <div class="aol-collection-coordinates"></div> `,
14+
standalone: true,
1515
})
1616
export class CollectionCoordinatesComponent implements OnChanges, OnInit {
1717
@Input()

projects/ngx-openlayers/src/lib/content.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Component, ElementRef } from '@angular/core';
22

33
@Component({
4-
selector: 'aol-content',
5-
template: '<ng-content></ng-content>',
6-
standalone: true,
4+
selector: 'aol-content',
5+
template: '<ng-content></ng-content>',
6+
standalone: true,
77
})
88
export class ContentComponent {
99
constructor(public elementRef: ElementRef) {}

projects/ngx-openlayers/src/lib/controls/attribution.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { Attribution } from 'ol/control';
33
import { MapComponent } from '../map.component';
44

55
@Component({
6-
selector: 'aol-control-attribution',
7-
template: ``,
8-
standalone: true,
6+
selector: 'aol-control-attribution',
7+
template: ``,
8+
standalone: true,
99
})
1010
export class ControlAttributionComponent implements OnInit, OnDestroy {
1111
@Input()

projects/ngx-openlayers/src/lib/controls/control.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { ContentComponent } from '../content.component';
44
import { MapComponent } from '../map.component';
55

66
@Component({
7-
selector: 'aol-control',
8-
template: ` <ng-content></ng-content> `,
9-
standalone: true,
7+
selector: 'aol-control',
8+
template: ` <ng-content></ng-content> `,
9+
standalone: true,
1010
})
1111
export class ControlComponent implements OnInit, OnDestroy {
1212
@ContentChild(ContentComponent, { static: true })

projects/ngx-openlayers/src/lib/controls/default.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import { Options as ZoomOptions } from 'ol/control/Zoom';
88
import { MapComponent } from '../map.component';
99

1010
@Component({
11-
selector: 'aol-control-defaults',
12-
template: '',
13-
standalone: true,
11+
selector: 'aol-control-defaults',
12+
template: '',
13+
standalone: true,
1414
})
1515
export class DefaultControlComponent implements OnInit, OnDestroy {
1616
@Input()

projects/ngx-openlayers/src/lib/controls/fullscreen.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { FullScreen } from 'ol/control';
33
import { MapComponent } from '../map.component';
44

55
@Component({
6-
selector: 'aol-control-fullscreen',
7-
template: ` <ng-content></ng-content> `,
8-
standalone: true,
6+
selector: 'aol-control-fullscreen',
7+
template: ` <ng-content></ng-content> `,
8+
standalone: true,
99
})
1010
export class ControlFullScreenComponent implements OnInit, OnDestroy {
1111
@Input()

0 commit comments

Comments
 (0)