Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/clever-horses-turn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-pillows-return.md

This file was deleted.

8 changes: 8 additions & 0 deletions apps/wagmi-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# wagmi-inapp

## 0.0.27

### Patch Changes

- Updated dependencies [[`7f08161`](https://github.com/thirdweb-dev/js/commit/7f081618e16e7d5754a09780421e35b244186ce8), [`7f08161`](https://github.com/thirdweb-dev/js/commit/7f081618e16e7d5754a09780421e35b244186ce8)]:
- thirdweb@5.111.7
- @thirdweb-dev/wagmi-adapter@0.2.182

## 0.0.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/wagmi-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wagmi-inapp",
"private": true,
"version": "0.0.26",
"version": "0.0.27",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
7 changes: 7 additions & 0 deletions packages/nebula/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @thirdweb-dev/nebula

## 0.2.85

### Patch Changes

- Updated dependencies [[`7f08161`](https://github.com/thirdweb-dev/js/commit/7f081618e16e7d5754a09780421e35b244186ce8), [`7f08161`](https://github.com/thirdweb-dev/js/commit/7f081618e16e7d5754a09780421e35b244186ce8)]:
- thirdweb@5.111.7

## 0.2.84

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nebula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@
"type": "module",
"types": "./dist/types/exports/thirdweb.d.ts",
"typings": "./dist/types/exports/thirdweb.d.ts",
"version": "0.2.84"
"version": "0.2.85"
}
8 changes: 8 additions & 0 deletions packages/thirdweb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# thirdweb

## 5.111.7

### Patch Changes

- [#8373](https://github.com/thirdweb-dev/js/pull/8373) [`7f08161`](https://github.com/thirdweb-dev/js/commit/7f081618e16e7d5754a09780421e35b244186ce8) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Respect from address when simulating with Engine.serverWallet

- [#8373](https://github.com/thirdweb-dev/js/pull/8373) [`7f08161`](https://github.com/thirdweb-dev/js/commit/7f081618e16e7d5754a09780421e35b244186ce8) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Expose useInvalidateBalances() react hook

Comment on lines +3 to +10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify the new hook is exported from the public surface.

Ensure useInvalidateBalances is exported via packages/thirdweb/exports/** (and React exports if applicable), and that docs/examples compile.

Run from repo root:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# 1) Confirm the symbol exists in source
rg -nP --glob '!**/dist/**' '\buseInvalidateBalances\b' -C2

# 2) Ensure it’s exported from the public exports folder
fd exports -a packages/thirdweb | sed 's#^#DIR: #'
rg -nP '^export\s+\{[^}]*useInvalidateBalances[^}]*\}' packages/thirdweb/exports -C1 || true
rg -nP 'export\s+\*\s+from\s+.*useInvalidateBalances' packages/thirdweb/exports -C1 || true

# 3) If there is a React export surface, check there too
fd exports -a packages/thirdweb/react | sed 's#^#DIR: #'
rg -nP 'useInvalidateBalances' packages/thirdweb/react/exports -C1 || true

Length of output: 3205



---

🏁 Script executed:

```shell
#!/bin/bash
# View the complete implementation of useInvalidateBalances to verify TSDoc
cat packages/thirdweb/src/react/core/hooks/others/useInvalidateBalances.ts

Length of output: 549


TSDoc for useInvalidateBalances is incomplete and missing required custom annotation tags.

The hook is properly exported from packages/thirdweb/src/exports/react.ts and react.native.ts. However, the TSDoc at packages/thirdweb/src/react/core/hooks/others/useInvalidateBalances.ts is missing:

  • Custom annotation tags (@internal, @beta, @experimental)
  • Return type documentation (should document the returned function's signature: (params: { chainId?: number }) => void)

Update the JSDoc to include these elements per the codebase standards:

/**
 * Invalidate the balances for a given chainId. If no chainId is provided, invalidate all balances.
 * @example
 * ```ts
 * const invalidateBalances = useInvalidateBalances();
 * invalidateBalances({ chainId: 1 });
 * ```
 * @returns A function that invalidates cached wallet balances.
 */

Also add the appropriate custom annotation tag (e.g., @public, @beta, etc.) based on the release status.

## 5.111.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/thirdweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,5 +430,5 @@
}
},
"typings": "./dist/types/exports/thirdweb.d.ts",
"version": "5.111.6"
"version": "5.111.7"
}
2 changes: 2 additions & 0 deletions packages/wagmi-adapter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @thirdweb-dev/wagmi-adapter

## 0.2.182

## 0.2.181

## 0.2.180
Expand Down
2 changes: 1 addition & 1 deletion packages/wagmi-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
"type": "module",
"types": "./dist/types/exports/thirdweb.d.ts",
"typings": "./dist/types/exports/thirdweb.d.ts",
"version": "0.2.181"
"version": "0.2.182"
}
Loading