-
Notifications
You must be signed in to change notification settings - Fork 57
chore(walletui): update dependencies #1564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,43 +10,43 @@ | |
| "clean-dist": "rm -rf dist && rm -f tsconfig.tsbuildinfo" | ||
| }, | ||
| "dependencies": { | ||
| "@emotion/react": "^11.10.6", | ||
| "@emotion/styled": "^11.10.6", | ||
| "@mui/icons-material": "^5.11.11", | ||
| "@mui/material": "^5.11.14", | ||
| "@mui/x-data-grid": "^6.0.2", | ||
| "@reown/walletkit": "^1.2.8", | ||
| "@tanstack/react-query": "^4.33.0", | ||
| "@tanstack/react-query-devtools": "^4.33.0", | ||
| "@emotion/react": "^11.14.0", | ||
| "@emotion/styled": "^11.14.1", | ||
| "@mui/icons-material": "^5.18.0", | ||
| "@mui/material": "^5.18.0", | ||
| "@mui/x-data-grid": "^6.20.4", | ||
| "@reown/walletkit": "^1.2.10", | ||
| "@tanstack/react-query": "^5.85.7", | ||
| "@tanstack/react-query-devtools": "^5.85.7", | ||
| "@tari-project/tari-extension-common": "^0.0.14", | ||
| "@tari-project/tari-extension-query-builder": "^0.0.15", | ||
| "@tari-project/tari-permissions": "0.10.1", | ||
| "@tari-project/typescript-bindings": "link:../../../bindings", | ||
| "@tari-project/wallet_jrpc_client": "workspace:*", | ||
| "@walletconnect/core": "^2.21.4", | ||
| "@walletconnect/utils": "^2.21.4", | ||
| "@walletconnect/core": "^2.21.8", | ||
| "@walletconnect/utils": "^2.21.8", | ||
| "buffer": "^6.0.3", | ||
| "cbor2": "^2.0.1", | ||
| "file-saver": "^2.0.5", | ||
| "framer-motion": "^12.23.12", | ||
| "jwt-decode": "^4.0.0", | ||
| "prism-react-renderer": "^2.4.1", | ||
| "react": "^19.0.0", | ||
| "react-dom": "^19.0.0", | ||
| "react-icons": "^4.9.0", | ||
| "react-router-dom": "^6.9.0", | ||
| "use-file-picker": "^2.1.2", | ||
| "react": "^19.1.1", | ||
| "react-dom": "^19.1.1", | ||
| "react-icons": "^4.12.0", | ||
| "react-router-dom": "^6.30.1", | ||
| "use-file-picker": "^2.1.4", | ||
| "use-react-router-breadcrumbs": "^4.0.1", | ||
| "zustand": "^5.0.3", | ||
| "zustand": "^5.0.8", | ||
| "zustand-persist": "^0.4.0" | ||
|
Comment on lines
+40
to
41
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent ❓ Verification inconclusiveReassess ‘zustand-persist’ with Zustand v5. Zustand v5 includes behavioral changes in persist and drops older patterns. The third‑party “zustand-persist” package is effectively unmaintained (last release years ago), so compatibility is uncertain. Prefer the official persist from zustand/middleware (or purpose‑built alternatives) to avoid subtle hydration bugs. (github.com, socket.dev, security.snyk.io) If you’re ready to switch, I can propose a minimal diff replacing “zustand-persist” with Replace import { create } from 'zustand'
import { persist, createJSONStorage } from 'zustand/middleware'This leverages the built-in v5 persist middleware and storage helpers (zustand.docs.pmnd.rs). Let me know if you’d like a minimal diff. 🤖 Prompt for AI Agents |
||
| }, | ||
| "devDependencies": { | ||
| "@types/file-saver": "^2.0.7", | ||
| "@types/node": "catalog:", | ||
| "@types/react": "^18.0.28", | ||
| "@types/react-dom": "^18.0.11", | ||
| "@vitejs/plugin-react-swc": "^3.8.0", | ||
| "prettier": "^3.3.2", | ||
| "@types/react": "^18.3.24", | ||
| "@types/react-dom": "^18.3.7", | ||
| "@vitejs/plugin-react-swc": "^3.11.0", | ||
| "prettier": "^3.6.2", | ||
| "typescript": "catalog:", | ||
| "vite": "catalog:" | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,8 @@ | |
| // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
| // USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
|
||
| import Loading from "./Loading"; | ||
| import Error from "./Error"; | ||
| import Loading from "@components/Loading"; | ||
| import Error from "@components/Error"; | ||
|
Comment on lines
+23
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Rename imported Error to avoid shadowing the global Error Biome flags this as an error. Rename the import and usage to prevent confusion and lint failures. -import Loading from "@components/Loading";
-import Error from "@components/Error";
+import Loading from "@components/Loading";
+import ErrorView from "@components/Error";
@@
- if (isError) {
- return <Error message={errorMessage} />;
- }
+ if (isError) {
+ return <ErrorView message={errorMessage} />;
+ }Also applies to: 37-39 🧰 Tools🪛 Biome (2.1.2)[error] 24-24: Do not shadow the global "Error" property. Consider renaming this variable. It's easy to confuse the origin of variables when they're named after a known global. (lint/suspicious/noShadowRestrictedNames) 🤖 Prompt for AI Agents |
||
|
|
||
| interface FetchStatusCheckProps { | ||
| errorMessage: string; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align React types with React 19 (likely TS errors if left at 18.x).
You’re on react/react-dom 19.1.1 but still using @types/react* 18.x, which often causes duplicate/conflicting types and broken refs/JSX typings in TS. Update both to 19.x to match React 19. (npmjs.com, react.dev)
Apply this diff:
Also applies to: 46-47
🤖 Prompt for AI Agents