diff --git a/.changeset/breezy-birds-glow.md b/.changeset/breezy-birds-glow.md deleted file mode 100644 index bff6018ec7d..00000000000 --- a/.changeset/breezy-birds-glow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Fix: Correctly cleans the "Custom Auth" profile type label diff --git a/.changeset/cool-pugs-smoke.md b/.changeset/cool-pugs-smoke.md deleted file mode 100644 index 4c81e5f82cd..00000000000 --- a/.changeset/cool-pugs-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Fix ox hardset version diff --git a/.changeset/curly-cycles-hammer.md b/.changeset/curly-cycles-hammer.md deleted file mode 100644 index fc699a1631e..00000000000 --- a/.changeset/curly-cycles-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -More helpful error messages for enclave and userop errors diff --git a/.changeset/dirty-goats-invent.md b/.changeset/dirty-goats-invent.md deleted file mode 100644 index caa39d62b57..00000000000 --- a/.changeset/dirty-goats-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Fix connecting to cb wallet browser extension when already on the same chain diff --git a/.changeset/fair-plants-pretend.md b/.changeset/fair-plants-pretend.md deleted file mode 100644 index 21cadbdacf2..00000000000 --- a/.changeset/fair-plants-pretend.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -"thirdweb": minor ---- -The Connected-details button now shows USD value next to the token balance. - -### Breaking change to the AccountBalance -The formatFn props now takes in an object of type `AccountBalanceInfo`. The old `formatFn` was inflexible because it only allowed you to format the balance value. -With this new version, you have access to both the balance and symbol. -```tsx -import { AccountBalance, type AccountBalanceInfo } from "thirdweb/react"; - - `${props.symbol.toLowerCase()} ${props.balance}`} -/> -``` - -AccountBalance now supports showing the token balance in fiat value (only USD supported at the moment) -```tsx - -``` - -The `formatFn` prop now takes in an object of type `AccountBalanceInfo` and outputs a string -```tsx -import { AccountBalance, type AccountBalanceInfo } from "thirdweb/react"; - - `${props.balance}---${props.symbol.toLowerCase()}`} -/> - -// Result: 11.12---eth -``` - -### ConnectButton also supports displaying balance in fiat since it uses AccountBalance internally -```tsx - -``` - -### Export utils functions: -formatNumber: Round up a number to a certain decimal place -```tsx -import { formatNumber } from "thirdweb/utils"; -const value = formatNumber(12.1214141, 1); // 12.1 -``` - -shortenLargeNumber: Shorten the string for large value. Mainly used for the AccountBalance's `formatFn` -```tsx -import { shortenLargeNumber } from "thirdweb/utils"; -const numStr = shortenLargeNumber(1_000_000_000) -``` - -### Fix to ConnectButton -The social image of the Details button now display correctly for non-square image. - -### Massive test coverage improvement for the Connected-button components \ No newline at end of file diff --git a/.changeset/gold-gorillas-clap.md b/.changeset/gold-gorillas-clap.md deleted file mode 100644 index 9057ec8fd5c..00000000000 --- a/.changeset/gold-gorillas-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/service-utils": patch ---- - -Add modelName, sessionId, requestId to usage diff --git a/.changeset/lovely-spoons-attack.md b/.changeset/lovely-spoons-attack.md deleted file mode 100644 index 8331f53ca22..00000000000 --- a/.changeset/lovely-spoons-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Allow signature minting for LoyaltyCard contracts by passing the contractType diff --git a/.changeset/nervous-pots-smell.md b/.changeset/nervous-pots-smell.md deleted file mode 100644 index 564da2da1bc..00000000000 --- a/.changeset/nervous-pots-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -always include gas price information even if it's 0 for enclave wallets diff --git a/.changeset/serious-bananas-boil.md b/.changeset/serious-bananas-boil.md deleted file mode 100644 index 333184d2c6b..00000000000 --- a/.changeset/serious-bananas-boil.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"thirdweb": minor ---- - -Improve NFT Components -- Add custom resolver methods to NFTMedia, NFTName and NFTDescription -- Add caching for the NFT-info-getter method to improve performance -- Small fix to handle falsy values for NFT media src, name and description -- Improve test coverage by extracting internal logics and testing them \ No newline at end of file diff --git a/.changeset/strong-meals-remain.md b/.changeset/strong-meals-remain.md deleted file mode 100644 index 1fed99076ca..00000000000 --- a/.changeset/strong-meals-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Fix: Disconnect smart account when account signer is disconnected diff --git a/.changeset/tasty-emus-promise.md b/.changeset/tasty-emus-promise.md deleted file mode 100644 index 8c8ddbcf760..00000000000 --- a/.changeset/tasty-emus-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Fix add chain not triggering for certain wallets diff --git a/packages/service-utils/CHANGELOG.md b/packages/service-utils/CHANGELOG.md index c1829948076..2a8adebf5f7 100644 --- a/packages/service-utils/CHANGELOG.md +++ b/packages/service-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @thirdweb-dev/service-utils +## 0.4.52 + +### Patch Changes + +- [#5670](https://github.com/thirdweb-dev/js/pull/5670) [`e702490`](https://github.com/thirdweb-dev/js/commit/e702490f2ff5e2b7d6b28c06731af880583cf8bc) Thanks [@arcoraven](https://github.com/arcoraven)! - Add modelName, sessionId, requestId to usage + ## 0.4.51 ### Patch Changes diff --git a/packages/service-utils/package.json b/packages/service-utils/package.json index fb5c67103fc..84e8cd6647e 100644 --- a/packages/service-utils/package.json +++ b/packages/service-utils/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/service-utils", - "version": "0.4.51", + "version": "0.4.52", "type": "module", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index 751db353f33..7eaabe7056b 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,108 @@ # thirdweb +## 5.76.0 + +### Minor Changes + +- [#5533](https://github.com/thirdweb-dev/js/pull/5533) [`43fbcac`](https://github.com/thirdweb-dev/js/commit/43fbcac25e9383743f1f42af9da7fe1c1eae12b4) Thanks [@kien-ngo](https://github.com/kien-ngo)! - The Connected-details button now shows USD value next to the token balance. + + ### Breaking change to the AccountBalance + + The formatFn props now takes in an object of type `AccountBalanceInfo`. The old `formatFn` was inflexible because it only allowed you to format the balance value. + With this new version, you have access to both the balance and symbol. + + ```tsx + import { AccountBalance, type AccountBalanceInfo } from "thirdweb/react"; + + + `${props.symbol.toLowerCase()} ${props.balance}` + } + />; + ``` + + AccountBalance now supports showing the token balance in fiat value (only USD supported at the moment) + + ```tsx + + ``` + + The `formatFn` prop now takes in an object of type `AccountBalanceInfo` and outputs a string + + ```tsx + import { AccountBalance, type AccountBalanceInfo } from "thirdweb/react"; + + + `${props.balance}---${props.symbol.toLowerCase()}` + } + />; + + // Result: 11.12---eth + ``` + + ### ConnectButton also supports displaying balance in fiat since it uses AccountBalance internally + + ```tsx + + ``` + + ### Export utils functions: + + formatNumber: Round up a number to a certain decimal place + + ```tsx + import { formatNumber } from "thirdweb/utils"; + const value = formatNumber(12.1214141, 1); // 12.1 + ``` + + shortenLargeNumber: Shorten the string for large value. Mainly used for the AccountBalance's `formatFn` + + ```tsx + import { shortenLargeNumber } from "thirdweb/utils"; + const numStr = shortenLargeNumber(1_000_000_000); + ``` + + ### Fix to ConnectButton + + The social image of the Details button now display correctly for non-square image. + + ### Massive test coverage improvement for the Connected-button components + +- [#5655](https://github.com/thirdweb-dev/js/pull/5655) [`f69d1aa`](https://github.com/thirdweb-dev/js/commit/f69d1aad2d154a05ebc61a1d7545bd9e5aab17be) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Improve NFT Components + - Add custom resolver methods to NFTMedia, NFTName and NFTDescription + - Add caching for the NFT-info-getter method to improve performance + - Small fix to handle falsy values for NFT media src, name and description + - Improve test coverage by extracting internal logics and testing them + +### Patch Changes + +- [#5660](https://github.com/thirdweb-dev/js/pull/5660) [`d5a68c8`](https://github.com/thirdweb-dev/js/commit/d5a68c85111809bf39e57f5fb39b5458c1f3fe9a) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fix: Correctly cleans the "Custom Auth" profile type label + +- [#5672](https://github.com/thirdweb-dev/js/pull/5672) [`3b53732`](https://github.com/thirdweb-dev/js/commit/3b5373293202b8ff13cc1502bef3cc9dffaa5afa) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fix ox hardset version + +- [#5653](https://github.com/thirdweb-dev/js/pull/5653) [`df734ba`](https://github.com/thirdweb-dev/js/commit/df734baf97ec2e976fedb124ecfbac7119c0bc5f) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - More helpful error messages for enclave and userop errors + +- [#5656](https://github.com/thirdweb-dev/js/pull/5656) [`f680496`](https://github.com/thirdweb-dev/js/commit/f680496ccb1c639fab644fb54e9a962627cf3228) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix connecting to cb wallet browser extension when already on the same chain + +- [#5671](https://github.com/thirdweb-dev/js/pull/5671) [`dcd5822`](https://github.com/thirdweb-dev/js/commit/dcd5822ee707fa52f1c3e02c75992485f83922f0) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Allow signature minting for LoyaltyCard contracts by passing the contractType + +- [#5673](https://github.com/thirdweb-dev/js/pull/5673) [`c55f02f`](https://github.com/thirdweb-dev/js/commit/c55f02fa75a7f8959bbe69eac6cebfc7927ed865) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - always include gas price information even if it's 0 for enclave wallets + +- [#5617](https://github.com/thirdweb-dev/js/pull/5617) [`c48e0c9`](https://github.com/thirdweb-dev/js/commit/c48e0c9320830aa69c0e9567d985ed8a94eeaaf1) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Fix: Disconnect smart account when account signer is disconnected + +- [#5668](https://github.com/thirdweb-dev/js/pull/5668) [`485dcc6`](https://github.com/thirdweb-dev/js/commit/485dcc6020089a80d994c24882f389c24a0af039) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Fix add chain not triggering for certain wallets + ## 5.75.0 ### Minor Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 830ff8f7a07..c57e8496195 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.75.0", + "version": "5.76.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main"