Skip to content

Commit 758cbdd

Browse files
authored
Version Packages (#2743)
1 parent d65713a commit 758cbdd

35 files changed

+216
-110
lines changed

.changeset/cold-moose-exercise.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

.changeset/famous-readers-clap.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.changeset/fluffy-bobcats-brake.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/little-squids-matter.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/sync-chains.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

legacy_packages/auth/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @thirdweb-dev/auth
22

3+
## 4.1.59
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @thirdweb-dev/wallets@2.5.1
9+
310
## 4.1.58
411

512
### Patch Changes

legacy_packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/auth",
3-
"version": "4.1.58",
3+
"version": "4.1.59",
44
"main": "dist/thirdweb-dev-auth.cjs.js",
55
"module": "dist/thirdweb-dev-auth.esm.js",
66
"browser": {

legacy_packages/chains/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @thirdweb-dev/chains
22

3+
## 0.1.92
4+
5+
### Patch Changes
6+
7+
- [#2740](https://github.com/thirdweb-dev/js/pull/2740) [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Synced Chains Package
8+
39
## 0.1.91
410

511
### Patch Changes

legacy_packages/chains/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/chains",
3-
"version": "0.1.91",
3+
"version": "0.1.92",
44
"main": "dist/thirdweb-dev-chains.cjs.js",
55
"module": "dist/thirdweb-dev-chains.esm.js",
66
"exports": {

legacy_packages/cli/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# thirdweb
22

3+
## 0.13.67
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b)]:
8+
- @thirdweb-dev/sdk@4.0.61
9+
- @thirdweb-dev/chains@0.1.92
10+
- @thirdweb-dev/wallets@2.5.1
11+
- @thirdweb-dev/auth@4.1.59
12+
313
## 0.13.66
414

515
### Patch Changes

legacy_packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thirdweb-dev/cli",
33
"main": "dist/cli/index.js",
4-
"version": "0.13.66",
4+
"version": "0.13.67",
55
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/cli",
66
"author": "thirdweb eng <eng@thirdweb.com>",
77
"license": "Apache-2.0",

legacy_packages/react-core/CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,69 @@
11
# @thirdweb-dev/react-core
22

3+
## 4.6.0
4+
5+
### Minor Changes
6+
7+
- [#2579](https://github.com/thirdweb-dev/js/pull/2579) [`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - Adds "buy with crypto" Hooks, Here's an example of how you can use it to build a UI for Swapping tokens
8+
9+
```tsx
10+
function Component() {
11+
const signer = useSigner();
12+
// 1. get a quote for swapping tokens
13+
const quoteQuery = useBuyWithCryptoQuote(swapParams);
14+
15+
const [buyTxHash, setBuyTxHash] = useState<string | undefined>();
16+
const statusQuery = useBuyWithCryptoStatus(
17+
buyTxHash
18+
? {
19+
clientId: "YOUR_CLIENT_ID",
20+
transactionHash: buyTxHash,
21+
}
22+
: undefined,
23+
);
24+
25+
async function handleBuyWithCrypto() {
26+
if (!quoteQuery.data || !signer) {
27+
return;
28+
}
29+
30+
// 2. if approval is required
31+
if (quoteQuery.data.approval) {
32+
const approveTx = await signer.sendTransaction(
33+
quoteQuery.data.approval,
34+
);
35+
await approveTx.wait();
36+
}
37+
38+
// 3. send the transaction to buy crypto
39+
const buyTx = await signer.sendTransaction(
40+
quoteQuery.data.transactionRequest,
41+
);
42+
await buyTx.wait();
43+
44+
// set buyTx.transactionHash to poll the status of the swap transaction
45+
setBuyTxHash(buyTx.hash);
46+
}
47+
48+
// 4. wait for the status of the transaction
49+
if (statusQuery.data) {
50+
console.log("swap status:", statusQuery.data);
51+
}
52+
53+
return <button onClick={handleBuyWithCrypto}>Swap</button>;
54+
}
55+
```
56+
57+
For more information, check out the [pay documentation](https://portal.thirdweb.com/connect/pay/buy-with-crypto) for purchases with crypto
58+
59+
### Patch Changes
60+
61+
- Updated dependencies [[`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b)]:
62+
- @thirdweb-dev/sdk@4.0.61
63+
- @thirdweb-dev/chains@0.1.92
64+
- @thirdweb-dev/wallets@2.5.1
65+
- @thirdweb-dev/auth@4.1.59
66+
367
## 4.5.0
468

569
### Patch Changes

legacy_packages/react-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/react-core",
3-
"version": "4.5.0",
3+
"version": "4.6.0",
44
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-core",
55
"author": "thirdweb eng <eng@thirdweb.com>",
66
"license": "Apache-2.0",
Binary file not shown.

legacy_packages/react-native-compat/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @thirdweb-dev/react-native-compat
22

3+
## 0.7.32
4+
35
## 0.7.31
46

57
## 0.7.30

legacy_packages/react-native-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thirdweb-dev/react-native-compat",
33
"description": "Shims for Thirdweb in React Native Projects",
4-
"version": "0.7.31",
4+
"version": "0.7.32",
55
"author": "thirdweb eng <eng@thirdweb.com>",
66
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native-compat",
77
"license": "Apache-2.0",

legacy_packages/react-native/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @thirdweb-dev/react-native
22

3+
## 0.7.32
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b)]:
8+
- @thirdweb-dev/react-core@4.6.0
9+
- @thirdweb-dev/sdk@4.0.61
10+
- @thirdweb-dev/chains@0.1.92
11+
- @thirdweb-dev/wallets@2.5.1
12+
313
## 0.7.31
414

515
### Patch Changes

legacy_packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/react-native",
3-
"version": "0.7.31",
3+
"version": "0.7.32",
44
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react-native",
55
"author": "thirdweb eng <eng@thirdweb.com>",
66
"license": "Apache-2.0",
Binary file not shown.

legacy_packages/react/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @thirdweb-dev/react
22

3+
## 4.6.0
4+
5+
### Minor Changes
6+
7+
- [#2579](https://github.com/thirdweb-dev/js/pull/2579) [`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - Adds `Buy` button in `ConnectWallet` component's details Modal to allow users to Swap tokens. Setting `clientId` on `ThirdWebProvider` is required to enable this feature.
8+
9+
A new prop `hideBuyButton` is added to `ConnectWallet` component to hide the `Buy` button in the details Modal. By default, the `Buy` button is visible.
10+
11+
### Patch Changes
12+
13+
- Updated dependencies [[`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b)]:
14+
- @thirdweb-dev/react-core@4.6.0
15+
- @thirdweb-dev/sdk@4.0.61
16+
- @thirdweb-dev/chains@0.1.92
17+
- @thirdweb-dev/wallets@2.5.1
18+
319
## 4.5.0
420

521
### Minor Changes

legacy_packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/react",
3-
"version": "4.5.0",
3+
"version": "4.6.0",
44
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/react",
55
"author": "thirdweb eng <eng@thirdweb.com>",
66
"license": "Apache-2.0",
Binary file not shown.

legacy_packages/sdk/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# @thirdweb-dev/sdk
22

3+
## 4.0.61
4+
5+
### Patch Changes
6+
7+
- [#2579](https://github.com/thirdweb-dev/js/pull/2579) [`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - Adds "buy with crypto" APIs, Here's an example of how you can use it for swapping tokens
8+
9+
```ts
10+
// 1. get a quote for swapping tokens
11+
const quote = await getBuyWithCryptoQuote(quoteParams);
12+
13+
// 2. if approval is required, send the approval transaction
14+
if (quote.approval) {
15+
const approvalTx = await signer.sendTransaction(quote.approval);
16+
await approvalTx.wait();
17+
}
18+
19+
// 3. send the quoted transaction
20+
const buyTx = await signer.sendTransaction(quote.transactionRequest);
21+
await buyTx.wait();
22+
23+
// 4. keep polling the status of the quoted transaction until it * returns a success or failure status
24+
const status = await getBuyWithCryptoStatus({
25+
clientId: "YOUR_CLIENT_ID",
26+
transactionHash: transactionResult.hash,
27+
});
28+
```
29+
30+
For more information, check out the [pay documentation](https://portal.thirdweb.com/connect/pay/buy-with-crypto) for purchases with crypto
31+
32+
- Updated dependencies [[`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b)]:
33+
- thirdweb@5.4.2
34+
- @thirdweb-dev/chains@0.1.92
35+
336
## 4.0.60
437

538
### Patch Changes

legacy_packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/sdk",
3-
"version": "4.0.60",
3+
"version": "4.0.61",
44
"description": "The main thirdweb SDK.",
55
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/sdk",
66
"license": "Apache-2.0",
Binary file not shown.
Binary file not shown.

legacy_packages/wallets/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @thirdweb-dev/wallets
22

3+
## 2.5.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78), [`d65713a`](https://github.com/thirdweb-dev/js/commit/d65713a7af67bf20e5b88b72f5d43dfba9172b3b)]:
8+
- @thirdweb-dev/sdk@4.0.61
9+
- @thirdweb-dev/chains@0.1.92
10+
311
## 2.5.0
412

513
### Minor Changes

legacy_packages/wallets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/wallets",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"main": "dist/thirdweb-dev-wallets.cjs.js",
55
"module": "dist/thirdweb-dev-wallets.esm.js",
66
"browser": {
Binary file not shown.

packages/thirdweb/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# thirdweb
22

3+
## 5.4.2
4+
5+
### Patch Changes
6+
7+
- [#2579](https://github.com/thirdweb-dev/js/pull/2579) [`d836889`](https://github.com/thirdweb-dev/js/commit/d836889f464a4fc9617839f30e2cc780b3bcca78) Thanks [@ElasticBottle](https://github.com/ElasticBottle)! - Export `resolvePromisedValue` from `thirdweb/utils`
8+
39
## 5.4.1
410

511
### Patch Changes

0 commit comments

Comments
 (0)