Skip to content

Commit

Permalink
ci(changesets): versioning packages (#86)
Browse files Browse the repository at this point in the history
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
fuel-service-user and github-actions[bot] authored Jun 4, 2024
1 parent 30f37c8 commit 985d66c
Show file tree
Hide file tree
Showing 29 changed files with 76 additions and 78 deletions.
6 changes: 0 additions & 6 deletions .changeset/brave-kiwis-punch.md

This file was deleted.

18 changes: 0 additions & 18 deletions .changeset/good-turkeys-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rotten-rabbits-dream.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/selfish-crabs-unite.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/small-birds-shop.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/strange-readers-tease.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yellow-pears-deliver.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/assets/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuels/assets",
"version": "0.20.0",
"version": "0.21.0",
"license": "Apache-2.0",
"main": "src/index.ts",
"publishConfig": {
Expand Down
2 changes: 2 additions & 0 deletions packages/changeset/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/changeset/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/jest/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuels/jest",
"version": "0.20.0",
"version": "0.21.0",
"license": "Apache-2.0",
"main": "./src/index.ts",
"exports": {
Expand Down
2 changes: 2 additions & 0 deletions packages/local-storage/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/local-storage/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions packages/prettier-config/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/react-xstore/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/react-xstore/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
41 changes: 41 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions packages/test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions packages/ts-config/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuels/ts-config",
"version": "0.20.0",
"version": "0.21.0",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 2 additions & 0 deletions packages/tsup-config/CHANGELOG.md
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
Expand Down
2 changes: 1 addition & 1 deletion packages/tsup-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuels/tsup-config",
"version": "0.20.0",
"version": "0.21.0",
"license": "Apache-2.0",
"access": "public",
"files": [
Expand Down

0 comments on commit 985d66c

Please sign in to comment.