Skip to content

Commit c96599d

Browse files
chore(deps): update dependency node to v22 (#259)
* chore(deps): update dependency node to v22 * upgrade node * fix tests for ghost v6 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Philippe L'ATTENTION <[email protected]>
1 parent 272d924 commit c96599d

File tree

17 files changed

+131
-123
lines changed

17 files changed

+131
-123
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: ⎔ Setup Node.js
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 20
31+
node-version: 22
3232
cache: "pnpm"
3333

3434
- name: 📥 Download deps
@@ -59,7 +59,7 @@ jobs:
5959
- name: ⎔ Setup Node.js
6060
uses: actions/setup-node@v4
6161
with:
62-
node-version: 20
62+
node-version: 22
6363
cache: "pnpm"
6464

6565
- name: 📥 Download deps
@@ -89,7 +89,7 @@ jobs:
8989
- name: ⎔ Setup Node.js
9090
uses: actions/setup-node@v4
9191
with:
92-
node-version: 20
92+
node-version: 22
9393
cache: "pnpm"
9494

9595
- name: 🏄 Copy example env vars to nextjs app
@@ -123,7 +123,7 @@ jobs:
123123
- name: ⎔ Setup Node.js
124124
uses: actions/setup-node@v4
125125
with:
126-
node-version: 20
126+
node-version: 22
127127
cache: "pnpm"
128128

129129
# - name: 🏄 Copy test env vars

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: ⎔ Setup Node.js 20
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 20
31+
node-version: 22
3232
cache: "pnpm"
3333

3434
- name: 📥 Install Dependencies

apps/ghost-blog-buster/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@ts-ghost/tsconfig": "workspace:*",
4242
"@types/configstore": "^6.0.2",
4343
"@types/js-yaml": "^4.0.9",
44-
"@types/node": "^20.12.7",
44+
"@types/node": "^22.0.0",
4545
"@types/yargs": "^17.0.32",
4646
"eslint": "^8.57.0",
4747
"jiti": "^2.0.0",

apps/ghost-blog-buster/src/utils/markdown-converter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("frontMatterGenerator", () => {
2525
canonical_url: "https://codingdodo.com/odoo-15-javascript-reference",
2626
authors: [
2727
{
28-
id: "1",
28+
id: "68f8bdb4c2a74e000108c75d",
2929
name: "Philippe L'ATTENTION",
3030
slug: "coding-dodo",
3131
profile_image: "https://codingdodo.com/content/images/2021/04/small-logo-1.png",
@@ -131,7 +131,7 @@ describe("frontMatterGenerator", () => {
131131
},
132132
],
133133
primary_author: {
134-
id: "1",
134+
id: "68f8bdb4c2a74e000108c75d",
135135
name: "Philippe L'ATTENTION",
136136
slug: "coding-dodo",
137137
profile_image: "https://codingdodo.com/content/images/2021/04/small-logo-1.png",

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"devDependencies": {
3232
"@types/mdx": "^2.0.13",
33-
"@types/node": "^20.12.7",
33+
"@types/node": "^22.0.0",
3434
"@types/react": "18.3.8",
3535
"@types/react-dom": "18.3.0",
3636
"autoprefixer": "^10.4.19",

examples/remix/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"typescript": "^5.4.5"
3131
},
3232
"engines": {
33-
"node": ">=14"
33+
"node": "22"
3434
}
3535
}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
"typescript": "^5.4.5"
5454
},
5555
"engines": {
56-
"node": ">=16.15.0",
57-
"pnpm": ">=9"
56+
"node": "22"
5857
},
59-
"packageManager": "pnpm@9.11.0"
58+
"packageManager": "pnpm@10.18.3"
6059
}

packages/ts-ghost-admin-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@faker-js/faker": "^9.0.0",
4444
"@ts-ghost/core-api": "workspace:*",
4545
"@ts-ghost/tsconfig": "workspace:*",
46-
"@types/node": "^20.12.7",
46+
"@types/node": "^22.0.0",
4747
"@types/validator": "^13.11.9",
4848
"@vitest/coverage-v8": "^1.5.0",
4949
"eslint": "^8.57.0",

packages/ts-ghost-admin-api/src/schemas/pages.integration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const stubPage = {
4747
tags: [],
4848
authors: [
4949
{
50-
id: "1",
50+
id: "68f8bdb4c2a74e000108c75d",
5151
name: "PhilDL",
5252
slug: "phildl",
5353
@@ -129,7 +129,7 @@ const stubPage = {
129129
negative_feedback: 0,
130130
},
131131
primary_author: {
132-
id: "1",
132+
id: "68f8bdb4c2a74e000108c75d",
133133
name: "PhilDL",
134134
slug: "phildl",
135135
@@ -474,7 +474,7 @@ describe("pages integration tests browse", () => {
474474
const api = new TSGhostAdminAPI(
475475
process.env.VITE_GHOST_URL!,
476476
"1efedd9db174adee2d23d982:4b74dca0219bad629852191af326a45037346c2231240e0f7aec1f9371cc14e8",
477-
"v5.0"
477+
"v5.0",
478478
);
479479
expect(api.pages).toBeDefined();
480480
const result = await api.pages
@@ -499,7 +499,7 @@ describe("pages integration tests browse", () => {
499499
const api = new TSGhostAdminAPI(
500500
"https://codingdodoes.com",
501501
"1efedd9db174adee2d23d982:4b74dca0219bad629852191af326a45037346c2231240e0f7aec1f9371cc14e8",
502-
"v5.0"
502+
"v5.0",
503503
);
504504
expect(api.pages).toBeDefined();
505505
const result = await api.pages

packages/ts-ghost-admin-api/src/schemas/posts.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const stub = {
5151
],
5252
authors: [
5353
{
54-
id: "1",
54+
id: "68f8bdb4c2a74e000108c75d",
5555
name: "PhilDL",
5656
slug: "phildl",
5757
@@ -128,7 +128,7 @@ const stub = {
128128
],
129129
count: { clicks: 0, positive_feedback: 0, negative_feedback: 0 },
130130
primary_author: {
131-
id: "1",
131+
id: "68f8bdb4c2a74e000108c75d",
132132
name: "PhilDL",
133133
slug: "phildl",
134134

0 commit comments

Comments
 (0)