diff --git a/.changeset/lemon-oranges-pump.md b/.changeset/lemon-oranges-pump.md new file mode 100644 index 000000000000..aca1411580cd --- /dev/null +++ b/.changeset/lemon-oranges-pump.md @@ -0,0 +1,6 @@ +--- +'@sveltejs/adapter-vercel': patch +'@sveltejs/kit': patch +--- + +[breaking] drop Node 14 support diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3694985016f2..bf14f8024d35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - uses: pnpm/action-setup@v2.2.1 - uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version: '16.x' cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm turbo run lint check @@ -28,11 +28,9 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14] + node-version: [16] os: [ubuntu-latest, macOS-latest, windows-2019] include: - - node-version: 16 - os: ubuntu-latest - node-version: 18 os: ubuntu-latest env: diff --git a/packages/adapter-vercel/index.js b/packages/adapter-vercel/index.js index e246c8891c23..0cd43b209af3 100644 --- a/packages/adapter-vercel/index.js +++ b/packages/adapter-vercel/index.js @@ -395,8 +395,8 @@ function get_node_version() { const full = process.version.slice(1); // 'v16.5.0' --> '16.5.0' const major = parseInt(full.split('.')[0]); // '16.5.0' --> 16 - if (major < 14) { - throw new Error(`SvelteKit only support Node.js version 14 or greater (currently using v${full}). Consult the documentation: https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version`) + if (major < 16) { + throw new Error(`SvelteKit only supports Node.js version 16 or greater (currently using v${full}). Consult the documentation: https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version`) } return { major, full }; diff --git a/packages/kit/package.json b/packages/kit/package.json index 153171b93d0d..592358745264 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -93,6 +93,6 @@ }, "types": "types/index.d.ts", "engines": { - "node": ">=14.13" + "node": ">=16" } }