Skip to content

Commit 3f220db

Browse files
Upgrade to Angular 19
1 parent 27a1901 commit 3f220db

48 files changed

Lines changed: 5064 additions & 4001 deletions

File tree

Some content is hidden

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

package-lock.json

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

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,38 @@
2323
},
2424
"private": true,
2525
"dependencies": {
26-
"@angular/animations": "^18.2.6",
27-
"@angular/cdk": "^18.2.6",
28-
"@angular/common": "^18.2.6",
29-
"@angular/compiler": "^18.2.6",
30-
"@angular/core": "^18.2.6",
31-
"@angular/forms": "^18.2.6",
32-
"@angular/material": "^18.2.6",
33-
"@angular/platform-browser": "^18.2.6",
34-
"@angular/platform-browser-dynamic": "^18.2.6",
35-
"@angular/platform-server": "^18.2.6",
36-
"@angular/router": "^18.2.6",
37-
"@angular/ssr": "^18.2.6",
26+
"@angular/animations": "^19.2.15",
27+
"@angular/cdk": "^19.2.19",
28+
"@angular/common": "^19.2.15",
29+
"@angular/compiler": "^19.2.15",
30+
"@angular/core": "^19.2.15",
31+
"@angular/forms": "^19.2.15",
32+
"@angular/material": "^19.2.19",
33+
"@angular/platform-browser": "^19.2.15",
34+
"@angular/platform-browser-dynamic": "^19.2.15",
35+
"@angular/platform-server": "^19.2.15",
36+
"@angular/router": "^19.2.15",
37+
"@angular/ssr": "^19.2.17",
3838
"@opentelemetry/api": "^1.8.0",
3939
"@opentelemetry/auto-instrumentations-web": "^0.51.0",
4040
"@opentelemetry/context-zone-peer-dep": "^2.1.0",
4141
"@opentelemetry/exporter-trace-otlp-http": "^0.205.0",
4242
"@opentelemetry/instrumentation": "^0.205.0",
4343
"@opentelemetry/instrumentation-user-interaction": "^0.50.0",
44+
"@opentelemetry/resources": "^2.1.0",
4445
"@opentelemetry/sdk-trace-web": "^2.1.0",
46+
"@opentelemetry/semantic-conventions": "^1.37.0",
4547
"express": "^4.21.0",
46-
"ngx-markdown": "^18.0.0",
48+
"ngx-markdown": "^19.1.1",
4749
"prismjs": "^1.29.0",
4850
"rxjs": "~7.8.0",
4951
"tslib": "^2.3.0",
50-
"zone.js": "~0.14.10"
52+
"zone.js": "~0.15.1"
5153
},
5254
"devDependencies": {
53-
"@angular-devkit/build-angular": "^18.2.6",
54-
"@angular/cli": "^18.2.6",
55-
"@angular/compiler-cli": "^18.2.6",
55+
"@angular-devkit/build-angular": "^19.2.17",
56+
"@angular/cli": "^19.2.17",
57+
"@angular/compiler-cli": "^19.2.15",
5658
"@types/express": "^4.17.17",
5759
"@types/jasmine": "~5.1.0",
5860
"@types/node": "^18.18.0",
@@ -66,8 +68,8 @@
6668
"karma-jasmine": "~5.1.0",
6769
"karma-jasmine-html-reporter": "~2.1.0",
6870
"lint-staged": "^15.2.0",
69-
"marked": "^9.0.0",
70-
"ng-packagr": "^18.1.0",
71+
"marked": "^15.0.12",
72+
"ng-packagr": "^19.2.2",
7173
"prettier": "^3.2.4",
7274
"reading-time-estimator": "^1.9.2",
7375
"typescript": "~5.5.3"

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { APP_BASE_HREF } from '@angular/common';
2-
import { CommonEngine } from '@angular/ssr';
2+
import { CommonEngine } from '@angular/ssr/node';
33
import express from 'express';
44
import { fileURLToPath } from 'node:url';
55
import { dirname, join, resolve } from 'node:path';

src/app/app.component.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import { NavigationComponent } from './core/layout/navigation/navigation.compone
44
import { FooterComponent } from './core/layout/footer/footer.component';
55

66
@Component({
7-
selector: 'blog-root',
8-
standalone: true,
9-
imports: [
10-
NavigationComponent,
11-
FooterComponent,
12-
RouterOutlet
13-
],
14-
templateUrl: './app.component.html',
15-
styleUrls: ['./app.component.scss'],
7+
selector: 'blog-root',
8+
imports: [
9+
NavigationComponent,
10+
FooterComponent,
11+
RouterOutlet
12+
],
13+
templateUrl: './app.component.html',
14+
styleUrls: ['./app.component.scss']
1615
})
1716
export class AppComponent {
1817
title = 'blog';

src/app/components/author/author.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { ImageSize } from '../../core/model/content.model';
66
import { AvatarComponent } from '../avatar/avatar.component';
77

88
@Component({
9-
selector: 'blog-author',
10-
standalone: true,
11-
imports: [NgStyle, NgClass, RouterLink, AvatarComponent],
12-
templateUrl: './author.component.html',
13-
styleUrl: './author.component.scss',
9+
selector: 'blog-author',
10+
imports: [NgStyle, NgClass, RouterLink, AvatarComponent],
11+
templateUrl: './author.component.html',
12+
styleUrl: './author.component.scss'
1413
})
1514
export class AuthorComponent {
1615
@Input('author') set _author(value: Author | string) {

src/app/components/avatar/avatar.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular
22
import { NgClass } from '@angular/common';
33

44
@Component({
5-
selector: 'blog-avatar',
6-
standalone: true,
7-
imports: [NgClass],
8-
templateUrl: './avatar.component.html',
9-
styleUrl: './avatar.component.scss',
5+
selector: 'blog-avatar',
6+
imports: [NgClass],
7+
templateUrl: './avatar.component.html',
8+
styleUrl: './avatar.component.scss'
109
})
1110
export class AvatarComponent implements AfterViewInit {
1211

src/app/components/button/button.component.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { Component, ViewEncapsulation } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33

44
@Component({
5-
selector: 'blog-button',
6-
standalone: true,
7-
imports: [CommonModule],
8-
templateUrl: './button.component.html',
9-
styleUrl: './button.component.scss',
10-
encapsulation: ViewEncapsulation.None,
5+
selector: 'blog-button',
6+
imports: [CommonModule],
7+
templateUrl: './button.component.html',
8+
styleUrl: './button.component.scss',
9+
encapsulation: ViewEncapsulation.None
1110
})
1211
export class ButtonComponent {}

src/app/components/categories/categories.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { MatTabChangeEvent, MatTabsModule } from '@angular/material/tabs';
44
import { Category } from '../../core/model/categories.model';
55

66
@Component({
7-
selector: 'blog-categories',
8-
standalone: true,
9-
imports: [CommonModule, MatTabsModule],
10-
templateUrl: './categories.component.html',
11-
styleUrl: './categories.component.scss',
7+
selector: 'blog-categories',
8+
imports: [CommonModule, MatTabsModule],
9+
templateUrl: './categories.component.html',
10+
styleUrl: './categories.component.scss'
1211
})
1312
export class CategoriesComponent {
1413
@Input() categories!: Category[];

src/app/components/category-title/category-title.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { Component, Input } from '@angular/core';
22
import { Category } from '../../core/model/categories.model';
33

44
@Component({
5-
selector: 'blog-category-title',
6-
standalone: true,
7-
imports: [],
8-
templateUrl: './category-title.component.html',
9-
styleUrl: './category-title.component.scss',
5+
selector: 'blog-category-title',
6+
imports: [],
7+
templateUrl: './category-title.component.html',
8+
styleUrl: './category-title.component.scss'
109
})
1110
export class CategoryTitleComponent {
1211
@Input() section!: string | null;

src/app/components/divider/divider.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import { Component } from '@angular/core';
22
import { MatDividerModule } from '@angular/material/divider';
33

44
@Component({
5-
selector: 'blog-divider',
6-
standalone: true,
7-
imports: [MatDividerModule],
8-
templateUrl: './divider.component.html',
9-
styleUrl: './divider.component.scss',
5+
selector: 'blog-divider',
6+
imports: [MatDividerModule],
7+
templateUrl: './divider.component.html',
8+
styleUrl: './divider.component.scss'
109
})
1110
export class DividerComponent {}

0 commit comments

Comments
 (0)