Skip to content

Commit

Permalink
feat: upgrade to zustand v5
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Oct 2, 2024
1 parent 731140f commit b40f852
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/raga-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"usehooks-ts": "3.1.0",
"wavesurfer.js": "^7.8.6",
"web-audio-beat-detector": "^8.2.14",
"zustand": "^4.5.5"
"zustand": "^5.0.0-rc.2"
},
"devDependencies": {
"@blueprintjs/node-build-scripts": "^9.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import classNames from "classnames";
import { unique } from "radash";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { Roarr as log } from "roarr";
import { useShallow } from "zustand/react/shallow";
import { useShallow } from "zustand/shallow";

import { TRACK_TABLE_HEADER_HEIGHT, TRACK_TABLE_ROW_HEIGHT } from "../../../common/constants";
import { ClientErrors } from "../../../common/errorMessages";
Expand Down
21 changes: 11 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ __metadata:
vite: "npm:^5.4.8"
wavesurfer.js: "npm:^7.8.6"
web-audio-beat-detector: "npm:^8.2.14"
zustand: "npm:^4.5.5"
zustand: "npm:^5.0.0-rc.2"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -12857,7 +12857,7 @@ __metadata:
languageName: node
linkType: hard

"use-sync-external-store@npm:1.2.2, use-sync-external-store@npm:^1.2.0":
"use-sync-external-store@npm:^1.2.0":
version: 1.2.2
resolution: "use-sync-external-store@npm:1.2.2"
peerDependencies:
Expand Down Expand Up @@ -13541,22 +13541,23 @@ __metadata:
languageName: node
linkType: hard

"zustand@npm:^4.5.5":
version: 4.5.5
resolution: "zustand@npm:4.5.5"
dependencies:
use-sync-external-store: "npm:1.2.2"
"zustand@npm:^5.0.0-rc.2":
version: 5.0.0-rc.2
resolution: "zustand@npm:5.0.0-rc.2"
peerDependencies:
"@types/react": ">=16.8"
"@types/react": ">=18.0.0"
immer: ">=9.0.6"
react: ">=16.8"
react: ">=18.0.0"
use-sync-external-store: ">=1.2.0"
peerDependenciesMeta:
"@types/react":
optional: true
immer:
optional: true
react:
optional: true
checksum: 10/481b8210187b69678074a1ca51107654c2379688e90407bfcb7961e0803a259742bfd0d77171c3f07e290896ad55fe9659b3863f30d34cb2572650ead1249f25
use-sync-external-store:
optional: true
checksum: 10/40292b1ef1e4bb40eaa08d29f8b11ef0fda364790cb14556f6a69263bab7b4f627dcc7ce5ec035918f495a69bab499bad889061cd7a09762972eb543810f3343
languageName: node
linkType: hard

0 comments on commit b40f852

Please sign in to comment.