Skip to content

Commit

Permalink
bump deps and remove v5 support (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour authored Oct 3, 2024
1 parent 98e763b commit 6cced1c
Show file tree
Hide file tree
Showing 11 changed files with 997 additions and 1,002 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node-version: [16.x, 20.x]
zustand: [latest, 4.2.0, 4.0.0, next]
zustand: [4.2.0, 4.0.0]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"tsup",
"zundo",
"zustand"
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Try a live [demo](https://codesandbox.io/s/currying-flower-2dom9?file=/src/App.t
npm i zustand zundo
```

> zustand v4.2.0 or higher is required for TS usage. v4.0.0 or higher is required for JS usage. zundo v2 works with zustand v5.0.0 or higher.
> zustand v4.2.0 or higher is required for TS usage. v4.0.0 or higher is required for JS usage.
> Node 16 or higher is required.
## Background
Expand Down
10 changes: 5 additions & 5 deletions examples/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lodash.merge": "4.6.2",
"lodash.throttle": "4.1.1",
"microdiff": "1.4.0",
"next": "14.2.3",
"next": "14.2.14",
"react": "18.3.1",
"react-dom": "18.3.1",
"zundo": "workspace:*",
Expand All @@ -22,9 +22,9 @@
"devDependencies": {
"@types/lodash.merge": "4.6.9",
"@types/lodash.throttle": "4.1.9",
"@types/node": "20.13.0",
"@types/react": "18.3.3",
"eslint": "9.4.0",
"typescript": "5.4.5"
"@types/node": "22.7.4",
"@types/react": "18.3.11",
"eslint": "9.11.1",
"typescript": "5.6.2"
}
}
20 changes: 10 additions & 10 deletions examples/web/pages/options.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { temporal, TemporalState } from "zundo";
import { create } from "zustand";
import { useStoreWithEqualityFn } from "zustand/traditional";
import deepEqual from "fast-deep-equal";
import throttle from "just-throttle";
import "./styles.css";
import { temporal, type TemporalState } from 'zundo';
import { create } from 'zustand';
import { useStoreWithEqualityFn } from 'zustand/traditional';
import deepEqual from 'fast-deep-equal';
import throttle from 'just-throttle';
import './styles.css';

interface MyState {
bears: number;
Expand All @@ -13,7 +13,7 @@ interface MyState {
incrementUntrackedValue: () => void;
}

type HistoryTrackedState = Omit<MyState, "untrackedValue">;
type HistoryTrackedState = Omit<MyState, 'untrackedValue'>;

const useMyStore = create<MyState>()(
temporal(
Expand Down Expand Up @@ -54,13 +54,13 @@ const App = () => {
return (
<div>
<h1>
{" "}
{' '}
<span role="img" aria-label="bear">
🐻
</span>{" "}
</span>{' '}
<span role="img" aria-label="recycle">
♻️
</span>{" "}
</span>{' '}
Zundo!
</h1>
<h2>
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
"test:ci": "pnpm --filter tests test:ci"
},
"devDependencies": {
"prettier": "3.2.5",
"tsup": "8.0.2",
"typescript": "5.4.5",
"prettier": "3.3.3",
"tsup": "8.3.0",
"typescript": "5.6.2",
"zustand": "4.5.2"
},
"peerDependencies": {
"zustand": "^4.3.0 || ^5.0.0"
"zustand": "^4.3.0"
},
"peerDependenciesMeta": {
"zustand": {
Expand Down
Loading

0 comments on commit 6cced1c

Please sign in to comment.