From 985d66cbe262029a57fcf01150168a20de42e152 Mon Sep 17 00:00:00 2001 From: fuel-service-user <134328775+fuel-service-user@users.noreply.github.com> Date: Tue, 4 Jun 2024 09:46:49 -0700 Subject: [PATCH] ci(changesets): versioning packages (#86) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @fuels/react@0.21.0 ### Minor Changes - Created useContractRead hook to read contract data from a contract instance or from a contract id. If provided Abi is declared with `as const`, hook will dynamically infer possible method names, as well as the arguments quantity and types for a selected method, by [@arthurgeron](https://github.com/arthurgeron) (See [#91](https://github.com/FuelLabs/fuels-npm-packs/pull/91)) - - Add `useTransactionResult` hook to get a transaction that has been executed - Create a type `UseNamedQueryParams` to allow overriding `select` function of TanStack Query and our custom `name` property. ### Basic usage with `select` function ````tsx const { receipts } = useTransactionResult({ txId: '0xd7ad974cdccac8b41132dfe1d2a4219a681af1865f0775f141c4d6201ee428d1', query: { name: 'receipts', // Or anything else (optional, default: 'transactionResult') select: (data) => data?.receipts || null, }, }); ```, by [@helciofranco](https://github.com/helciofranco) (See [#94](https://github.com/FuelLabs/fuels-npm-packs/pull/94)) ```` - Adds mutation callbacks, such as `onError` and `onSuccess`, by [@helciofranco](https://github.com/helciofranco) (See [#97](https://github.com/FuelLabs/fuels-npm-packs/pull/97)) - Provide consistent return types across Fuel hooks, for an easier typed experience. Every query hook will now return a `null` value if the query is not available, instead of `undefined`. ### Examples ````tsx const { wallet } = useWallet(); // wallet is Wallet | null const { network } = useNetwork(); // network is Network | null // and so on... Every query hook will return T | null ```, by [@helciofranco](https://github.com/helciofranco) (See [#85](https://github.com/FuelLabs/fuels-npm-packs/pull/85)) ```` - Add `useSendTransaction` hook that allows developers to easily send a transaction. ````tsx const { sendTransaction } = useSendTransaction(); // [...] const transactionRequest = new ScriptTransactionRequest({}); // Or any other tx request sendTransaction({ address: 'fuel1zs7l8ajg0qgrak3jhhmq3xf3thd8stu535gj7p5fye2578yccjyqcgja3z', transaction, }); ```, by [@helciofranco](https://github.com/helciofranco) (See [#92](https://github.com/FuelLabs/fuels-npm-packs/pull/92)) ```` ## @fuels/playwright-utils@0.21.0 ### Patch Changes - update wallet version to 0.21.0, by [@LuizAsFight](https://github.com/LuizAsFight) (See [#98](https://github.com/FuelLabs/fuels-npm-packs/pull/98)) ## @fuels/assets@0.21.0 ## @fuels/changeset@0.21.0 ## @fuels/eslint-plugin@0.21.0 ## @fuels/jest@0.21.0 ## @fuels/local-storage@0.21.0 ## @fuels/prettier-config@0.21.0 ## @fuels/react-xstore@0.21.0 ## @fuels/ts-config@0.21.0 ## @fuels/tsup-config@0.21.0 Co-authored-by: github-actions[bot] --- .changeset/brave-kiwis-punch.md | 6 ---- .changeset/good-turkeys-chew.md | 18 ------------ .changeset/rotten-rabbits-dream.md | 5 ---- .changeset/selfish-crabs-unite.md | 14 --------- .changeset/small-birds-shop.md | 2 -- .changeset/strange-readers-tease.md | 17 ----------- .changeset/yellow-pears-deliver.md | 5 ---- packages/assets/CHANGELOG.md | 2 ++ packages/assets/package.json | 2 +- packages/changeset/CHANGELOG.md | 2 ++ packages/changeset/package.json | 2 +- packages/eslint-plugin/CHANGELOG.md | 2 ++ packages/eslint-plugin/package.json | 2 +- packages/jest/CHANGELOG.md | 2 ++ packages/jest/package.json | 2 +- packages/local-storage/CHANGELOG.md | 2 ++ packages/local-storage/package.json | 2 +- packages/prettier-config/CHANGELOG.md | 2 ++ packages/prettier-config/package.json | 2 +- packages/react-xstore/CHANGELOG.md | 2 ++ packages/react-xstore/package.json | 2 +- packages/react/CHANGELOG.md | 41 +++++++++++++++++++++++++++ packages/react/package.json | 2 +- packages/test-utils/CHANGELOG.md | 6 ++++ packages/test-utils/package.json | 2 +- packages/ts-config/CHANGELOG.md | 2 ++ packages/ts-config/package.json | 2 +- packages/tsup-config/CHANGELOG.md | 2 ++ packages/tsup-config/package.json | 2 +- 29 files changed, 76 insertions(+), 78 deletions(-) delete mode 100644 .changeset/brave-kiwis-punch.md delete mode 100644 .changeset/good-turkeys-chew.md delete mode 100644 .changeset/rotten-rabbits-dream.md delete mode 100644 .changeset/selfish-crabs-unite.md delete mode 100644 .changeset/small-birds-shop.md delete mode 100644 .changeset/strange-readers-tease.md delete mode 100644 .changeset/yellow-pears-deliver.md diff --git a/.changeset/brave-kiwis-punch.md b/.changeset/brave-kiwis-punch.md deleted file mode 100644 index 9d41ca8b..00000000 --- a/.changeset/brave-kiwis-punch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@fuels/react': minor ---- - -Created useContractRead hook to read contract data from a contract instance or from a contract id. -If provided Abi is declared with `as const`, hook will dynamically infer possible method names, as well as the arguments quantity and types for a selected method. diff --git a/.changeset/good-turkeys-chew.md b/.changeset/good-turkeys-chew.md deleted file mode 100644 index 18341c93..00000000 --- a/.changeset/good-turkeys-chew.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@fuels/react': minor ---- - -- Add `useTransactionResult` hook to get a transaction that has been executed -- Create a type `UseNamedQueryParams` to allow overriding `select` function of TanStack Query and our custom `name` property. - -### Basic usage with `select` function - -```tsx -const { receipts } = useTransactionResult({ - txId: '0xd7ad974cdccac8b41132dfe1d2a4219a681af1865f0775f141c4d6201ee428d1', - query: { - name: 'receipts', // Or anything else (optional, default: 'transactionResult') - select: (data) => data?.receipts || null, - }, -}); -``` diff --git a/.changeset/rotten-rabbits-dream.md b/.changeset/rotten-rabbits-dream.md deleted file mode 100644 index 211edeb6..00000000 --- a/.changeset/rotten-rabbits-dream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@fuels/react': minor ---- - -Adds mutation callbacks, such as `onError` and `onSuccess`. diff --git a/.changeset/selfish-crabs-unite.md b/.changeset/selfish-crabs-unite.md deleted file mode 100644 index 0e14765d..00000000 --- a/.changeset/selfish-crabs-unite.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@fuels/react': minor ---- - -Provide consistent return types across Fuel hooks, for an easier typed experience. -Every query hook will now return a `null` value if the query is not available, instead of `undefined`. - -### Examples - -```tsx -const { wallet } = useWallet(); // wallet is Wallet | null -const { network } = useNetwork(); // network is Network | null -// and so on... Every query hook will return T | null -``` diff --git a/.changeset/small-birds-shop.md b/.changeset/small-birds-shop.md deleted file mode 100644 index a845151c..00000000 --- a/.changeset/small-birds-shop.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/strange-readers-tease.md b/.changeset/strange-readers-tease.md deleted file mode 100644 index faa0c0c1..00000000 --- a/.changeset/strange-readers-tease.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@fuels/react': minor ---- - -Add `useSendTransaction` hook that allows developers to easily send a transaction. - -```tsx -const { sendTransaction } = useSendTransaction(); - -// [...] - -const transactionRequest = new ScriptTransactionRequest({}); // Or any other tx request -sendTransaction({ - address: 'fuel1zs7l8ajg0qgrak3jhhmq3xf3thd8stu535gj7p5fye2578yccjyqcgja3z', - transaction, -}); -``` diff --git a/.changeset/yellow-pears-deliver.md b/.changeset/yellow-pears-deliver.md deleted file mode 100644 index 0b967153..00000000 --- a/.changeset/yellow-pears-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@fuels/playwright-utils': patch ---- - -update wallet version to 0.21.0 diff --git a/packages/assets/CHANGELOG.md b/packages/assets/CHANGELOG.md index 72578d37..17140a5d 100644 --- a/packages/assets/CHANGELOG.md +++ b/packages/assets/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/assets +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/assets/package.json b/packages/assets/package.json index 758d1944..c4f7669c 100644 --- a/packages/assets/package.json +++ b/packages/assets/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/assets", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "src/index.ts", "publishConfig": { diff --git a/packages/changeset/CHANGELOG.md b/packages/changeset/CHANGELOG.md index 34e2679c..0ba572da 100644 --- a/packages/changeset/CHANGELOG.md +++ b/packages/changeset/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/changeset +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/changeset/package.json b/packages/changeset/package.json index 10d585d2..3d597c8f 100644 --- a/packages/changeset/package.json +++ b/packages/changeset/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/changeset", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "access": "public", "main": "src/index.js", diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index 405cdb41..183368ba 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/eslint-config +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 5c103e87..9e12d985 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/eslint-plugin", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "access": "public", "main": "./index.js", diff --git a/packages/jest/CHANGELOG.md b/packages/jest/CHANGELOG.md index aac9f8d4..0beff810 100644 --- a/packages/jest/CHANGELOG.md +++ b/packages/jest/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/jest +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/jest/package.json b/packages/jest/package.json index 01f9130f..6cf8e548 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/jest", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "./src/index.ts", "exports": { diff --git a/packages/local-storage/CHANGELOG.md b/packages/local-storage/CHANGELOG.md index 144d14df..1921c6da 100644 --- a/packages/local-storage/CHANGELOG.md +++ b/packages/local-storage/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/local-storage +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/local-storage/package.json b/packages/local-storage/package.json index 4430bbdc..b1080510 100644 --- a/packages/local-storage/package.json +++ b/packages/local-storage/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/local-storage", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "src/index.ts", "publishConfig": { diff --git a/packages/prettier-config/CHANGELOG.md b/packages/prettier-config/CHANGELOG.md index 1c6c7bc0..d637345d 100644 --- a/packages/prettier-config/CHANGELOG.md +++ b/packages/prettier-config/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/prettier-config +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index 0a0a9f80..6e52e3b5 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/prettier-config", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "./index.json", "access": "public", diff --git a/packages/react-xstore/CHANGELOG.md b/packages/react-xstore/CHANGELOG.md index 4fc97fe5..aa6892be 100644 --- a/packages/react-xstore/CHANGELOG.md +++ b/packages/react-xstore/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/react-xstore +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/react-xstore/package.json b/packages/react-xstore/package.json index 9de184eb..eb8de7d3 100644 --- a/packages/react-xstore/package.json +++ b/packages/react-xstore/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/react-xstore", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "src/index.ts", "publishConfig": { diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 1a3f9316..189e3d45 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,46 @@ # @fuels/react +## 0.21.0 + +### Minor Changes + +- Created useContractRead hook to read contract data from a contract instance or from a contract id. + If provided Abi is declared with `as const`, hook will dynamically infer possible method names, as well as the arguments quantity and types for a selected method, by [@arthurgeron](https://github.com/arthurgeron) (See [#91](https://github.com/FuelLabs/fuels-npm-packs/pull/91)) +- - Add `useTransactionResult` hook to get a transaction that has been executed + - Create a type `UseNamedQueryParams` to allow overriding `select` function of TanStack Query and our custom `name` property. + ### Basic usage with `select` function + ````tsx + const { receipts } = useTransactionResult({ + txId: '0xd7ad974cdccac8b41132dfe1d2a4219a681af1865f0775f141c4d6201ee428d1', + query: { + name: 'receipts', // Or anything else (optional, default: 'transactionResult') + select: (data) => data?.receipts || null, + }, + }); + ```, by [@helciofranco](https://github.com/helciofranco) (See [#94](https://github.com/FuelLabs/fuels-npm-packs/pull/94)) + ```` +- Adds mutation callbacks, such as `onError` and `onSuccess`, by [@helciofranco](https://github.com/helciofranco) (See [#97](https://github.com/FuelLabs/fuels-npm-packs/pull/97)) +- Provide consistent return types across Fuel hooks, for an easier typed experience. + Every query hook will now return a `null` value if the query is not available, instead of `undefined`. + ### Examples + ````tsx + const { wallet } = useWallet(); // wallet is Wallet | null + const { network } = useNetwork(); // network is Network | null + // and so on... Every query hook will return T | null + ```, by [@helciofranco](https://github.com/helciofranco) (See [#85](https://github.com/FuelLabs/fuels-npm-packs/pull/85)) + ```` +- Add `useSendTransaction` hook that allows developers to easily send a transaction. + ````tsx + const { sendTransaction } = useSendTransaction(); + // [...] + const transactionRequest = new ScriptTransactionRequest({}); // Or any other tx request + sendTransaction({ + address: 'fuel1zs7l8ajg0qgrak3jhhmq3xf3thd8stu535gj7p5fye2578yccjyqcgja3z', + transaction, + }); + ```, by [@helciofranco](https://github.com/helciofranco) (See [#92](https://github.com/FuelLabs/fuels-npm-packs/pull/92)) + ```` + ## 0.20.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 7c239da0..ed3db685 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@fuels/react", "description": "Interact with the Fuel Wallet Extension in React.", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "./src/index.ts", "exports": { diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 962874a3..c577e09c 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @fuels/playwright-utils +## 0.21.0 + +### Patch Changes + +- update wallet version to 0.21.0, by [@LuizAsFight](https://github.com/LuizAsFight) (See [#98](https://github.com/FuelLabs/fuels-npm-packs/pull/98)) + ## 0.20.0 ### Minor Changes diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index e7369cbb..938d720e 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/playwright-utils", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "main": "src/index.ts", "publishConfig": { diff --git a/packages/ts-config/CHANGELOG.md b/packages/ts-config/CHANGELOG.md index a88c2d52..b23dacd0 100644 --- a/packages/ts-config/CHANGELOG.md +++ b/packages/ts-config/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/ts-config +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/ts-config/package.json b/packages/ts-config/package.json index 5d53e2ba..0c5ad136 100644 --- a/packages/ts-config/package.json +++ b/packages/ts-config/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/ts-config", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "publishConfig": { "access": "public" diff --git a/packages/tsup-config/CHANGELOG.md b/packages/tsup-config/CHANGELOG.md index 7a2e91f3..02b16220 100644 --- a/packages/tsup-config/CHANGELOG.md +++ b/packages/tsup-config/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuels/tsup-config +## 0.21.0 + ## 0.20.0 ## 0.19.0 diff --git a/packages/tsup-config/package.json b/packages/tsup-config/package.json index 0615cd20..0d1bf9ef 100644 --- a/packages/tsup-config/package.json +++ b/packages/tsup-config/package.json @@ -1,6 +1,6 @@ { "name": "@fuels/tsup-config", - "version": "0.20.0", + "version": "0.21.0", "license": "Apache-2.0", "access": "public", "files": [