From 8f0608f95726def9d3ef1ea9a20da02790072d66 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Mon, 9 Sep 2024 18:35:47 +0100 Subject: [PATCH] feat: allow using with nodejs 22 --- .github/workflows/node.yaml | 2 +- assets/manifest.schema.json | 3 ++- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.yaml b/.github/workflows/node.yaml index 1d578a3..7f90927 100644 --- a/.github/workflows/node.yaml +++ b/.github/workflows/node.yaml @@ -38,7 +38,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18.x] + node-version: [18.x, 22.x] steps: - uses: actions/checkout@v4 diff --git a/assets/manifest.schema.json b/assets/manifest.schema.json index 253d0c6..31aa6d2 100644 --- a/assets/manifest.schema.json +++ b/assets/manifest.schema.json @@ -73,7 +73,8 @@ "properties": { "type": { "type": "string", - "description": "Type of the module. Must be: node18" + "description": "Type of the module. Must be: node18 or node22", + "enum": ["node18", "node22"] }, "api": { "type": "string", diff --git a/package.json b/package.json index 48c40b9..cd261fd 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "unit": "jest" }, "engines": { - "node": "^18.12" + "node": "^18.12 || ^22.8" }, "files": [ "README.md",