Skip to content

Commit 5dbf955

Browse files
authored
Fix some security alerts and bump dependencies (#645)
* Use NodeJS 22 in GitHub workflows * Bump TypeScript and Vite * Remove unused jasmine dependencies * Update Angular to v20.3 * Fix Angular's breaking changes * Bump dependencies * Use the latest esbuild version in all packages
1 parent 54ad263 commit 5dbf955

File tree

10 files changed

+416
-434
lines changed

10 files changed

+416
-434
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
unanimo:
1313
uses: ./.github/workflows/install-and-deploy.yml
1414
with:
15-
node-version: "20.x"
15+
node-version: "22.x"
1616
cache: true
1717
common-tests: false
1818
publish: false
@@ -21,7 +21,7 @@ jobs:
2121
mercury:
2222
uses: ./.github/workflows/install-and-deploy.yml
2323
with:
24-
node-version: "20.x"
24+
node-version: "22.x"
2525
cache: true
2626
common-tests: false
2727
publish: false
@@ -30,7 +30,7 @@ jobs:
3030
svg-sass-generator:
3131
uses: ./.github/workflows/install-and-deploy.yml
3232
with:
33-
node-version: "20.x"
33+
node-version: "22.x"
3434
cache: true
3535
common-tests: false
3636
publish: false

.github/workflows/npmpublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
if: needs.check-version.outputs.unanimo-changed == 'true'
8989
uses: ./.github/workflows/install-and-deploy.yml
9090
with:
91-
node-version: "20.x"
91+
node-version: "22.x"
9292
cache: false
9393
common-tests: false
9494
publish: true
@@ -100,7 +100,7 @@ jobs:
100100
if: needs.check-version.outputs.mercury-changed == 'true'
101101
uses: ./.github/workflows/install-and-deploy.yml
102102
with:
103-
node-version: "20.x"
103+
node-version: "22.x"
104104
cache: false
105105
common-tests: false
106106
publish: true
@@ -112,7 +112,7 @@ jobs:
112112
if: needs.check-version.outputs.svg-sass-generator-changed == 'true'
113113
uses: ./.github/workflows/install-and-deploy.yml
114114
with:
115-
node-version: "20.x"
115+
node-version: "22.x"
116116
cache: false
117117
common-tests: false
118118
publish: true

bun.lock

Lines changed: 386 additions & 403 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@
3030
"@types/node": "~22.10.5",
3131
"@typescript-eslint/eslint-plugin": "~8.43.0",
3232
"@typescript-eslint/parser": "~8.43.0",
33+
"esbuild": "0.25.9",
3334
"eslint": "~9.35.0",
3435
"globals": "~16.4.0",
3536
"playwright": "~1.55.0",
3637
"prettier": "~3.6.2",
37-
"typescript": "~5.8.2",
38+
"typescript": "~5.9.0",
3839
"typescript-eslint": "~8.43.0",
39-
"vite": "~6.2.0",
40+
"vite": "~7.1.5",
4041
"vite-plugin-static-copy": "~3.1.2",
4142
"vitest": "~3.2.4"
4243
}

packages/mercury/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"@vitest/ui": "*",
9494
"chokidar": "^3.6.0",
9595
"chokidar-cli": "^3.0.0",
96-
"esbuild": "~0.25.8",
96+
"esbuild": "*",
9797
"eslint": "*",
9898
"globals": "*",
9999
"minify-html-literals": "~1.3.5",

