diff --git a/.github/workflows/check-create-redwood-app.yml b/.github/workflows/check-create-redwood-app.yml index f724e8149f94..1f22ece18aa8 100644 --- a/.github/workflows/check-create-redwood-app.yml +++ b/.github/workflows/check-create-redwood-app.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: yarn install working-directory: ./.github/actions/check_create_redwood_app diff --git a/.github/workflows/check-test-project-fixture.yml b/.github/workflows/check-test-project-fixture.yml index e1bf44c82dd8..2a681dfb36a3 100644 --- a/.github/workflows/check-test-project-fixture.yml +++ b/.github/workflows/check-test-project-fixture.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: yarn install working-directory: ./.github/actions/check_test_project_fixture diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2940ee194280..a1c45d52cb6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: 🐈 Yarn install working-directory: ./.github/actions/detect-changes @@ -60,7 +60,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: 🐈 Yarn install working-directory: ./tasks/check @@ -104,7 +104,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Enable Corepack run: corepack enable @@ -167,7 +167,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: 🐈 Set up yarn cache uses: ./.github/actions/set-up-yarn-cache @@ -263,7 +263,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Enable Corepack run: corepack enable @@ -472,7 +472,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Enable Corepack run: corepack enable diff --git a/.github/workflows/publish-canary.yml b/.github/workflows/publish-canary.yml index b34144da1c6e..862707ef9d61 100644 --- a/.github/workflows/publish-canary.yml +++ b/.github/workflows/publish-canary.yml @@ -34,7 +34,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: 🐈 Set up yarn cache uses: ./.github/actions/set-up-yarn-cache diff --git a/.github/workflows/publish-release-candidate.yml b/.github/workflows/publish-release-candidate.yml index ae6d4a58b23a..a6fb174f204f 100644 --- a/.github/workflows/publish-release-candidate.yml +++ b/.github/workflows/publish-release-candidate.yml @@ -31,7 +31,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: 🏷 Check git tags run: | @@ -71,7 +71,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: 🐈 Set up yarn cache uses: ./.github/actions/set-up-yarn-cache diff --git a/.github/workflows/require-milestone.yml b/.github/workflows/require-milestone.yml index c77c0d35eb19..052a0f029d48 100644 --- a/.github/workflows/require-milestone.yml +++ b/.github/workflows/require-milestone.yml @@ -21,7 +21,7 @@ jobs: - name: ⬢ Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: ✅ Check milestone uses: ./.github/actions/require-milestone diff --git a/.github/workflows/update-all-contributors.yml b/.github/workflows/update-all-contributors.yml index 6eb34cad352e..63317934a946 100644 --- a/.github/workflows/update-all-contributors.yml +++ b/.github/workflows/update-all-contributors.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: yarn install diff --git a/__fixtures__/test-project/package.json b/__fixtures__/test-project/package.json index 7f19c4f3fe91..ce8b62daa954 100644 --- a/__fixtures__/test-project/package.json +++ b/__fixtures__/test-project/package.json @@ -14,7 +14,7 @@ "root": true }, "engines": { - "node": "=18.x", + "node": "=20.x", "yarn": ">=1.22.21" }, "prisma": { diff --git a/babel.config.js b/babel.config.js index 621506d13d6a..be0d07d35023 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,7 +2,7 @@ const path = require('path') const packageJSON = require(path.join(__dirname, 'package.json')) -const TARGETS_NODE = '18.16' +const TARGETS_NODE = '20.10' // Run `npx browserslist "defaults"` to see a list of target browsers. const TARGETS_BROWSERS = ['defaults'] diff --git a/docs/.node-version b/docs/.node-version index 87ec8842b158..d5a159609d09 100644 --- a/docs/.node-version +++ b/docs/.node-version @@ -1 +1 @@ -18.18.2 +20.10.0 diff --git a/docs/docs/create-redwood-app.md b/docs/docs/create-redwood-app.md index c6244ac0e837..61e2d15b5dfe 100644 --- a/docs/docs/create-redwood-app.md +++ b/docs/docs/create-redwood-app.md @@ -12,9 +12,9 @@ yarn create redwood-app ``` ## Set up for success -Redwood requires that you're running Node version 18.0.0 or higher. +Redwood requires that you're running Node version 20 or higher. -If you're running Node version 19.0.0 or higher, you can still use Create Redwood App, but it may make your project incompatible with some deploy targets, such as AWS Lambdas. +If you're running Node version 21.0.0 or higher, you can still use Create Redwood App, but it may make your project incompatible with some deploy targets, such as AWS Lambdas. To see what version of Node you're running, you can run the following command in your terminal: diff --git a/docs/docs/docker.md b/docs/docs/docker.md index d53d9aa6d6be..767162bef5b0 100644 --- a/docs/docs/docker.md +++ b/docs/docs/docker.md @@ -67,13 +67,13 @@ The `base` stage installs dependencies. It's used as the base image for the build stages and the `console` stage. ```Dockerfile -FROM node:18-bookworm-slim as base +FROM node:20-bookworm-slim as base ``` -We use a Node.js 18 image as the base image because that's the version Redwood targets. +We use a Node.js 20 image as the base image because that's the version Redwood targets. "bookworm" is the codename for the current stable distribution of Debian (version 12). We think it's important to pin the version of the OS just like we pin the version of Node.js. -Lastly, the "slim" variant of the `node:18-bookworm` image only includes what Node.js needs which reduces the image's size while making it more secure. +Lastly, the "slim" variant of the `node:20-bookworm` image only includes what Node.js needs which reduces the image's size while making it more secure. :::tip Why not alpine? @@ -92,7 +92,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* ``` -The `node:18-bookworm-slim` image doesn't have [OpenSSL](https://www.openssl.org/), which [seems to be a bug](https://github.com/nodejs/docker-node/issues/1919). +The `node:20-bookworm-slim` image doesn't have [OpenSSL](https://www.openssl.org/), which [seems to be a bug](https://github.com/nodejs/docker-node/issues/1919). (It was included in the "bullseye" image, the codename for Debian 11.) On Linux, [Prisma needs OpenSSL](https://www.prisma.io/docs/reference/system-requirements#linux-runtime-dependencies). We install it, and Python and its dependencies are there ready to be uncommented if you need them. See the [Troubleshooting](#python) section for more. @@ -190,7 +190,7 @@ After the work we did in the base stage, building the api side amounts to copyin The `api_serve` stage serves your GraphQL api and functions: ```Dockerfile -FROM node:18-bookworm-slim as api_serve +FROM node:20-bookworm-slim as api_serve RUN apt-get update && apt-get install -y \ openssl \ @@ -198,7 +198,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* ``` -We don't start from the `base` stage, but begin anew with the `node:18-bookworm-slim` image. +We don't start from the `base` stage, but begin anew with the `node:20-bookworm-slim` image. Since this is a production stage, it's important for it to be as small as possible. Docker's [multi-stage builds](https://docs.docker.com/build/building/multi-stage/) enables this. @@ -297,7 +297,7 @@ The key line here is the first one—this stage uses the `api_build` stage as it ### The `web_serve` stage ```Dockerfile -FROM node:18-bookworm-slim as web_serve +FROM node:20-bookworm-slim as web_serve USER node WORKDIR /home/node/app @@ -411,7 +411,7 @@ It's because your project depends on Python and the image doesn't provide it. It's easy to fix: just add `python3` and its dependencies (usually `make` and `gcc`): ```diff - FROM node:18-bookworm-slim as base + FROM node:20-bookworm-slim as base RUN apt-get update && apt-get install -y \ openssl \ diff --git a/docs/docs/how-to/test-in-github-actions.md b/docs/docs/how-to/test-in-github-actions.md index 8064e49b681f..d69484779906 100644 --- a/docs/docs/how-to/test-in-github-actions.md +++ b/docs/docs/how-to/test-in-github-actions.md @@ -204,7 +204,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ services: @@ -303,7 +303,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ services: diff --git a/docs/docs/quick-start.md b/docs/docs/quick-start.md index 3fcf885a3324..e9c078e1958e 100644 --- a/docs/docs/quick-start.md +++ b/docs/docs/quick-start.md @@ -6,7 +6,7 @@ description: Redwood quick start :::info Prerequisites -- Redwood requires [Node.js](https://nodejs.org/en/) (=18.x) and [Yarn](https://yarnpkg.com/) (>=1.22.21) +- Redwood requires [Node.js](https://nodejs.org/en/) (=20.x) and [Yarn](https://yarnpkg.com/) (>=1.22.21) - Are you on Windows? For best results, follow our [Windows development setup](how-to/windows-development-setup.md) guide ::: diff --git a/docs/docs/tutorial/chapter1/prerequisites.md b/docs/docs/tutorial/chapter1/prerequisites.md index 094a84230861..a29c425adc04 100644 --- a/docs/docs/tutorial/chapter1/prerequisites.md +++ b/docs/docs/tutorial/chapter1/prerequisites.md @@ -30,7 +30,7 @@ If you have an existing site created with a prior version, you'll need to upgrad During installation, RedwoodJS checks if your system meets version requirements for Node and Yarn: -- node: "=18.x" +- node: "=20.x" - yarn: ">=1.22.21" If you're using a version of Node or Yarn that's **less** than what's required, _the installation bootstrap will result in an ERROR_. To check, please run the following from your terminal command line: diff --git a/packages/babel-config/build.mjs b/packages/babel-config/build.mjs index c5485072da0e..7f99112baa8e 100644 --- a/packages/babel-config/build.mjs +++ b/packages/babel-config/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/babel-config/dist.test.ts b/packages/babel-config/dist.test.ts index ab1e581d3f3c..135259878ac7 100644 --- a/packages/babel-config/dist.test.ts +++ b/packages/babel-config/dist.test.ts @@ -17,7 +17,7 @@ describe('dist', () => { }, "CORE_JS_VERSION": "3.33", "RUNTIME_CORE_JS_VERSION": "7.23.5", - "TARGETS_NODE": "18.16", + "TARGETS_NODE": "20.10", "getApiSideBabelConfigPath": [Function], "getApiSideBabelPlugins": [Function], "getApiSideBabelPresets": [Function], diff --git a/packages/babel-config/src/__tests__/api.test.ts b/packages/babel-config/src/__tests__/api.test.ts index 50c704390ac8..471f6cfc2430 100644 --- a/packages/babel-config/src/__tests__/api.test.ts +++ b/packages/babel-config/src/__tests__/api.test.ts @@ -20,7 +20,7 @@ afterEach(() => { describe('api', () => { test("TARGETS_NODE hasn't unintentionally changed", () => { - expect(TARGETS_NODE).toMatchInlineSnapshot(`"18.16"`) + expect(TARGETS_NODE).toMatchInlineSnapshot(`"20.10"`) }) describe('getApiSideBabelPresets', () => { @@ -64,7 +64,7 @@ describe('api', () => { "@babel/plugin-transform-private-methods", ], "targets": { - "node": "18.16", + "node": "20.10", }, "useBuiltIns": "usage", }, diff --git a/packages/babel-config/src/__tests__/prebuildApiFile.test.ts b/packages/babel-config/src/__tests__/prebuildApiFile.test.ts index 6c751157a116..717f8953b144 100644 --- a/packages/babel-config/src/__tests__/prebuildApiFile.test.ts +++ b/packages/babel-config/src/__tests__/prebuildApiFile.test.ts @@ -466,7 +466,6 @@ describe('api prebuild ', () => { */ expect(list).toMatchInlineSnapshot(` [ - "es.regexp.flags", "esnext.array.last-index", "esnext.array.last-item", "esnext.composite-key", @@ -533,7 +532,6 @@ describe('api prebuild ', () => { "esnext.set.union", "esnext.string.at", "esnext.string.code-points", - "esnext.symbol.dispose", "esnext.symbol.observable", "esnext.symbol.pattern-match", "esnext.weak-map.delete-all", diff --git a/packages/babel-config/src/api.ts b/packages/babel-config/src/api.ts index 604a02c7a7aa..a19e109e58a3 100644 --- a/packages/babel-config/src/api.ts +++ b/packages/babel-config/src/api.ts @@ -16,7 +16,7 @@ import { getPathsFromTypeScriptConfig, } from './common' -export const TARGETS_NODE = '18.16' +export const TARGETS_NODE = '20.10' export const getApiSideBabelPresets = ( { presetEnv } = { presetEnv: false } diff --git a/packages/cli-packages/dataMigrate/build.mjs b/packages/cli-packages/dataMigrate/build.mjs index c6e96b389bb7..02fe92e4bb11 100644 --- a/packages/cli-packages/dataMigrate/build.mjs +++ b/packages/cli-packages/dataMigrate/build.mjs @@ -17,7 +17,7 @@ let result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', @@ -44,7 +44,7 @@ result = await esbuild.build({ minify: true, platform: 'node', - target: ['node18'], + target: ['node20'], packages: 'external', logLevel: 'info', diff --git a/packages/cli-packages/storybook/build.mjs b/packages/cli-packages/storybook/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/cli-packages/storybook/build.mjs +++ b/packages/cli-packages/storybook/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/cli/src/commands/experimental/templates/docker/Dockerfile b/packages/cli/src/commands/experimental/templates/docker/Dockerfile index 14ddba3caf4f..0e6a8003f8b3 100644 --- a/packages/cli/src/commands/experimental/templates/docker/Dockerfile +++ b/packages/cli/src/commands/experimental/templates/docker/Dockerfile @@ -1,6 +1,6 @@ # base # ------------------------------------------------ -FROM node:18-bookworm-slim as base +FROM node:20-bookworm-slim as base RUN apt-get update && apt-get install -y \ openssl \ @@ -54,7 +54,7 @@ RUN yarn redwood build web --no-prerender # serve api # ------------------------------------------------ -FROM node:18-bookworm-slim as api_serve +FROM node:20-bookworm-slim as api_serve RUN apt-get update && apt-get install -y \ openssl \ @@ -88,7 +88,7 @@ CMD [ "node_modules/.bin/rw-server", "api", "--load-env-files" ] # serve web # ------------------------------------------------ -FROM node:18-bookworm-slim as web_serve +FROM node:20-bookworm-slim as web_serve USER node WORKDIR /home/node/app diff --git a/packages/create-redwood-app/build.mjs b/packages/create-redwood-app/build.mjs index 5b7640812720..3ed59c69cd9b 100644 --- a/packages/create-redwood-app/build.mjs +++ b/packages/create-redwood-app/build.mjs @@ -10,7 +10,7 @@ const result = await esbuild.build({ minify: true, platform: 'node', - target: ['node18'], + target: ['node20'], packages: 'external', logLevel: 'info', diff --git a/packages/create-redwood-app/templates/js/.nvmrc b/packages/create-redwood-app/templates/js/.nvmrc index 3f430af82b3d..9a2a0e219c9b 100644 --- a/packages/create-redwood-app/templates/js/.nvmrc +++ b/packages/create-redwood-app/templates/js/.nvmrc @@ -1 +1 @@ -v18 +v20 diff --git a/packages/create-redwood-app/templates/js/package.json b/packages/create-redwood-app/templates/js/package.json index 7f19c4f3fe91..ce8b62daa954 100644 --- a/packages/create-redwood-app/templates/js/package.json +++ b/packages/create-redwood-app/templates/js/package.json @@ -14,7 +14,7 @@ "root": true }, "engines": { - "node": "=18.x", + "node": "=20.x", "yarn": ">=1.22.21" }, "prisma": { diff --git a/packages/create-redwood-app/templates/ts/.nvmrc b/packages/create-redwood-app/templates/ts/.nvmrc index 3f430af82b3d..9a2a0e219c9b 100644 --- a/packages/create-redwood-app/templates/ts/.nvmrc +++ b/packages/create-redwood-app/templates/ts/.nvmrc @@ -1 +1 @@ -v18 +v20 diff --git a/packages/create-redwood-app/templates/ts/package.json b/packages/create-redwood-app/templates/ts/package.json index 7f19c4f3fe91..ce8b62daa954 100644 --- a/packages/create-redwood-app/templates/ts/package.json +++ b/packages/create-redwood-app/templates/ts/package.json @@ -14,7 +14,7 @@ "root": true }, "engines": { - "node": "=18.x", + "node": "=20.x", "yarn": ">=1.22.21" }, "prisma": { diff --git a/packages/eslint-plugin/build.mjs b/packages/eslint-plugin/build.mjs index 46465316eb21..8fac87acabc5 100644 --- a/packages/eslint-plugin/build.mjs +++ b/packages/eslint-plugin/build.mjs @@ -11,7 +11,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/fastify/build.mjs b/packages/fastify/build.mjs index bc79ea07c2f9..abbd891ed78d 100644 --- a/packages/fastify/build.mjs +++ b/packages/fastify/build.mjs @@ -15,7 +15,7 @@ await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', }) diff --git a/packages/internal/src/build/api.ts b/packages/internal/src/build/api.ts index bf015bacfa50..4ca1ba05a20a 100644 --- a/packages/internal/src/build/api.ts +++ b/packages/internal/src/build/api.ts @@ -72,7 +72,7 @@ export const transpileApi = (files: string[], options = {}) => { absWorkingDir: rwjsPaths.api.base, entryPoints: files, platform: 'node', - target: 'node18', + target: 'node20', format: 'cjs', bundle: false, outdir: rwjsPaths.api.dist, diff --git a/packages/mailer/core/build.mjs b/packages/mailer/core/build.mjs index 95bdb1e83cfb..dd87290560db 100644 --- a/packages/mailer/core/build.mjs +++ b/packages/mailer/core/build.mjs @@ -15,7 +15,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/mailer/handlers/in-memory/build.mjs b/packages/mailer/handlers/in-memory/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/mailer/handlers/in-memory/build.mjs +++ b/packages/mailer/handlers/in-memory/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/mailer/handlers/nodemailer/build.mjs b/packages/mailer/handlers/nodemailer/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/mailer/handlers/nodemailer/build.mjs +++ b/packages/mailer/handlers/nodemailer/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/mailer/handlers/resend/build.mjs b/packages/mailer/handlers/resend/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/mailer/handlers/resend/build.mjs +++ b/packages/mailer/handlers/resend/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/mailer/handlers/studio/build.mjs b/packages/mailer/handlers/studio/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/mailer/handlers/studio/build.mjs +++ b/packages/mailer/handlers/studio/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/mailer/renderers/mjml-react/build.mjs b/packages/mailer/renderers/mjml-react/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/mailer/renderers/mjml-react/build.mjs +++ b/packages/mailer/renderers/mjml-react/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/mailer/renderers/react-email/build.mjs b/packages/mailer/renderers/react-email/build.mjs index d68d07d021eb..f173e7ab9024 100644 --- a/packages/mailer/renderers/react-email/build.mjs +++ b/packages/mailer/renderers/react-email/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/project-config/build.mjs b/packages/project-config/build.mjs index ffe56393a3d3..2cec19a1a453 100644 --- a/packages/project-config/build.mjs +++ b/packages/project-config/build.mjs @@ -9,7 +9,7 @@ const result = await esbuild.build({ bundle: true, platform: 'node', - target: ['node18'], + target: ['node20'], packages: 'external', logLevel: 'info', diff --git a/packages/realtime/build.mjs b/packages/realtime/build.mjs index ffe56393a3d3..2cec19a1a453 100644 --- a/packages/realtime/build.mjs +++ b/packages/realtime/build.mjs @@ -9,7 +9,7 @@ const result = await esbuild.build({ bundle: true, platform: 'node', - target: ['node18'], + target: ['node20'], packages: 'external', logLevel: 'info', diff --git a/packages/structure/package.json b/packages/structure/package.json index 14602ddf6b67..8a10b744039d 100644 --- a/packages/structure/package.json +++ b/packages/structure/package.json @@ -60,7 +60,7 @@ "@types/fs-extra": "11.0.4", "@types/lodash": "4.14.201", "@types/lru-cache": "7.10.10", - "@types/node": "18.18.9", + "@types/node": "20.10.4", "@types/vscode": "1.79.1", "jest": "29.7.0", "typescript": "5.3.3" diff --git a/packages/studio/build.mjs b/packages/studio/build.mjs index ad4a16b73566..3061224c5289 100644 --- a/packages/studio/build.mjs +++ b/packages/studio/build.mjs @@ -13,7 +13,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/packages/testing/package.json b/packages/testing/package.json index 9a43cc3f949f..2fe8816af79d 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -40,7 +40,7 @@ "@types/aws-lambda": "8.10.126", "@types/babel-core": "6.25.10", "@types/jest": "29.5.8", - "@types/node": "18.18.9", + "@types/node": "20.10.4", "@types/react": "18.2.37", "@types/react-dom": "18.2.15", "@types/webpack": "5.28.5", diff --git a/packages/tui/build.mjs b/packages/tui/build.mjs index e03cfb6f86b4..f572f24d1308 100644 --- a/packages/tui/build.mjs +++ b/packages/tui/build.mjs @@ -8,7 +8,7 @@ const result = await esbuild.build({ entryPoints: ['src/index.ts'], format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], outfile: 'dist/index.js', // For visualizing the bundle. diff --git a/packages/web-server/build.mjs b/packages/web-server/build.mjs index 46465316eb21..8fac87acabc5 100644 --- a/packages/web-server/build.mjs +++ b/packages/web-server/build.mjs @@ -11,7 +11,7 @@ const result = await esbuild.build({ format: 'cjs', platform: 'node', - target: ['node18'], + target: ['node20'], logLevel: 'info', diff --git a/yarn.lock b/yarn.lock index b6c8d44f523d..1386bae40468 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9060,7 +9060,7 @@ __metadata: "@types/line-column": "npm:1.0.0" "@types/lodash": "npm:4.14.201" "@types/lru-cache": "npm:7.10.10" - "@types/node": "npm:18.18.9" + "@types/node": "npm:20.10.4" "@types/vscode": "npm:1.79.1" camelcase: "npm:6.3.0" core-js: "npm:3.34.0" @@ -9208,7 +9208,7 @@ __metadata: "@types/aws-lambda": "npm:8.10.126" "@types/babel-core": "npm:6.25.10" "@types/jest": "npm:29.5.8" - "@types/node": "npm:18.18.9" + "@types/node": "npm:20.10.4" "@types/react": "npm:18.2.37" "@types/react-dom": "npm:18.2.15" "@types/webpack": "npm:5.28.5" @@ -11938,10 +11938,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0": - version: 20.4.0 - resolution: "@types/node@npm:20.4.0" - checksum: b45864c70d3642611a82a55b4d1734cae9ae5341f4af3dcb7e42aedbe3ca66d766c0dffe26bb94af030b52a45ba5af370fd3104a3b41fa70addbc4fae7322516 +"@types/node@npm:*, @types/node@npm:20.10.4, @types/node@npm:>=12.12.47, @types/node@npm:>=13.7.0": + version: 20.10.4 + resolution: "@types/node@npm:20.10.4" + dependencies: + undici-types: "npm:~5.26.4" + checksum: 2c8b70cba731eb2ae3ae046daa74903bfcbb0e7b9196da767e5895054f6d252296ae7a04fb1dbbcb53bb004c4c658c05eaea2731bc9e2dd9e08f7e88d672f563 languageName: node linkType: hard @@ -11952,15 +11954,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:18.18.9": - version: 18.18.9 - resolution: "@types/node@npm:18.18.9" - dependencies: - undici-types: "npm:~5.26.4" - checksum: 8d58fba5eede0df009412ee188bc96f4baf340f4fafbda1bc66fb680fa775aedc88f0cb154a2455966443d9538af402fff022fb0632bddb1bd0648e5a86e5db9 - languageName: node - linkType: hard - "@types/node@npm:^18.0.0, @types/node@npm:^18.11.9, @types/node@npm:^18.16.3, @types/node@npm:^18.17.5": version: 18.19.3 resolution: "@types/node@npm:18.19.3"