Skip to content

Commit

Permalink
[Drop] Change: update zustand (#55)
Browse files Browse the repository at this point in the history
* change: update zustand

* change: import zustand shallow from zustand/shallow

* change: replace zustand create fucn by createWithEqualityFn func

* change: use create instead of createWithEqualityFn

* Create clever-feet-promise.md

---------

Co-authored-by: Julian Benegas <[email protected]>
  • Loading branch information
ignmandagaran and julianbenegas committed Sep 7, 2023
1 parent 0716d3b commit b355057
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-feet-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bsmnt/drop": patch
---

[Drop] Change: update zustand
2 changes: 1 addition & 1 deletion packages/drop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-dom": ">=16"
},
"dependencies": {
"zustand": "^4.1.2"
"zustand": "^4.4.1"
},
"devDependencies": {
"@types/react": "^18.0.17",
Expand Down
4 changes: 2 additions & 2 deletions packages/drop/src/countdown/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import create, { StoreApi, UseBoundStore } from "zustand";
import shallow from "zustand/shallow";
import { create, StoreApi, UseBoundStore } from "zustand";
import { shallow } from "zustand/shallow";

import { calculateCountdownState } from "./calculate-countdown-state";
import { dateOrTimestampToTimestamp, getFormattedTimeDelta } from "../utils";
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5091,9 +5091,9 @@ zod@^3.14.4:
resolved "https://registry.npmjs.org/zod/-/zod-3.19.1.tgz"
integrity sha512-LYjZsEDhCdYET9ikFu6dVPGp2YH9DegXjdJToSzD9rO6fy4qiRYFoyEYwps88OseJlPyl2NOe2iJuhEhL7IpEA==

zustand@^4.1.2:
version "4.1.2"
resolved "https://registry.npmjs.org/zustand/-/zustand-4.1.2.tgz"
integrity sha512-gcRaKchcxFPbImrBb/BKgujOhHhik9YhVpIeP87ETT7uokEe2Szu7KkuZ9ghjtD+/KKkcrRNktR2AiLXPIbKIQ==
zustand@^4.4.1:
version "4.4.1"
resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.4.1.tgz#0cd3a3e4756f21811bd956418fdc686877e8b3b0"
integrity sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==
dependencies:
use-sync-external-store "1.2.0"

1 comment on commit b355057

@vercel
Copy link

@vercel vercel bot commented on b355057 Sep 7, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

commerce-toolkit-nextjs-shopify – ./examples/nextjs-shopify

commerce-toolkit-nextjs-shopify-git-main-basement.vercel.app
commerce-toolkit-nextjs-shopify.vercel.app
commerce-toolkit-nextjs-shopify-basement.vercel.app

Please sign in to comment.