-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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](#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](#94)) ```` - Adds mutation callbacks, such as `onError` and `onSuccess`, by [@helciofranco](https://github.com/helciofranco) (See [#97](#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](#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](#92)) ```` ## @fuels/playwright-utils@0.21.0 ### Patch Changes - update wallet version to 0.21.0, by [@LuizAsFight](https://github.com/LuizAsFight) (See [#98](#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] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
30f37c8
commit 985d66c
Showing
29 changed files
with
76 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/assets | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/changeset | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/eslint-config | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/jest | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/local-storage | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/prettier-config | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/react-xstore | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/ts-config | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @fuels/tsup-config | ||
|
||
## 0.21.0 | ||
|
||
## 0.20.0 | ||
|
||
## 0.19.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters