Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/honest-camels-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/aws": major
---

Updates minimum required Node.js version to v20
6 changes: 3 additions & 3 deletions .github/actions/pnpm-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ runs:
using: 'composite'
steps:
# Install nodejs. https://github.com/actions/setup-node
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 18.x
node-version: 20.x

# Install pnpm. https://github.com/pnpm/action-setup
- uses: pnpm/action-setup@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ jobs:
with:
version: 9

- name: Set up NodeJS v18
uses: actions/setup-node@v4
- name: Set up Node.js
uses: actions/setup-node@v5
with:
cache: pnpm # cache pnpm store
node-version: 18.18.2
node-version: 20.x

- name: Install packages
run: pnpm install
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
registry-url: "https://registry.npmjs.org"
node-version: 20.x

- uses: ./.github/actions/pnpm-setup

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/v2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
registry-url: "https://registry.npmjs.org"
node-version: 20.x

- uses: ./.github/actions/pnpm-setup

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"turbo": "1.10.12"
},
"engines": {
"node": ">=18",
"node": ">=20",
"pnpm": ">=9"
}
}
2 changes: 1 addition & 1 deletion packages/open-next/src/build/bundleNextServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function bundleNextServer(
entryPoints: [entrypoint],
bundle: true,
platform: "node",
target: ["node18"],
target: ["node20"],
// packages: "external",
format: "cjs",
external: externals,
Expand Down
4 changes: 2 additions & 2 deletions packages/open-next/src/build/compileCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function compileCache(
external: ["next", "styled-jsx", "react", "@aws-sdk/*"],
entryPoints: [path.join(options.openNextDistDir, "adapters", "cache.js")],
outfile: compiledCacheFile,
target: ["node18"],
target: ["node20"],
format,
banner: {
js: [
Expand Down Expand Up @@ -59,7 +59,7 @@ export function compileCache(
path.join(options.openNextDistDir, "adapters", "composable-cache.js"),
],
outfile: compiledComposableCacheFile,
target: ["node18"],
target: ["node20"],
format,
banner: {
js: [
Expand Down
2 changes: 1 addition & 1 deletion packages/open-next/src/build/compileConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function compileOpenNextConfigNode(
outfile: outputPath,
bundle: true,
format: "esm",
target: ["node18"],
target: ["node20"],
external: externals,
platform: "node",
banner: {
Expand Down
2 changes: 1 addition & 1 deletion packages/open-next/src/build/compileTagCacheProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function compileTagCacheProvider(
path.join(options.openNextDistDir, "adapters", "dynamo-provider.js"),
],
outfile: path.join(providerPath, "index.mjs"),
target: ["node18"],
target: ["node20"],
plugins: [
openNextResolvePlugin({
fnName: "initializationFunction",
Expand Down
Loading