diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d87f08f..2317260 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,7 +59,7 @@ jobs: - name: Setup Node uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 22 + node-version-file: package.json cache: pnpm - name: Install Python dependencies @@ -166,11 +166,11 @@ jobs: with: package_json_file: sdk-conformance/package.json - # 24, not 22: the Node SDK's devEngines pins Node ^24.11.0, and the suite runs on it too. + # The Node SDK's devEngines pins the exact Node version, and the suite runs on it too. - name: Setup Node uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 24 + node-version-file: stackone-ai-node/package.json - name: Install Node SDK dependencies working-directory: stackone-ai-node @@ -232,7 +232,7 @@ jobs: - name: Setup Node uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 22 + node-version-file: package.json cache: pnpm - name: Install Python dependencies diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e39df78..109ce4f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -92,7 +92,7 @@ jobs: - name: Setup Node uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 22 + node-version-file: package.json - name: Install dependencies run: | diff --git a/package.json b/package.json index 1d87273..8103169 100644 --- a/package.json +++ b/package.json @@ -14,5 +14,12 @@ "tsx": "^4.23.15", "zod": "4.6.7" }, - "packageManager": "pnpm@11.17.0" + "packageManager": "pnpm@11.17.0", + "devEngines": { + "runtime": { + "name": "node", + "version": "22.23.4", + "onFail": "download" + } + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1cb133..96c8b2b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: hono: specifier: 4.13.16 version: 4.13.16 + node: + specifier: runtime:22.23.4 + version: runtime:22.23.4 tsx: specifier: ^4.23.15 version: 4.23.15 @@ -436,6 +439,159 @@ packages: resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} engines: {node: '>=18'} + node@runtime:22.23.4: + resolution: + type: variations + variants: + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-whlBC+oK7Qjs+lhHo9ispORd1JSglPhsDYchE4Ngqck= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-aix-ppc64.tar.gz + targets: + - cpu: ppc64 + os: aix + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-yeHbx0izPtLRT0JEUZHsrxTFYlnHqaJtAELEnsK2ZCg= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-darwin-arm64.tar.gz + targets: + - cpu: arm64 + os: darwin + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-78wrDbb5S/U+3bA4/is3AnegQr0p5PGbj44jWYeVuBk= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-darwin-x64.tar.gz + targets: + - cpu: x64 + os: darwin + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-96HkhtvIsoaEeBW0d9T7Xp+5Y+1EicPhWIhT1oX1ifk= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-arm64.tar.gz + targets: + - cpu: arm64 + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-Qxjgxo9i4YWD2uhetkX1XH8rii6NH//pGi6KvQRogKs= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-armv7l.tar.gz + targets: + - cpu: armv7l + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-ZoSQPuJ5Wq/mOdwHID6KUe0grhYc8http8ITyKv+1EI= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-ppc64le.tar.gz + targets: + - cpu: ppc64le + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-C9yA+iczHn9BbR2FU7mqu8PBWHCdwyhZ5OhXJKwawwI= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-s390x.tar.gz + targets: + - cpu: s390x + os: linux + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-YxiUAuqiIqq/UbSYPlElkhMc0tSp78Otm/KR/nTj5N4= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-x64-musl.tar.gz + targets: + - cpu: x64 + os: linux + libc: musl + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-uEkihMdqVLr1jWFmjdDkHuD8mK2r+VA9MPBdCPVbRAY= + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-x64.tar.gz + targets: + - cpu: x64 + os: linux + - resolution: + archive: zip + bin: + node: node.exe + integrity: sha256-qLjNecu7MGJDX0SVkdmN1jcwu78wzi18w6Y3bCNssRE= + prefix: node-v22.23.4-win-arm64 + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-win-arm64.zip + targets: + - cpu: arm64 + os: win32 + - resolution: + archive: zip + bin: + node: node.exe + integrity: sha256-y8dLXgmCydu0FSX9j7Xc0y++4jeGP3gpBy9GOaHOXyA= + prefix: node-v22.23.4-win-x64 + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-win-x64.zip + targets: + - cpu: x64 + os: win32 + - resolution: + archive: zip + bin: + node: node.exe + integrity: sha256-fWxNzi7MzKRuPEs+Q8i+u9GWm9YW/bT9oegmkXHZzOo= + prefix: node-v22.23.4-win-x86 + type: binary + url: https://nodejs.org/download/release/v22.23.4/node-v22.23.4-win-x86.zip + targets: + - cpu: x86 + os: win32 + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-eKy//tHUCV6LTbVeuLQ66Siy1B0UqyrenuRqHKbmd98= + type: binary + url: https://unofficial-builds.nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-arm64-musl.tar.gz + targets: + - cpu: arm64 + os: linux + libc: musl + - resolution: + archive: tarball + bin: + node: bin/node + integrity: sha256-EX6uOKOeRdU08aGMIhdwncCwmDX2FomvSQE33iMetCw= + type: binary + url: https://unofficial-builds.nodejs.org/download/release/v22.23.4/node-v22.23.4-linux-x64-musl.tar.gz + targets: + - cpu: x64 + os: linux + libc: musl + version: 22.23.4 + hasBin: true + object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -934,6 +1090,8 @@ snapshots: dependencies: content-type: 2.1.0 + node@runtime:22.23.4: {} + object-assign@4.1.1: {} object-inspect@1.13.4: {}