diff --git a/.changeset/large-books-shop.md b/.changeset/large-books-shop.md new file mode 100644 index 0000000000..e413a240f4 --- /dev/null +++ b/.changeset/large-books-shop.md @@ -0,0 +1,23 @@ +--- +"create-fuels": patch +"@fuel-ts/transactions": patch +"@fuel-ts/abi-typegen": patch +"@fuel-ts/interfaces": patch +"@fuel-ts/abi-coder": patch +"@fuel-ts/contract": patch +"@fuel-ts/versions": patch +"@fuel-ts/account": patch +"@fuel-ts/address": patch +"@fuel-ts/program": patch +"@fuel-ts/crypto": patch +"@fuel-ts/errors": patch +"@fuel-ts/hasher": patch +"@fuel-ts/merkle": patch +"@fuel-ts/script": patch +"fuels": patch +"@fuel-ts/utils": patch +"@fuel-ts/math": patch +"@fuel-ts/logger": patch +--- + +build: add support for latest node versions diff --git a/.github/actions/ci-setup/action.yaml b/.github/actions/ci-setup/action.yaml index 021c4c15c2..54702c7939 100644 --- a/.github/actions/ci-setup/action.yaml +++ b/.github/actions/ci-setup/action.yaml @@ -2,10 +2,10 @@ name: "CI Setup" inputs: node-version: description: "Node version" - default: 20.10.0 + default: 20.14.0 pnpm-version: description: "PNPM version" - default: 9.0.5 + default: 9.4.0 runs: using: "composite" steps: diff --git a/.github/actions/test-setup/action.yaml b/.github/actions/test-setup/action.yaml index 3673c45443..8d7c3d6cf0 100644 --- a/.github/actions/test-setup/action.yaml +++ b/.github/actions/test-setup/action.yaml @@ -2,10 +2,10 @@ name: "Test Setup" inputs: node-version: description: "Node version" - default: 20.10.0 + default: 20.14.0 pnpm-version: description: "PNPM version" - default: 9.0.5 + default: 9.4.0 should-install-bun: description: "Should install Bun" default: false diff --git a/.github/workflows/breaking-change-pr-release.yaml b/.github/workflows/breaking-change-pr-release.yaml index 6c4aa20a7d..7792e44b7e 100644 --- a/.github/workflows/breaking-change-pr-release.yaml +++ b/.github/workflows/breaking-change-pr-release.yaml @@ -55,8 +55,8 @@ jobs: fetch-depth: 0 - uses: ./.github/actions/ci-setup with: - node-version: 20.10.0 - pnpm-version: 9.0.5 + node-version: 20.14.0 + pnpm-version: 9.4.0 - uses: FuelLabs/github-actions/setups/npm@master with: npm-token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/pr-validate-changesets.yaml b/.github/workflows/pr-validate-changesets.yaml index eee82de86f..05775f8817 100644 --- a/.github/workflows/pr-validate-changesets.yaml +++ b/.github/workflows/pr-validate-changesets.yaml @@ -25,7 +25,7 @@ jobs: - name: Setup PNPM uses: pnpm/action-setup@v4 with: - version: 9.0.5 + version: 9.4.0 run_install: true - name: Install jq diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c3e1bc8ea3..2f22fbb4e1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,15 +14,16 @@ jobs: environments: runs-on: ubuntu-latest # name will be node@ or browser - name: ${{ matrix.env.name }}${{ matrix.env.version && '@' || ''}}${{ matrix.env.version || ''}} + name: ${{ matrix.env.display-name }} strategy: fail-fast: false matrix: env: [ - { name: node, version: 18.18.2 }, - { name: node, version: 20 }, - { name: browser }, + { name: node, version: 18.20.3, display-name: "node@18" }, + { name: node, version: 20.14.0, display-name: "node@20" }, + { name: node, version: 22.3.0, display-name: "node@22" }, + { name: browser, display-name: "browser" }, ] timeout-minutes: 25 steps: diff --git a/.nvmrc b/.nvmrc index d5a159609d..48b14e6b2b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.10.0 +20.14.0 diff --git a/package.json b/package.json index 876ed5e179..fdb8da71ad 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "author": "Fuel Labs (https://fuel.network/)", "private": true, "engines": { - "node": "^18.18.2 || ^20.0.0", - "pnpm": "^9.0.5" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0", + "pnpm": "^9.4.0" }, - "packageManager": "pnpm@9.0.5", + "packageManager": "pnpm@9.4.0", "scripts": { "dev": "nodemon --config nodemon.config.json -x 'pnpm build:packages'", "build": "turbo run build --cache-dir=.turbo", diff --git a/packages/abi-coder/package.json b/packages/abi-coder/package.json index d4d44d380c..846c8e5cb8 100644 --- a/packages/abi-coder/package.json +++ b/packages/abi-coder/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/abi-typegen/package.json b/packages/abi-typegen/package.json index 7fc85f06a4..b6dd387b6a 100644 --- a/packages/abi-typegen/package.json +++ b/packages/abi-typegen/package.json @@ -10,7 +10,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/account/package.json b/packages/account/package.json index 857d9bdfaf..55f61727a1 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/address/package.json b/packages/address/package.json index 15ce7c41cc..e93e98a150 100644 --- a/packages/address/package.json +++ b/packages/address/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/contract/package.json b/packages/contract/package.json index 7140863041..51429b7cdd 100644 --- a/packages/contract/package.json +++ b/packages/contract/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/create-fuels/package.json b/packages/create-fuels/package.json index 297172e190..9d3bd6c467 100644 --- a/packages/create-fuels/package.json +++ b/packages/create-fuels/package.json @@ -11,7 +11,7 @@ "templates" ], "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "license": "Apache-2.0", "scripts": { diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 8607f7e17f..92a48ffb0a 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "browser": { "./dist/index.mjs": "./dist/index.browser.mjs" diff --git a/packages/errors/package.json b/packages/errors/package.json index ace7f665d0..a6875a7a88 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/fuels/package.json b/packages/fuels/package.json index 2c2c00cf34..e35b6fca1e 100644 --- a/packages/fuels/package.json +++ b/packages/fuels/package.json @@ -10,7 +10,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/hasher/package.json b/packages/hasher/package.json index 227f8d6fd6..42ffd3a105 100644 --- a/packages/hasher/package.json +++ b/packages/hasher/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index f7fc455f0f..46c4d5120f 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/logger/package.json b/packages/logger/package.json index 6e692a8d34..ae1105aba2 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/FuelLabs/fuels-ts/issues" }, "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/math/package.json b/packages/math/package.json index 931e4046e0..5aa0c8c961 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/merkle/package.json b/packages/merkle/package.json index 47c6f1c9f8..4f7987e351 100644 --- a/packages/merkle/package.json +++ b/packages/merkle/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/program/package.json b/packages/program/package.json index 98032c52b3..7bf101e134 100644 --- a/packages/program/package.json +++ b/packages/program/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/script/package.json b/packages/script/package.json index e9c7818c16..1d38716db9 100644 --- a/packages/script/package.json +++ b/packages/script/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/transactions/package.json b/packages/transactions/package.json index a1b91c278c..16460fcf84 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/utils/package.json b/packages/utils/package.json index 6532451450..42c9d3e8ef 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -7,7 +7,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": { diff --git a/packages/versions/package.json b/packages/versions/package.json index 90578b8b08..4d821ac5d8 100644 --- a/packages/versions/package.json +++ b/packages/versions/package.json @@ -10,7 +10,7 @@ "module": "dist/index.mjs", "types": "dist/index.d.ts", "engines": { - "node": "^18.18.2 || ^20.0.0" + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" }, "exports": { ".": {