Version Policy Update - Node 22 to 24

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2025-12-08 10:47:33 +01:00
parent bdee20e91f
commit 2bae83ab2e
54 changed files with 270 additions and 219 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ export class BackstageIpcClient {
timeout.unref();
this.#handlers.set(id, responseHandler);
this.#sendMessage(request, (e: Error) => {
this.#sendMessage(request, undefined, undefined, (e: Error | null) => {
if (e) {
reject(e);
}
+1 -1
View File
@@ -43,6 +43,6 @@
"devDependencies": {
"@backstage/cli": "workspace:^",
"@types/cross-spawn": "^6.0.2",
"@types/node": "^20.16.0"
"@types/node": "^22.13.14"
}
}
+1 -1
View File
@@ -61,7 +61,7 @@ addHook(
ignoreDynamic: true,
},
jsc: {
target: 'es2022',
target: 'es2023',
parser: {
syntax: 'typescript',
},
+1 -1
View File
@@ -277,7 +277,7 @@ export async function load(url, context, nextLoad) {
exportInteropAnnotation: true,
},
jsc: {
target: 'es2022',
target: 'es2023',
parser: {
syntax: 'typescript',
},
+2 -2
View File
@@ -12,7 +12,7 @@
"incremental": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2022"],
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2023"],
"module": "ES2020",
"moduleResolution": "bundler",
"noEmit": false,
@@ -33,7 +33,7 @@
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"target": "ES2022",
"target": "ES2023",
"types": ["node", "jest", "webpack-env"],
"useDefineForClassFields": true
}
+1 -1
View File
@@ -174,7 +174,7 @@
"@types/fs-extra": "^11.0.0",
"@types/http-proxy": "^1.17.4",
"@types/inquirer": "^8.1.3",
"@types/node": "^20.16.0",
"@types/node": "^22.13.14",
"@types/npm-packlist": "^3.0.0",
"@types/recursive-readdir": "^2.2.0",
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
@@ -259,7 +259,7 @@ export async function makeRollupConfigs(
json(),
yaml(),
esbuild({
target: 'ES2022',
target: 'ES2023',
minify: options.minify,
}),
],
@@ -34,13 +34,13 @@ export const optimization = (
minimize: !isDev,
minimizer: [
new MinifyPlugin({
target: 'ES2022',
target: 'ES2023',
format: 'iife',
exclude: 'remoteEntry.js',
}),
// Avoid iife wrapping of module federation remote entry as it breaks the variable assignment
new MinifyPlugin({
target: 'ES2022',
target: 'ES2023',
format: undefined,
include: 'remoteEntry.js',
}),
@@ -67,7 +67,7 @@ export const transforms = (options: TransformOptions): Transforms => {
: 'builtin:swc-loader',
options: {
jsc: {
target: 'es2022',
target: 'es2023',
externalHelpers: !isBackend,
parser: {
syntax: 'typescript',
@@ -97,7 +97,7 @@ export const transforms = (options: TransformOptions): Transforms => {
: 'builtin:swc-loader',
options: {
jsc: {
target: 'es2022',
target: 'es2023',
externalHelpers: !isBackend,
parser: {
syntax: 'ecmascript',
@@ -36,18 +36,18 @@ const exportValues = {
};
const expectedExports = {
commonJs: {
commonJs: expect.objectContaining({
...exportValues.commonJs,
dyn: exportValues.all,
default: {
...exportValues.commonJs,
dyn: exportValues.all,
},
},
module: {
}),
module: expect.objectContaining({
...exportValues.all,
dyn: exportValues.all,
},
}),
};
function loadFixture(fixture: string) {
+1 -1
View File
@@ -52,6 +52,6 @@
"devDependencies": {
"@backstage/cli": "workspace:^",
"@types/jscodeshift": "^0.12.0",
"@types/node": "^20.16.0"
"@types/node": "^22.13.14"
}
}
+1 -1
View File
@@ -58,7 +58,7 @@
"@types/command-exists": "^1.2.0",
"@types/fs-extra": "^11.0.0",
"@types/inquirer": "^8.1.3",
"@types/node": "^20.16.0",
"@types/node": "^22.13.14",
"@types/recursive-readdir": "^2.2.0",
"msw": "^2.0.0",
"nodemon": "^3.0.1"
@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"engines": {
"node": "20 || 22"
"node": "22 || 24"
},
"scripts": {
"start": "backstage-cli repo start",
@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"engines": {
"node": "20 || 22"
"node": "22 || 24"
},
"scripts": {
"start": "backstage-cli repo start",
+1 -1
View File
@@ -47,7 +47,7 @@
"devDependencies": {
"@backstage/cli": "workspace:^",
"@types/fs-extra": "^11.0.0",
"@types/node": "^20.16.0",
"@types/node": "^22.13.14",
"nodemon": "^3.0.1"
}
}
+3 -3
View File
@@ -51,8 +51,8 @@
"@backstage/errors": "workspace:^",
"@electric-sql/pglite": "^0.3.0",
"@manypkg/get-packages": "^1.1.3",
"@microsoft/api-documenter": "^7.25.7",
"@microsoft/api-extractor": "^7.47.2",
"@microsoft/api-documenter": "^7.28.1",
"@microsoft/api-extractor": "^7.55.1",
"@openapitools/openapi-generator-cli": "^2.7.0",
"@stoplight/spectral-core": "^1.18.0",
"@stoplight/spectral-formatters": "^1.1.0",
@@ -90,7 +90,7 @@
"@backstage/cli": "workspace:^",
"@backstage/types": "workspace:^",
"@types/is-glob": "^4.0.2",
"@types/node": "^20.16.0",
"@types/node": "^22.13.14",
"@types/prettier": "^2.0.0",
"typedoc": "^0.28.0"
},
+1 -1
View File
@@ -62,7 +62,7 @@
"@types/commander": "^2.12.2",
"@types/fs-extra": "^11.0.0",
"@types/http-proxy": "^1.17.4",
"@types/node": "^20.16.0",
"@types/node": "^22.13.14",
"@types/serve-handler": "^6.1.0",
"@types/webpack-env": "^1.15.3",
"find-process": "^1.4.5",