From 46e1bda159db25e8331c5ee4fde055dd2ff8e134 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Thu, 18 Jul 2024 13:36:53 +0100 Subject: [PATCH 1/3] chore: removed GitHub pages deployment (#2780) * chore: removed base url from vitepress config * chore: removed GitHub pages deployment on release * chore: changeset * chore: rebuild --- .changeset/sweet-schools-jump.md | 4 ++++ .github/workflows/release.yaml | 20 ++------------------ apps/docs/.vitepress/config.ts | 1 - 3 files changed, 6 insertions(+), 19 deletions(-) create mode 100644 .changeset/sweet-schools-jump.md diff --git a/.changeset/sweet-schools-jump.md b/.changeset/sweet-schools-jump.md new file mode 100644 index 00000000000..b988c885f1e --- /dev/null +++ b/.changeset/sweet-schools-jump.md @@ -0,0 +1,4 @@ +--- +--- + +chore: removed GitHub pages deployment diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d8dd0ba2dd6..d27e8576b9d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,9 +13,6 @@ jobs: name: "Release" runs-on: ubuntu-latest permissions: write-all - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} # Ensure that the workflow runs only after a commit is pushed into the branch # and not when the branch is created. # This is to avoid running the workflow when a release/* branch is created. @@ -125,21 +122,6 @@ jobs: if: startsWith(env.LAST_COMMIT_MSG, 'ci(changesets):') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true' run: echo SHOULD_DEPLOY_DOCS=true >> $GITHUB_ENV - - name: Configure GitHub Pages - if: env.SHOULD_DEPLOY_DOCS == 'true' - uses: actions/configure-pages@v5 - - - name: Upload Docs Artifact - if: env.SHOULD_DEPLOY_DOCS == 'true' - uses: actions/upload-pages-artifact@v3 - with: - path: apps/docs/dist - - - name: Deploy Docs - if: env.SHOULD_DEPLOY_DOCS == 'true' - id: deployment - uses: actions/deploy-pages@v4 - - name: Checkout API Docs if: env.SHOULD_DEPLOY_DOCS == 'true' uses: actions/checkout@v4 @@ -206,12 +188,14 @@ jobs: arch: amd64 rootdir: "" workdir: "" + - uses: aws-actions/configure-aws-credentials@v4 if: github.ref_name == 'master' && steps.changesets.outputs.published != 'true' with: aws-access-key-id: ${{ secrets.S3_CDN_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.S3_CDN_SECRET_KEY }} aws-region: us-east-1 + - name: Upload assets to s3 if: github.ref_name == 'master' && steps.changesets.outputs.published != 'true' run: | diff --git a/apps/docs/.vitepress/config.ts b/apps/docs/.vitepress/config.ts index d433a72ec99..ecb1854f944 100644 --- a/apps/docs/.vitepress/config.ts +++ b/apps/docs/.vitepress/config.ts @@ -6,7 +6,6 @@ import apiLinks from '../.typedoc/api-links.json'; export default defineConfig({ title: 'Fuels-ts', description: 'Fuel Typescript SDK', - base: '/fuels-ts/', srcDir: 'src', outDir: 'dist', lang: 'en-US', From d9d05737a93ba76fee843ad4e4f6f22f35bb824c Mon Sep 17 00:00:00 2001 From: fuel-service-user <134328775+fuel-service-user@users.noreply.github.com> Date: Thu, 18 Jul 2024 06:30:34 -0700 Subject: [PATCH 2/3] ci(changesets): versioning packages - `v0.92.1` @ `master` (#2758) * ci(scripts): update versions * ci(changesets): versioning packages --------- Co-authored-by: github-actions[bot] --- .changeset/brave-elephants-peel.md | 5 ---- .changeset/eight-trainers-deny.md | 6 ----- .changeset/olive-comics-matter.md | 4 ---- .changeset/rare-ducks-sort.md | 4 ---- .changeset/rotten-forks-share.md | 5 ---- .changeset/shiny-paws-chew.md | 5 ---- .changeset/sixty-plums-march.md | 5 ---- .changeset/soft-cycles-do.md | 5 ---- .changeset/sweet-schools-jump.md | 4 ---- .changeset/tall-foxes-applaud.md | 2 -- .changeset/wild-pears-fly.md | 5 ---- packages/abi-coder/CHANGELOG.md | 11 +++++++++ packages/abi-coder/package.json | 2 +- packages/abi-typegen/CHANGELOG.md | 9 +++++++ packages/abi-typegen/package.json | 2 +- packages/account/CHANGELOG.md | 17 +++++++++++++ packages/account/package.json | 2 +- packages/address/CHANGELOG.md | 9 +++++++ packages/address/package.json | 2 +- packages/contract/CHANGELOG.md | 18 ++++++++++++++ packages/contract/package.json | 2 +- packages/create-fuels/CHANGELOG.md | 9 +++++++ packages/create-fuels/package.json | 2 +- packages/crypto/CHANGELOG.md | 9 +++++++ packages/crypto/package.json | 2 +- packages/errors/CHANGELOG.md | 6 +++++ packages/errors/package.json | 2 +- packages/fuels/CHANGELOG.md | 24 +++++++++++++++++++ packages/fuels/package.json | 2 +- packages/hasher/CHANGELOG.md | 8 +++++++ packages/hasher/package.json | 2 +- packages/interfaces/CHANGELOG.md | 2 ++ packages/interfaces/package.json | 2 +- packages/logger/CHANGELOG.md | 8 +++++++ packages/logger/package.json | 2 +- packages/math/CHANGELOG.md | 6 +++++ packages/math/package.json | 2 +- packages/merkle/CHANGELOG.md | 7 ++++++ packages/merkle/package.json | 2 +- packages/program/CHANGELOG.md | 15 ++++++++++++ packages/program/package.json | 2 +- packages/script/CHANGELOG.md | 15 ++++++++++++ packages/script/package.json | 2 +- packages/transactions/CHANGELOG.md | 12 ++++++++++ packages/transactions/package.json | 2 +- packages/utils/CHANGELOG.md | 9 +++++++ packages/utils/package.json | 2 +- packages/versions/CHANGELOG.md | 2 ++ packages/versions/package.json | 2 +- .../versions/src/lib/getBuiltinVersions.ts | 2 +- 50 files changed, 216 insertions(+), 70 deletions(-) delete mode 100644 .changeset/brave-elephants-peel.md delete mode 100644 .changeset/eight-trainers-deny.md delete mode 100644 .changeset/olive-comics-matter.md delete mode 100644 .changeset/rare-ducks-sort.md delete mode 100644 .changeset/rotten-forks-share.md delete mode 100644 .changeset/shiny-paws-chew.md delete mode 100644 .changeset/sixty-plums-march.md delete mode 100644 .changeset/soft-cycles-do.md delete mode 100644 .changeset/sweet-schools-jump.md delete mode 100644 .changeset/tall-foxes-applaud.md delete mode 100644 .changeset/wild-pears-fly.md diff --git a/.changeset/brave-elephants-peel.md b/.changeset/brave-elephants-peel.md deleted file mode 100644 index f1af8397ef6..00000000000 --- a/.changeset/brave-elephants-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-fuels": patch ---- - -build(deps): bump next from 14.2.4 to 14.2.5 in the deps group diff --git a/.changeset/eight-trainers-deny.md b/.changeset/eight-trainers-deny.md deleted file mode 100644 index 38723e87401..00000000000 --- a/.changeset/eight-trainers-deny.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@fuel-ts/account": patch -"@fuel-ts/program": patch ---- - -build(deps): bump @fuels/vm-asm from 0.54.0 to 0.55.0 diff --git a/.changeset/olive-comics-matter.md b/.changeset/olive-comics-matter.md deleted file mode 100644 index 13b62cbf83d..00000000000 --- a/.changeset/olive-comics-matter.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -ci(deps): bump aws-actions/configure-aws-credentials from 1 to 4 diff --git a/.changeset/rare-ducks-sort.md b/.changeset/rare-ducks-sort.md deleted file mode 100644 index 7820a45317f..00000000000 --- a/.changeset/rare-ducks-sort.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -fix: `create-fuels` install dependencies by default diff --git a/.changeset/rotten-forks-share.md b/.changeset/rotten-forks-share.md deleted file mode 100644 index 253dec3c816..00000000000 --- a/.changeset/rotten-forks-share.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-fuels": patch ---- - -chore: replace `create-fuels` hardcoded values with constants diff --git a/.changeset/shiny-paws-chew.md b/.changeset/shiny-paws-chew.md deleted file mode 100644 index 5dae26c2c6a..00000000000 --- a/.changeset/shiny-paws-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"fuels": patch ---- - -feat: add minified `fuels` distribution diff --git a/.changeset/sixty-plums-march.md b/.changeset/sixty-plums-march.md deleted file mode 100644 index 78c0e4e9fb2..00000000000 --- a/.changeset/sixty-plums-march.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-fuels": patch ---- - -build(deps-dev): bump the dev-deps group with 9 updates diff --git a/.changeset/soft-cycles-do.md b/.changeset/soft-cycles-do.md deleted file mode 100644 index 06aae67c1a4..00000000000 --- a/.changeset/soft-cycles-do.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fuel-ts/contract": patch ---- - -fix: `launchTestNode` multiple contracts type inference diff --git a/.changeset/sweet-schools-jump.md b/.changeset/sweet-schools-jump.md deleted file mode 100644 index b988c885f1e..00000000000 --- a/.changeset/sweet-schools-jump.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -chore: removed GitHub pages deployment diff --git a/.changeset/tall-foxes-applaud.md b/.changeset/tall-foxes-applaud.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/tall-foxes-applaud.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/wild-pears-fly.md b/.changeset/wild-pears-fly.md deleted file mode 100644 index 11524209839..00000000000 --- a/.changeset/wild-pears-fly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-fuels": patch ---- - -build(deps): bump @tanstack/react-query from 5.29.2 to 5.51.1 diff --git a/packages/abi-coder/CHANGELOG.md b/packages/abi-coder/CHANGELOG.md index e3287cd9fa5..93ebce89719 100644 --- a/packages/abi-coder/CHANGELOG.md +++ b/packages/abi-coder/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/crypto@0.92.1 +- @fuel-ts/errors@0.92.1 +- @fuel-ts/hasher@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/math@0.92.1 +- @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/abi-coder/package.json b/packages/abi-coder/package.json index 04acd927dc0..16c55ee903b 100644 --- a/packages/abi-coder/package.json +++ b/packages/abi-coder/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/abi-coder", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/abi-typegen/CHANGELOG.md b/packages/abi-typegen/CHANGELOG.md index b055c1706a0..6d243ee9ff2 100644 --- a/packages/abi-typegen/CHANGELOG.md +++ b/packages/abi-typegen/CHANGELOG.md @@ -1,5 +1,14 @@ # @fuel-ts/abi-typegen +## 0.92.1 + +### Patch Changes + +- @fuel-ts/errors@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/utils@0.92.1 +- @fuel-ts/versions@0.92.1 + ## 0.92.0 ### Minor Changes diff --git a/packages/abi-typegen/package.json b/packages/abi-typegen/package.json index 82f83fc06e3..dc5415a170c 100644 --- a/packages/abi-typegen/package.json +++ b/packages/abi-typegen/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/abi-typegen", - "version": "0.92.0", + "version": "0.92.1", "description": "Generates Typescript definitions from Sway ABI Json files", "author": "Fuel Labs (https://fuel.network/)", "bin": { diff --git a/packages/account/CHANGELOG.md b/packages/account/CHANGELOG.md index 0e844d2bc8a..34db78aee7c 100644 --- a/packages/account/CHANGELOG.md +++ b/packages/account/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- c62ae85: build(deps): bump @fuels/vm-asm from 0.54.0 to 0.55.0 + - @fuel-ts/abi-coder@0.92.1 + - @fuel-ts/address@0.92.1 + - @fuel-ts/crypto@0.92.1 + - @fuel-ts/errors@0.92.1 + - @fuel-ts/hasher@0.92.1 + - @fuel-ts/interfaces@0.92.1 + - @fuel-ts/math@0.92.1 + - @fuel-ts/merkle@0.92.1 + - @fuel-ts/transactions@0.92.1 + - @fuel-ts/utils@0.92.1 + - @fuel-ts/versions@0.92.1 + ## 0.92.0 ### Minor Changes diff --git a/packages/account/package.json b/packages/account/package.json index 0141943bd4e..8c9e856b2cc 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/account", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/address/CHANGELOG.md b/packages/address/CHANGELOG.md index 577c50e6a6f..c03e45df098 100644 --- a/packages/address/CHANGELOG.md +++ b/packages/address/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/crypto@0.92.1 +- @fuel-ts/errors@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/address/package.json b/packages/address/package.json index d1e09146257..f186939dcca 100644 --- a/packages/address/package.json +++ b/packages/address/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/address", - "version": "0.92.0", + "version": "0.92.1", "description": "Utilities for encoding and decoding addresses", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/contract/CHANGELOG.md b/packages/contract/CHANGELOG.md index 6a8e16d9f5d..353f1f8e77b 100644 --- a/packages/contract/CHANGELOG.md +++ b/packages/contract/CHANGELOG.md @@ -1,5 +1,23 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- 7579259: fix: `launchTestNode` multiple contracts type inference +- Updated dependencies [c62ae85] + - @fuel-ts/account@0.92.1 + - @fuel-ts/program@0.92.1 + - @fuel-ts/abi-coder@0.92.1 + - @fuel-ts/crypto@0.92.1 + - @fuel-ts/errors@0.92.1 + - @fuel-ts/hasher@0.92.1 + - @fuel-ts/interfaces@0.92.1 + - @fuel-ts/merkle@0.92.1 + - @fuel-ts/transactions@0.92.1 + - @fuel-ts/utils@0.92.1 + - @fuel-ts/versions@0.92.1 + ## 0.92.0 ### Minor Changes diff --git a/packages/contract/package.json b/packages/contract/package.json index b8e9b5f5e6b..34a26d060fc 100644 --- a/packages/contract/package.json +++ b/packages/contract/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/contract", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/create-fuels/CHANGELOG.md b/packages/create-fuels/CHANGELOG.md index fa7ab7281c2..b1b8681c435 100644 --- a/packages/create-fuels/CHANGELOG.md +++ b/packages/create-fuels/CHANGELOG.md @@ -1,5 +1,14 @@ # create-fuels +## 0.92.1 + +### Patch Changes + +- e4452f9: build(deps): bump next from 14.2.4 to 14.2.5 in the deps group +- 1b4b033: chore: replace `create-fuels` hardcoded values with constants +- ce5b6b8: build(deps-dev): bump the dev-deps group with 9 updates +- 766faed: build(deps): bump @tanstack/react-query from 5.29.2 to 5.51.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/create-fuels/package.json b/packages/create-fuels/package.json index 70e12bc271e..ac6b0411e0c 100644 --- a/packages/create-fuels/package.json +++ b/packages/create-fuels/package.json @@ -1,6 +1,6 @@ { "name": "create-fuels", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "bin": { diff --git a/packages/crypto/CHANGELOG.md b/packages/crypto/CHANGELOG.md index 846e11aeb0e..e4b8fb82c67 100644 --- a/packages/crypto/CHANGELOG.md +++ b/packages/crypto/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/errors@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/math@0.92.1 +- @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 07666d4591f..636f4c0e469 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/crypto", - "version": "0.92.0", + "version": "0.92.1", "description": "Utilities for encrypting and decrypting data", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index 5ce9719d972..669b5b2ad73 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/CHANGELOG.md @@ -1,5 +1,11 @@ # @fuel-ts/errors +## 0.92.1 + +### Patch Changes + +- @fuel-ts/versions@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/errors/package.json b/packages/errors/package.json index f5eca3d6b51..a6ecfbd4d86 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/errors", - "version": "0.92.0", + "version": "0.92.1", "description": "Error class and error codes that the fuels-ts library throws", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/fuels/CHANGELOG.md b/packages/fuels/CHANGELOG.md index ad433497b6b..ab89cbb600d 100644 --- a/packages/fuels/CHANGELOG.md +++ b/packages/fuels/CHANGELOG.md @@ -1,5 +1,29 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- 9c20eb9: feat: add minified `fuels` distribution +- Updated dependencies [c62ae85] +- Updated dependencies [7579259] + - @fuel-ts/account@0.92.1 + - @fuel-ts/program@0.92.1 + - @fuel-ts/contract@0.92.1 + - @fuel-ts/script@0.92.1 + - @fuel-ts/abi-coder@0.92.1 + - @fuel-ts/abi-typegen@0.92.1 + - @fuel-ts/address@0.92.1 + - @fuel-ts/crypto@0.92.1 + - @fuel-ts/errors@0.92.1 + - @fuel-ts/hasher@0.92.1 + - @fuel-ts/interfaces@0.92.1 + - @fuel-ts/math@0.92.1 + - @fuel-ts/merkle@0.92.1 + - @fuel-ts/transactions@0.92.1 + - @fuel-ts/utils@0.92.1 + - @fuel-ts/versions@0.92.1 + ## 0.92.0 ### Minor Changes diff --git a/packages/fuels/package.json b/packages/fuels/package.json index a55aa1339bc..c2b94c8e021 100644 --- a/packages/fuels/package.json +++ b/packages/fuels/package.json @@ -1,6 +1,6 @@ { "name": "fuels", - "version": "0.92.0", + "version": "0.92.1", "description": "Fuel TS SDK", "author": "Fuel Labs (https://fuel.network/)", "bin": { diff --git a/packages/hasher/CHANGELOG.md b/packages/hasher/CHANGELOG.md index 41f068afcb2..3764fe3c74b 100644 --- a/packages/hasher/CHANGELOG.md +++ b/packages/hasher/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/crypto@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/hasher/package.json b/packages/hasher/package.json index 3ae036f7e04..7acdcfa471f 100644 --- a/packages/hasher/package.json +++ b/packages/hasher/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/hasher", - "version": "0.92.0", + "version": "0.92.1", "description": "Sha256 hash utility for Fuel", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/interfaces/CHANGELOG.md b/packages/interfaces/CHANGELOG.md index 6e3c880897a..acd0c621bd3 100644 --- a/packages/interfaces/CHANGELOG.md +++ b/packages/interfaces/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.92.1 + ## 0.92.0 ## 0.91.0 diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index 6ac22659175..22c95e99742 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/interfaces", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/logger/CHANGELOG.md b/packages/logger/CHANGELOG.md index b7980cf133d..67268302f38 100644 --- a/packages/logger/CHANGELOG.md +++ b/packages/logger/CHANGELOG.md @@ -1,5 +1,13 @@ # @fuel-ts/logger +## 0.92.1 + +### Patch Changes + +- @fuel-ts/address@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/math@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/logger/package.json b/packages/logger/package.json index b5187ec3c41..6fca4c6cd10 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/logger", - "version": "0.92.0", + "version": "0.92.1", "author": "Fuel Labs (https://fuel.network/)", "description": "A logger for the Fuel-TS ecosystem", "main": "dist/index.js", diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index 24c6492b7e0..c7acbe9da5c 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/errors@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/math/package.json b/packages/math/package.json index 07f1ac580db..e2345135860 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/math", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/merkle/CHANGELOG.md b/packages/merkle/CHANGELOG.md index f10e3f10250..253922ce635 100644 --- a/packages/merkle/CHANGELOG.md +++ b/packages/merkle/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/hasher@0.92.1 +- @fuel-ts/math@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/merkle/package.json b/packages/merkle/package.json index 8bdceb3922b..dbd9a908656 100644 --- a/packages/merkle/package.json +++ b/packages/merkle/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merkle", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/program/CHANGELOG.md b/packages/program/CHANGELOG.md index bb8b5d84d05..59ad7dee588 100644 --- a/packages/program/CHANGELOG.md +++ b/packages/program/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- c62ae85: build(deps): bump @fuels/vm-asm from 0.54.0 to 0.55.0 +- Updated dependencies [c62ae85] + - @fuel-ts/account@0.92.1 + - @fuel-ts/abi-coder@0.92.1 + - @fuel-ts/address@0.92.1 + - @fuel-ts/errors@0.92.1 + - @fuel-ts/interfaces@0.92.1 + - @fuel-ts/math@0.92.1 + - @fuel-ts/transactions@0.92.1 + - @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Minor Changes diff --git a/packages/program/package.json b/packages/program/package.json index 0cbef53a4e7..931f28faed0 100644 --- a/packages/program/package.json +++ b/packages/program/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/program", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/script/CHANGELOG.md b/packages/script/CHANGELOG.md index d4e52a67615..692a263ed99 100644 --- a/packages/script/CHANGELOG.md +++ b/packages/script/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- Updated dependencies [c62ae85] + - @fuel-ts/account@0.92.1 + - @fuel-ts/program@0.92.1 + - @fuel-ts/abi-coder@0.92.1 + - @fuel-ts/address@0.92.1 + - @fuel-ts/errors@0.92.1 + - @fuel-ts/interfaces@0.92.1 + - @fuel-ts/math@0.92.1 + - @fuel-ts/transactions@0.92.1 + - @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/script/package.json b/packages/script/package.json index cfd75d6d436..2e171a1405c 100644 --- a/packages/script/package.json +++ b/packages/script/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/script", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/transactions/CHANGELOG.md b/packages/transactions/CHANGELOG.md index f97b8ff8e8e..0fe8570f076 100644 --- a/packages/transactions/CHANGELOG.md +++ b/packages/transactions/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 0.92.1 + +### Patch Changes + +- @fuel-ts/abi-coder@0.92.1 +- @fuel-ts/address@0.92.1 +- @fuel-ts/errors@0.92.1 +- @fuel-ts/hasher@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/math@0.92.1 +- @fuel-ts/utils@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/transactions/package.json b/packages/transactions/package.json index 4626f8a03fb..bbf55b6fd91 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/transactions", - "version": "0.92.0", + "version": "0.92.1", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 0306aed74df..f3e4d43276d 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,14 @@ # @fuel-ts/utils +## 0.92.1 + +### Patch Changes + +- @fuel-ts/errors@0.92.1 +- @fuel-ts/interfaces@0.92.1 +- @fuel-ts/math@0.92.1 +- @fuel-ts/versions@0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index 7aca0a03689..c855e262b43 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/utils", - "version": "0.92.0", + "version": "0.92.1", "description": "Utilities (and test utilities) collection", "author": "Fuel Labs (https://fuel.network/)", "main": "dist/index.js", diff --git a/packages/versions/CHANGELOG.md b/packages/versions/CHANGELOG.md index 5b4cf5b3b18..5a117a56f77 100644 --- a/packages/versions/CHANGELOG.md +++ b/packages/versions/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuel-ts/versions +## 0.92.1 + ## 0.92.0 ### Patch Changes diff --git a/packages/versions/package.json b/packages/versions/package.json index 8b443c8550f..ff5a57d152f 100644 --- a/packages/versions/package.json +++ b/packages/versions/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/versions", - "version": "0.92.0", + "version": "0.92.1", "description": "Validates supported versions of the Fuel toolchain", "author": "Fuel Labs (https://fuel.network/)", "bin": { diff --git a/packages/versions/src/lib/getBuiltinVersions.ts b/packages/versions/src/lib/getBuiltinVersions.ts index dd08065fae8..f29ebbc077c 100644 --- a/packages/versions/src/lib/getBuiltinVersions.ts +++ b/packages/versions/src/lib/getBuiltinVersions.ts @@ -2,6 +2,6 @@ export function getBuiltinVersions() { return { FORC: '0.61.2', FUEL_CORE: '0.31.0', - FUELS: '0.92.0', + FUELS: '0.92.1', }; } From 98748ec925945756c035a7287fe9f67f5b6fb092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nedim=20Salki=C4=87?= Date: Thu, 18 Jul 2024 16:06:19 +0200 Subject: [PATCH 3/3] fix: verification of `fuel-core` node killing (#2759) --- .changeset/neat-bikes-melt.md | 4 ++++ .../launchNode-singular-test.test.ts | 22 ------------------ .../account/src/test-utils/launchNode.test.ts | 23 +++++++++++++++++++ 3 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 .changeset/neat-bikes-melt.md delete mode 100644 packages/account/src/test-utils/launchNode-singular-test.test.ts diff --git a/.changeset/neat-bikes-melt.md b/.changeset/neat-bikes-melt.md new file mode 100644 index 00000000000..7ff5dd841f7 --- /dev/null +++ b/.changeset/neat-bikes-melt.md @@ -0,0 +1,4 @@ +--- +--- + +fix: verification of all test nodes being killed diff --git a/packages/account/src/test-utils/launchNode-singular-test.test.ts b/packages/account/src/test-utils/launchNode-singular-test.test.ts deleted file mode 100644 index 17237e00692..00000000000 --- a/packages/account/src/test-utils/launchNode-singular-test.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { launchNode } from './launchNode'; - -/** - * The test runner creates a test environment per file, - * which we can use to isolate the faulty behavior. - */ -/** - * @group node - */ -describe('launchNode-singular-test', () => { - const killedNode = { - url: '', - }; - afterEach(async () => { - await expect(fetch(killedNode.url)).rejects.toThrow('fetch failed'); - }); - test('synchronous cleanup kills node before test runner exits', async () => { - const { cleanup, url } = await launchNode({ loggingEnabled: false }); - killedNode.url = url; - cleanup(); - }); -}); diff --git a/packages/account/src/test-utils/launchNode.test.ts b/packages/account/src/test-utils/launchNode.test.ts index 83530780948..52b59d2a69b 100644 --- a/packages/account/src/test-utils/launchNode.test.ts +++ b/packages/account/src/test-utils/launchNode.test.ts @@ -46,6 +46,29 @@ describe('launchNode', () => { await waitUntilUnreachable(url); }); + /** + * Spawning the child process in a detached state + * Results in the OS assigning a process group to the child. + * Combining that with `process.kill(-pid)`, + * which sends a "kill process group" signal to the OS, + * ensures that the node will be killed. + */ + it('spawns the fuel-core node in a detached state and kills the process group on cleanup', async () => { + const spawnSpy = vi.spyOn(childProcessMod, 'spawn'); + const killSpy = vi.spyOn(process, 'kill'); + + const { cleanup, pid } = await launchNode(); + + const spawnOptions = spawnSpy.mock.calls[0][2]; + expect(spawnOptions.detached).toBeTruthy(); + + cleanup(); + + expect(killSpy).toHaveBeenCalledTimes(1); + // adding a minus prefix kills the process group + expect(killSpy).toHaveBeenCalledWith(-pid); + }); + test('should start `fuel-core` node using system binary', async () => { const spawnSpy = vi.spyOn(childProcessMod, 'spawn');