Skip to content

Commit

Permalink
Update zustand 3.7.2 → 4.5.0 (major) (#3002)
Browse files Browse the repository at this point in the history
* Update zustand to version 4.5.0

* feat: use create instead of createState

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Pavan Joshi <[email protected]>
Co-authored-by: pavanjoshi914 <[email protected]>
Co-authored-by: René Aaron <[email protected]>
  • Loading branch information
4 people authored Feb 7, 2024
1 parent 6b210d1 commit ee339b4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"tailwindcss": "^3.3.3",
"uuid": "^9.0.0",
"webextension-polyfill": "^0.10.0",
"zustand": "^3.7.2"
"zustand": "^4.5.0"
},
"devDependencies": {
"@commitlint/cli": "^17.8.0",
Expand Down
4 changes: 2 additions & 2 deletions src/extension/background-script/state.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import merge from "lodash.merge";
import pick from "lodash.pick";
import browser from "webextension-polyfill";
import createState from "zustand";
import { create } from "zustand";
import { decryptData } from "~/common/lib/crypto";
import { DEFAULT_SETTINGS } from "~/common/settings";
import { isManifestV3 } from "~/common/utils/mv3";
Expand Down Expand Up @@ -85,7 +85,7 @@ const getFreshState = () => ({
mv2Password: null,
});

const state = createState<State>((set, get) => ({
const state = create<State>((set, get) => ({
...getFreshState(),
password: async (password) => {
if (isManifestV3) {
Expand Down
15 changes: 11 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9737,6 +9737,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz#bc7e386bb12fd7898b58d1509df21d3c29ab3460"
integrity sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==

[email protected]:
version "1.2.0"
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a"
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==

util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
Expand Down Expand Up @@ -10308,7 +10313,9 @@ zip-stream@^4.1.0:
compress-commons "^4.1.0"
readable-stream "^3.6.0"

zustand@^3.7.2:
version "3.7.2"
resolved "https://registry.npmjs.org/zustand/-/zustand-3.7.2.tgz"
integrity sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==
zustand@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.0.tgz#141354af56f91de378aa6c4b930032ab338f3ef0"
integrity sha512-zlVFqS5TQ21nwijjhJlx4f9iGrXSL0o/+Dpy4txAP22miJ8Ti6c1Ol1RLNN98BMib83lmDH/2KmLwaNXpjrO1A==
dependencies:
use-sync-external-store "1.2.0"

0 comments on commit ee339b4

Please sign in to comment.