Skip to content

Commit c51e256

Browse files
Copilotmanekinekko
andcommitted
Upgrade Angular from v18 to v19
Co-authored-by: manekinekko <1699357+manekinekko@users.noreply.github.com>
1 parent e9046d4 commit c51e256

File tree

8 files changed

+2841
-1953
lines changed

8 files changed

+2841
-1953
lines changed

package-lock.json

Lines changed: 2793 additions & 1911 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@
2121
},
2222
"private": true,
2323
"dependencies": {
24-
"@angular/animations": "^18.2.13",
24+
"@angular/animations": "^19.2.14",
2525
"@angular/cdk": "^18.2.14",
26-
"@angular/common": "^18.2.13",
27-
"@angular/compiler": "^18.2.13",
28-
"@angular/core": "^18.2.13",
29-
"@angular/forms": "^18.2.13",
26+
"@angular/common": "^19.2.14",
27+
"@angular/compiler": "^19.2.14",
28+
"@angular/core": "^19.2.14",
29+
"@angular/forms": "^19.2.14",
3030
"@angular/material": "^18.2.14",
31-
"@angular/platform-browser": "^18.2.13",
32-
"@angular/platform-browser-dynamic": "^18.2.13",
33-
"@angular/router": "^18.2.13",
31+
"@angular/platform-browser": "^19.2.14",
32+
"@angular/platform-browser-dynamic": "^19.2.14",
33+
"@angular/router": "^19.2.14",
3434
"@types/web-bluetooth": "0.0.6",
3535
"rxjs": "~7.8.0",
3636
"smoothie": "^1.35.0",
3737
"ts-jest": "^29.0.5",
3838
"tslib": "^2.3.0",
39-
"zone.js": "~0.14.3"
39+
"zone.js": "~0.15.1"
4040
},
4141
"devDependencies": {
42-
"@angular-builders/jest": "^18.0.0",
43-
"@angular-devkit/build-angular": "^18.2.20",
44-
"@angular-devkit/core": "^18.2.20",
45-
"@angular/cli": "^18.2.20",
46-
"@angular/compiler-cli": "^18.2.13",
47-
"@angular/language-service": "^18.2.13",
42+
"@angular-builders/jest": "^19.0.0",
43+
"@angular-devkit/build-angular": "^19.2.15",
44+
"@angular-devkit/core": "^19.2.15",
45+
"@angular/cli": "^19.2.15",
46+
"@angular/compiler-cli": "^19.2.14",
47+
"@angular/language-service": "^19.2.14",
4848
"@compodoc/compodoc": "^1.1.11",
4949
"@types/jasmine": "~5.1.4",
5050
"@types/jasminewd2": "~2.0.8",
@@ -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": "^18.2.1",
62+
"ng-packagr": "^19.2.2",
6363
"release-it": "^17.0.3",
6464
"typescript": "~5.5.4"
6565
}

src/app/app.component.ts

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

33
@Component({
4-
selector: 'ble-root',
5-
template: `
4+
selector: 'ble-root',
5+
template: `
66
<ble-dashboard></ble-dashboard>
7-
`
7+
`,
8+
standalone: false
89
})
910
export class AppComponent {}

src/app/dashboard/dashboard.component.ts

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

33
@Component({
4-
selector: 'ble-dashboard',
5-
templateUrl: './dashboard.component.html',
6-
styleUrls: ['./dashboard.component.css'],
4+
selector: 'ble-dashboard',
5+
templateUrl: './dashboard.component.html',
6+
styleUrls: ['./dashboard.component.css'],
7+
standalone: false
78
})
89
export class DashboardComponent {
910

src/app/thingy52/battery-level.component.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const PROVIDERS = [
2828
];
2929

3030
@Component({
31-
selector: 'ble-battery-level',
32-
template: `
31+
selector: 'ble-battery-level',
32+
template: `
3333
<span data-testid="value">{{ value || '000' }}<sup>%</sup></span>
3434
<mat-progress-spinner
3535
[color]="color"
@@ -41,8 +41,8 @@ const PROVIDERS = [
4141
</mat-progress-spinner>
4242
<mat-icon>battery_charging_full</mat-icon>
4343
`,
44-
styles: [
45-
`
44+
styles: [
45+
`
4646
:host {
4747
display: flex;
4848
justify-content: center;
@@ -69,8 +69,9 @@ const PROVIDERS = [
6969
bottom: 255px;
7070
}
7171
`,
72-
],
73-
providers: PROVIDERS,
72+
],
73+
providers: PROVIDERS,
74+
standalone: false
7475
})
7576
export class BatteryLevelComponent implements OnInit, OnDestroy {
7677
value = 0;

src/app/thingy52/humidity.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ const PROVIDERS = [{
2121
}];
2222

2323
@Component({
24-
selector: 'ble-humidity',
25-
template: `
24+
selector: 'ble-humidity',
25+
template: `
2626
<canvas #chart width="549" height="200"></canvas>
2727
`,
28-
styles: [`
28+
styles: [`
2929
:host {
3030
display: block;
3131
}
3232
canvas {
3333
margin-left: -16px;
3434
}`],
35-
providers: PROVIDERS
35+
providers: PROVIDERS,
36+
standalone: false
3637
})
3738
export class HumidityComponent implements OnInit, OnDestroy {
3839
series: TimeSeries | null = null;

src/app/thingy52/stepcounter.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ const PROVIDERS = [{
2020
}];
2121

2222
@Component({
23-
selector: 'ble-stepcounter',
24-
template: `
23+
selector: 'ble-stepcounter',
24+
template: `
2525
<span>{{ value || "000" }}</span>
2626
<mat-icon>directions_walk</mat-icon>
2727
`,
28-
styles: [`
28+
styles: [`
2929
:host {
3030
display: block;
3131
}
@@ -43,7 +43,8 @@ const PROVIDERS = [{
4343
width: 100%;
4444
height: 100%;
4545
}`],
46-
providers: PROVIDERS
46+
providers: PROVIDERS,
47+
standalone: false
4748
})
4849
export class StepCounterComponent implements OnInit, OnDestroy {
4950
valuesSubscription: Subscription | null = null;

src/app/thingy52/temperature.component.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,20 @@ const PROVIDERS = [
3434
];
3535

3636
@Component({
37-
selector: 'ble-temperature',
38-
template: ` <canvas #chart width="549" height="180"></canvas> `,
39-
styles: [
40-
`
37+
selector: 'ble-temperature',
38+
template: ` <canvas #chart width="549" height="180"></canvas> `,
39+
styles: [
40+
`
4141
:host {
4242
display: block;
4343
}
4444
canvas {
4545
margin-left: -16px;
4646
}
4747
`,
48-
],
49-
providers: PROVIDERS,
48+
],
49+
providers: PROVIDERS,
50+
standalone: false
5051
})
5152
export class TemperatureComponent implements OnInit, OnDestroy {
5253
series: TimeSeries | null = null;

0 commit comments

Comments
 (0)