Skip to content

Commit 646616d

Browse files
authored
add: pnpm catalog (#637)
* add catalog to workspace * update package.json dependencies in examples to use catalog references * lockfile * review * add catalog to utils * add catalog to opennext package * pnpm install * update @types/node to latest
1 parent 2cf6699 commit 646616d

File tree

9 files changed

+188
-175
lines changed

9 files changed

+188
-175
lines changed

examples/app-pages-router/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
},
1313
"dependencies": {
1414
"@example/shared": "workspace:*",
15-
"next": "15.0.1",
15+
"next": "catalog:",
1616
"@opennextjs/aws": "workspace:*",
17-
"react": "19.0.0-rc-69d4b800-20241021",
18-
"react-dom": "19.0.0-rc-69d4b800-20241021"
17+
"react": "catalog:",
18+
"react-dom": "catalog:"
1919
},
2020
"devDependencies": {
21-
"@types/node": "20.5.0",
22-
"@types/react": "npm:types-react@19.0.0-rc.1",
23-
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
24-
"autoprefixer": "10.4.15",
25-
"postcss": "8.4.27",
26-
"tailwindcss": "3.3.3",
27-
"typescript": "^4.9.3"
21+
"@types/node": "catalog:",
22+
"@types/react": "catalog:",
23+
"@types/react-dom": "catalog:",
24+
"autoprefixer": "catalog:",
25+
"postcss": "catalog:",
26+
"tailwindcss": "catalog:",
27+
"typescript": "catalog:"
2828
}
2929
}

examples/app-router/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
},
1313
"dependencies": {
1414
"@example/shared": "workspace:*",
15-
"next": "15.0.1",
1615
"@opennextjs/aws": "workspace:*",
17-
"react": "19.0.0-rc-69d4b800-20241021",
18-
"react-dom": "19.0.0-rc-69d4b800-20241021"
16+
"next": "catalog:",
17+
"react": "catalog:",
18+
"react-dom": "catalog:"
1919
},
2020
"devDependencies": {
21-
"@types/node": "20.5.0",
22-
"@types/react": "npm:types-react@19.0.0-rc.1",
23-
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
24-
"autoprefixer": "10.4.15",
25-
"postcss": "8.4.27",
26-
"tailwindcss": "3.3.3",
27-
"typescript": "^4.9.3"
21+
"@types/node": "catalog:",
22+
"@types/react": "catalog:",
23+
"@types/react-dom": "catalog:",
24+
"autoprefixer": "catalog:",
25+
"postcss": "catalog:",
26+
"tailwindcss": "catalog:",
27+
"typescript": "catalog:"
2828
}
2929
}

examples/pages-router/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
},
1313
"dependencies": {
1414
"@example/shared": "workspace:*",
15-
"@types/node": "20.5.0",
16-
"autoprefixer": "10.4.15",
17-
"next": "15.0.1",
18-
"postcss": "8.4.27",
19-
"react": "19.0.0-rc-69d4b800-20241021",
20-
"react-dom": "19.0.0-rc-69d4b800-20241021",
21-
"tailwindcss": "3.3.3",
22-
"typescript": "^4.9.3"
15+
"next": "catalog:",
16+
"react": "catalog:",
17+
"react-dom": "catalog:"
2318
},
2419
"devDependencies": {
25-
"@types/react": "npm:types-react@19.0.0-rc.1",
26-
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
20+
"@types/node": "catalog:",
21+
"@types/react": "catalog:",
22+
"@types/react-dom": "catalog:",
23+
"tailwindcss": "catalog:",
24+
"postcss": "catalog:",
25+
"autoprefixer": "catalog:",
26+
"typescript": "catalog:"
2727
}
2828
}

examples/shared/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"clean": "rm -rf .turbo && rm -rf node_modules"
77
},
88
"dependencies": {
9-
"react": "19.0.0-rc-69d4b800-20241021",
10-
"react-dom": "19.0.0-rc-69d4b800-20241021"
9+
"react": "catalog:",
10+
"react-dom": "catalog:"
1111
},
1212
"devDependencies": {
13-
"@types/react": "npm:types-react@19.0.0-rc.1",
14-
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
13+
"@types/react": "catalog:",
14+
"@types/react-dom": "catalog:"
1515
}
1616
}

packages/open-next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
},
4646
"devDependencies": {
4747
"@types/aws-lambda": "^8.10.109",
48-
"@types/node": "^18.16.1",
48+
"@types/node": "catalog:",
4949
"tsc-alias": "^1.8.8",
50-
"typescript": "^5.6.3"
50+
"typescript": "catalog:"
5151
},
5252
"bugs": {
5353
"url": "https://github.com/opennextjs/opennextjs-aws/issues"

packages/open-next/src/http/openNextResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class OpenNextNodeResponse extends Transform implements ServerResponse {
163163
...this.headers,
164164
};
165165
const initialCookies = parseCookies(
166-
this.initialHeaders[SET_COOKIE_HEADER],
166+
this.initialHeaders[SET_COOKIE_HEADER]?.toString(),
167167
);
168168
this._cookies =
169169
mergeHeadersPriority === "middleware"

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dependencies": {},
2020
"devDependencies": {
2121
"tsup": "7.2.0",
22-
"@types/node": "20.5.0"
22+
"@types/node": "catalog:"
2323
},
2424
"publishConfig": {
2525
"access": "public"

0 commit comments

Comments
 (0)