Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add support for latest node versions #2539

Merged
merged 30 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
93f1407
build: support latest node versions
maschad Jun 17, 2024
a58bbe6
ci: add node@22 to matrix
maschad Jun 17, 2024
e3f8dc1
build: update pnpm engine support across packages
maschad Jun 17, 2024
cbd80dc
build: update pnpm version
maschad Jun 17, 2024
b7d70ed
docs: update changesets
maschad Jun 17, 2024
5623f25
Merge branch 'master' into mc/chore/support-latest-node
petertonysmith94 Jun 18, 2024
48c8b2c
ci: use node 18.20.3 as LTS
maschad Jun 18, 2024
4b81453
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 18, 2024
d5dd663
build: use latest version node 22.3.0
maschad Jun 18, 2024
244ee5a
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 18, 2024
e54dda8
build: update node LTS to 20.14.0
maschad Jun 18, 2024
cb18275
build: change node lowest maintained to 18.20.3
maschad Jun 18, 2024
deb0ea5
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 19, 2024
082fbe3
build: update pnpm version
maschad Jun 19, 2024
660072c
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 20, 2024
a70d80c
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 21, 2024
b7226c3
build: added requisite node versions to logger
maschad Jun 21, 2024
67622bf
build: introduce display name for jobs
maschad Jun 21, 2024
923fcd2
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 21, 2024
2a9da00
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 23, 2024
21026a3
docs: update changesets
maschad Jun 24, 2024
243e997
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
64871f0
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
7a71c30
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
9734685
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
2b1ce1f
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
adae64d
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
55471ca
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
2b75af5
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 24, 2024
ff7ce2c
Merge branch 'master' into mc/chore/support-latest-node
maschad Jun 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/large-books-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"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
---
maschad marked this conversation as resolved.
Show resolved Hide resolved

build: add support for latest node versions
4 changes: 2 additions & 2 deletions .github/actions/ci-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/test-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/breaking-change-pr-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-validate-changesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ jobs:
environments:
runs-on: ubuntu-latest
# name will be node@<version> 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:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10.0
20.14.0
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"author": "Fuel Labs <contact@fuel.sh> (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",
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-coder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/address/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/hasher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/merkle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/versions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
".": {
Expand Down
Loading