1245 Commits

Author SHA1 Message Date
Daishi Kato
2cc19881fa
fix(shallow): undefined value (#3205)
* add failing test

* check with .has
2025-08-20 07:52:06 +09:00
Daishi Kato
c4085a4ff0
chore: strict unused check (#3215) 2025-08-19 09:26:59 +09:00
SungHyun Kim
f831bc8d71
fix broken links in the toc of create-store.md (#3207) 2025-08-09 10:04:58 -05:00
daishi
463c9e3ea6 5.0.7 v5.0.7 2025-07-31 09:12:34 +09:00
Daishi Kato
30e36798a4
chore: udpate dev dependencies (#3194) 2025-07-31 09:11:53 +09:00
Daishi Kato
5aa923e8c3
fix(react): useCallback for getSnapshot (#3192) 2025-07-31 09:06:30 +09:00
Danilo Britto
41fed0fe6f
docs: update how to reset state guide (#3187) 2025-07-20 09:26:07 -05:00
Danilo Britto
aba78319bb
Update use-store-with-equality-fn.md (#3185) 2025-07-19 06:45:34 -05:00
Malte Hecht
2879505e39
fix: broken link to ssr and hydration (#3183) 2025-07-16 09:18:27 -05:00
Danilo Britto
1b7eb6907c
docs: update badge (#3181) 2025-07-14 11:11:46 -05:00
Danilo Britto
84b112e4a2
docs: update redux api docs (#3180)
* Update redux.md

* Update redux.md
2025-07-14 10:39:56 -05:00
Danilo Britto
4ad3977b38
Update redux.md (#3176) 2025-07-13 02:32:01 -05:00
soyboi
56909808fa
docs: add currying in for createStore (#3171) 2025-07-09 08:51:58 -05:00
Henry8192
149c286342
remove redundant dash in persist parameters (#3170) 2025-07-08 08:07:57 +09:00
Steven Wexler
c61999bacd
docs: fix getBoth return type (#3167) 2025-07-02 19:54:08 -05:00
Gabriel Saunders
747e97f334
Zustorm (#3166)
* docs: added zustorm to 3rd party

* docs: update zustorm description
2025-07-02 23:59:37 +09:00
Wonsuk Choi
295bf970a3
test(*): add 'expect' with 'toBeInTheDocument' (#3162)
* test(*): add 'expect' with 'toBeInTheDocument'

* chore(eslint.config): enable 'vitest/expect-expect' rule
2025-06-29 11:49:16 +09:00
Noritaka Kobayashi
73b91d3700
refactor: remove unused import in example & fix typo in tests (#3161) 2025-06-28 22:44:50 +09:00
daishi
b5845a9daa 5.0.6 v5.0.6 2025-06-26 23:09:15 +09:00
Daishi Kato
4a5e814a0e
chore: update dev dependencies (#3159)
* chore: update dev dependencies

* downgrade plugin-typescript
2025-06-26 23:07:40 +09:00
Wonsuk Choi
e639587da1
docs(README): remove 'omit' in 'Overwriting state' section (#3160)
* docs(README): replace 'lodash' with 'es-toolkit' in 'Overwriting state' section

* docs(README): change 'es-tooklit/compat' to 'es-toolkit/compat/omit'

* docs(README): replace 'es-toolkit' with custom 'omit' implementation

* docs(README): remove 'omit' util function

* docs(README): simplify 'deleteTuna'
2025-06-25 11:17:14 +09:00
Wonsuk Choi
5bc717b663
refactor(middleware): replace export * with explicit named and type exports (#3151)
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-06-23 12:41:54 +09:00
Vladimir Chirikov
ca08a5ebf9
perf(devtools): avoid inferring action type when explicit action name is provided (#3147)
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-06-23 12:17:41 +09:00
Wonsuk Choi
a6143e0f23
test(shallow): update 'shallow' and 'useShallow' imports to use 'zustand/shallow' (#3157) 2025-06-19 18:44:01 +09:00
Daishi Kato
3d9ecb1a10
fix links to the demo and the docs (#3148) 2025-06-09 08:41:52 +09:00
clonemycode
9d58820318
chore: fix some typos in comment (#3139)
Signed-off-by: clonemycode <clonecode@aliyun.com>
2025-06-03 10:05:54 +09:00
csark0812
c3dceea0e1
Add zustand-expo-devtools to third-party middleware list (#3135)
* Add zustand-expo-devtools to third-party middleware list

Wrote a dev plugin that allows for full connection between zustand state and redux devtools!

* ordered alphabetically
2025-05-25 22:49:21 +09:00
Wonsuk Choi
a03acc3887
test(vanilla/subscribe): add test for covering fireImmediately option in 'subscribeWithSelector' (#3131) 2025-05-22 12:58:34 +09:00
daishi
01749b01c7 5.0.5 v5.0.5 2025-05-21 21:05:14 +09:00
Daishi Kato
ceb9744ac7
chore: update dev dependencies (#3128) 2025-05-21 20:47:28 +09:00
Wonsuk Choi
ad32cdf7a0
test(vanilla/basic): add test for 'getInitialState' (#3130)
* test(vanilla/basic): add test for 'getInitialState'

* Update tests/vanilla/basic.test.ts

* Update tests/vanilla/basic.test.ts

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-21 20:22:09 +09:00
Ali Mert Çakar
670b60e19a
feat(devtool): inferred action type (#2987)
* feat(devtools middleware) add automatic action name finding

* docs(readme) add inferActionName example

* feat: update readmes

* feat: update devtools middleware and tests

* feat: remove inferActionName

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
2025-05-21 20:12:14 +09:00
Wonsuk Choi
6953c29dc5
test(vanilla/shallow): add test for pure iterable with different values returns false (#3129) 2025-05-21 11:41:09 +09:00
2yunseong
5df8085b0b
refactor: remove unnessary type assertion (#3113)
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-21 09:52:37 +09:00
Hong-Kuan Wu
b4177b3172
feat: add devtools.cleanup() method (#3111)
* feat(devtools): add cleanup method

* docs(devtools): add cleanup section

* reduce lines

* test(devtools): test if the connection removed after cleanup

---------

Co-authored-by: daishi <daishi@axlight.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-21 09:49:59 +09:00
Danilo Britto
a56a3e4bde
feat(vanilla): update shallow compare function and tests (#3108)
* feat(vanilla): update shallow compare function and tests

* prefer Object.getPrototypeOf

* docs: update shallow docs

* feat: minor fixes

---------

Co-authored-by: daishi <daishi@axlight.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-21 09:46:37 +09:00
Wonsuk Choi
37878da019
chore(eslint): remove overrides for .js files (#3126) 2025-05-20 15:29:27 +09:00
Wonsuk Choi
9a58ca9c95
chore(eslint): update to 'eslint-plugin-react-hooks@6.0.0-rc.1', remove 'eslint-plugin-react-compiler' (#3122) 2025-05-17 14:13:12 +09:00
Danilo Britto
14feb61c7e
Update use-store-with-equality-fn.md (#3119) 2025-05-12 16:54:39 -05:00
wingedotter5
2fcfc30530
Fix typo (#3115) 2025-05-10 10:26:31 -05:00
Wonsuk Choi
028909eafa
chore(eslint): enforce file extension usage for internal modules, ignore external packages (#3116)
* chore(eslint): enforce file extension usage for internal modules, ignore external packages

* chore(*): apply the updated ESLint rules to the relevant files
2025-05-10 22:45:58 +09:00
Danilo Britto
36627acb60
Update persisting-store-data.md (#3110) 2025-05-06 14:32:23 -05:00
Josh Schneider
95bce2f74c
Fix small issue in README.md (#3106) 2025-05-03 12:58:25 -05:00
daishi
312a7076f9 5.0.4 v5.0.4 2025-05-02 08:41:08 +09:00
Daishi Kato
2a53f2ec7e
chore(deps): update dev dependencies (#3104) 2025-05-02 08:32:49 +09:00
Daishi Kato
850777bbfc
react-native condition for CJS (#3087) 2025-05-02 08:20:58 +09:00
shinhyogeun
c72ac92764
remove duplicated type declaration (#2982)
Co-authored-by: kenny-io <kenny.io@kakaoenterprise.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-02 08:15:12 +09:00
Danilo Britto
48985a4cc2
docs: general docs improvements (#3102)
* feat: general docs improvements

* Update docs/guides/testing.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-29 11:15:42 -05:00
Luke
bd58db0faf
docs: fix the usage error of setPosition (#3100) 2025-04-28 23:06:03 -05:00
Viktor Persson
67673947d6
docs: Prefer const to let (auto generating selectors) (#3094) 2025-04-25 20:25:37 +09:00