diff --git a/.changeset/fluffy-rockets-tickle.md b/.changeset/fluffy-rockets-tickle.md new file mode 100644 index 000000000..3ddc634fa --- /dev/null +++ b/.changeset/fluffy-rockets-tickle.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': minor +--- + +upgrade to Node 20 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b51a87014..3d7e146a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - uses: the-guild-org/shared-config/setup@main name: Setup Env with: - nodeVersion: 18 + nodeVersion: 20 packageManager: pnpm - name: Lint @@ -31,8 +31,7 @@ jobs: strategy: fail-fast: false matrix: - # For some reason tests take forever on node 14 so will re-visit in future when we decide what versions to test on - node-version: [16, 18, 20] + node-version: [18, 20, 21] steps: - name: Checkout Repository uses: actions/checkout@v3 @@ -40,7 +39,7 @@ jobs: - uses: the-guild-org/shared-config/setup@main name: Setup Env with: - nodeVersion: 18 + nodeVersion: 20 packageManager: pnpm - name: Setup git user information @@ -69,7 +68,7 @@ jobs: - uses: the-guild-org/shared-config/setup@main name: Setup Env with: - nodeVersion: 18 + nodeVersion: 20 packageManager: pnpm - name: Build Packages @@ -96,7 +95,7 @@ jobs: - uses: the-guild-org/shared-config/setup@main name: Setup Env with: - nodeVersion: 18 + nodeVersion: 20 packageManager: pnpm - name: Build Packages diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index caf94bc75..288ccac5f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -19,7 +19,7 @@ jobs: with: npmTag: alpha buildScript: build - nodeVersion: 16 + nodeVersion: 20 packageManager: pnpm secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -31,7 +31,7 @@ jobs: with: npmTag: rc buildScript: build - nodeVersion: 16 + nodeVersion: 20 packageManager: pnpm restoreDeletedChangesets: true secrets: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bde50619a..0b919ba16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Setup environment uses: the-guild-org/shared-config/setup@main with: - nodeVersion: 16 + nodeVersion: 20 packageManager: pnpm - name: Set variables id: vars diff --git a/package.json b/package.json index a7ce876d5..f46d34a12 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,9 @@ }, "license": "(Apache-2.0 OR MIT)", "private": true, - "packageManager": "pnpm@8.3.1", + "packageManager": "pnpm@8.10.4", "engines": { + "node": ">=18.0.0", "pnpm": ">=8" }, "scripts": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 691bc75b8..38975bf50 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -4,7 +4,7 @@ "description": "CLI for building for and deploying to The Graph", "license": "(Apache-2.0 OR MIT)", "engines": { - "node": ">=14" + "node": ">=18" }, "bin": { "graph": "bin/run" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef2530964..adc54c415 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + patchedDependencies: oclif@3.8.1: hash: rxmtqiusuyruv7tkwux5gvotbm @@ -49,7 +53,7 @@ importers: examples/arweave-blocks-transactions: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -65,7 +69,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -84,7 +88,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -103,7 +107,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -122,7 +126,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -174,7 +178,7 @@ importers: version: 5.0.4 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -192,7 +196,7 @@ importers: examples/ethereum-gravatar: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -213,7 +217,7 @@ importers: examples/matic-lens-protocol-posts-subgraph: dependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -226,7 +230,7 @@ importers: examples/near-blocks: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -235,7 +239,7 @@ importers: examples/near-receipts: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -244,7 +248,7 @@ importers: examples/substreams-powered-subgraph: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli packages/cli: @@ -14831,7 +14835,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false