packages/showcase/package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"serve:ssr:showcase": "node dist/server/server.mjs"
1616
},
1717
"dependencies": {
18-
"@angular/common": "~19.2.10",
19-
"@angular/compiler": "~19.2.10",
20-
"@angular/core": "~19.2.10",
21-
"@angular/platform-browser": "~19.2.10",
22-
"@angular/platform-browser-dynamic": "~19.2.10",
23-
"@angular/platform-server": "~19.2.10",
24-
"@angular/router": "~19.2.10",
25-
"@angular/ssr": "~19.2.11",
18+
"@angular/common": "~20.3.0",
19+
"@angular/compiler": "~20.3.0",
20+
"@angular/core": "~20.3.0",
21+
"@angular/platform-browser": "~20.3.0",
22+
"@angular/platform-browser-dynamic": "~20.3.0",
23+
"@angular/platform-server": "~20.3.0",
24+
"@angular/router": "~20.3.0",
25+
"@angular/ssr": "~20.3.1",
2626
"@genexus/chameleon-controls-library": "6.22.1",
2727
"@genexus/design-system-common": "workspace:*",
2828
"@genexus/mercury": "workspace:*",
@@ -33,14 +33,12 @@
3333
"tslib": "~2.8.1"
3434
},
3535
"devDependencies": {
36-
"@angular-devkit/build-angular": "~19.2.11",
37-
"@angular/cli": "~19.2.11",
38-
"@angular/compiler-cli": "~19.2.10",
36+
"@angular-devkit/build-angular": "~20.3.1",
37+
"@angular/cli": "~20.3.1",
38+
"@angular/compiler-cli": "~20.3.0",
3939
"@types/express": "^4.17.17",
40-
"@types/jasmine": "~5.1.5",
4140
"@types/minimatch": "^5.0.0",
4241
"@types/node": "~22.10.5",
43-
"jasmine-core": "~5.2.0",
4442
"prettier": "*",
4543
"typescript": "*"
4644
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { mergeApplicationConfig, type ApplicationConfig } from "@angular/core";
2-
import { provideServerRendering } from "@angular/platform-server";
3-
import { provideServerRouting } from "@angular/ssr";
2+
import { provideServerRendering, withRoutes } from "@angular/ssr";
3+
44
import { appConfig } from "./app.config";
55
import { serverRoutes } from "./app.routes.server";
66

77
const serverConfig: ApplicationConfig = {
8-
providers: [provideServerRendering(), provideServerRouting(serverRoutes)]
8+
providers: [provideServerRendering(withRoutes(serverRoutes))]
99
};
1010

1111
export const config = mergeApplicationConfig(appConfig, serverConfig);

packages/showcase/src/app/app.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2-
type ApplicationConfig,
3-
provideExperimentalZonelessChangeDetection
2+
provideZonelessChangeDetection,
3+
type ApplicationConfig
44
} from "@angular/core";
55
import {
66
provideRouter,
@@ -9,8 +9,8 @@ import {
99
type InMemoryScrollingFeature
1010
} from "@angular/router";
1111

12-
import { routes } from "./app.routes";
1312
import { provideClientHydration, withEventReplay } from "@angular/platform-browser";
13+
import { routes } from "./app.routes";
1414

1515
const inMemoryScrollingFeature: InMemoryScrollingFeature = withInMemoryScrolling({
1616
scrollPositionRestoration: "enabled",
@@ -19,7 +19,7 @@ const inMemoryScrollingFeature: InMemoryScrollingFeature = withInMemoryScrolling
1919

2020
export const appConfig: ApplicationConfig = {
2121
providers: [
22-
provideExperimentalZonelessChangeDetection(),
22+
provideZonelessChangeDetection(),
2323
provideRouter(routes, withComponentInputBinding(), inMemoryScrollingFeature),
2424

2525
// provideClientHydration increases 4KB (compressed) the bundle size

packages/svg-sass-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"devDependencies": {
3333
"@atao60/fse-cli": "^0.1.9",
34-
"esbuild": "^0.25.2",
34+
"esbuild": "*",
3535
"prettier": "*",
3636
"tsx": "^4.19.3"
3737
}

packages/unanimo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"devDependencies": {
3939
"@atao60/fse-cli": "^0.1.9",
4040
"@genexus/chameleon-controls-library": "6.0.0-next.55",
41-
"sass": "~1.77.8",
41+
"sass": "~1.86.3",
4242
"sassdoc": "^2.7.4",
4343
"scss-bundle": "~3.1.2",
4444
"typescript": "*"

0 commit comments

Comments
 (0)