Skip to content

Commit c0ed830

Browse files
authored
build: prepare the v19 release (#2434)
1 parent 5f9ed21 commit c0ed830

File tree

9 files changed

+7974
-5773
lines changed

9 files changed

+7974
-5773
lines changed

.github/workflows/maintenance-tagging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main] # target branch
77

88
env:
9-
TARGET_RELEASE: 18.x
9+
TARGET_RELEASE: 19.x
1010

1111
permissions:
1212
pull-requests: write

packages.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# Each individual package uses a placeholder for the version of Angular to ensure they're
66
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
77
# version for the placeholders.
8-
ANGULAR_PACKAGE_VERSION = "^18.0.0 || ^19.0.0"
9-
CDK_PACKAGE_VERSION = "^18.0.0"
8+
ANGULAR_PACKAGE_VERSION = "^19.0.0 || ^20.0.0"
9+
CDK_PACKAGE_VERSION = "^19.0.0"
1010
TSLIB_PACKAGE_VERSION = "^2.3.0"
1111
RXJS_PACKAGE_VERSION = "^6.5.3 || ^7.4.0"
1212

renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"username": "sbb-angular-renovate[bot]",
55
"gitAuthor": "sbb-angular-renovate<52953647+sbb-angular-renovate[bot]@users.noreply.github.com>",
66
"repositories": ["sbb-design-systems/sbb-angular"],
7-
"baseBranches": ["main", "18.x"],
7+
"baseBranches": ["main", "19.x"],
88
"includePaths": ["package.json", ".github/**"],
99
"schedule": ["after 10pm every weekday", "before 5am every weekday", "every weekend"],
1010
"lockFileMaintenance": {

src/angular/schematics/migration.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
33
"schematics": {
4-
"migration-v18": {
5-
"version": "18.0.0-0",
6-
"description": "Updates SBB Angular to v18",
7-
"factory": "./ng-update/index#updateToV18"
4+
"migration-v19": {
5+
"version": "19.0.0-0",
6+
"description": "Updates SBB Angular to v19",
7+
"factory": "./ng-update/index#updateToV19"
88
}
99
}
1010
}

src/angular/schematics/ng-update/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createMigrationSchematicRule, TargetVersion } from '@angular/cdk/schema
44
import { sbbAngularUpgradeData } from './upgrade-data';
55

66
/** Entry point for the migration schematics with target of Angular 18 */
7-
export function updateToV18(): Rule {
7+
export function updateToV19(): Rule {
88
return createMigrationSchematicRule(
99
TargetVersion.V19,
1010
[],

src/angular/schematics/ng-update/migrations/sbb-angular-symbols.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
"Schema": "schematics",
416416
"symbolRemoval": "schematics",
417417
"TYPOGRAPHY_CSS_PATH": "schematics",
418-
"updateToV18": "schematics",
418+
"updateToV19": "schematics",
419419
"_patchTypeScriptDefaultLib": "schematics/testing",
420420
"createFileSystemTestApp": "schematics/testing",
421421
"createTestApp": "schematics/testing",

src/showcase/app/howtoupdate/update-steps.ts

+15
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,19 @@ export const UPDATE_STEPS: UpdateStep[] = [
110110
<pre>ng update @sbb-esta/angular@18</pre>`,
111111
],
112112
},
113+
{
114+
from: 1800,
115+
to: 1900,
116+
actions: [
117+
`Update your Angular dependencies to version 19.x.x with "--force" flag (due to unmet peer dependencies).<br/>
118+
See <a href='https://update.angular.io'>update.angular.io</a> for a step-by-step guide for updating Angular.<br/>
119+
<pre>npx @angular/cli@19 update @angular/core@19 @angular/cli@19 --force</pre>`,
120+
121+
`Update Angular CDK in a separate step to avoid dependency version resolving problems.<br/>
122+
<pre>npx @angular/cli@19 update @angular/cdk@19 --force</pre>`,
123+
124+
`Finally, update SBB Angular.
125+
<pre>ng update @sbb-esta/angular@19</pre>`,
126+
],
127+
},
113128
];

0 commit comments

Comments
 (0)