1249 Commits

Author SHA1 Message Date
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
Rahul Singh
4d3a0176ca
fix: handle hardware acceleration disabled scenario in demo site (#3082)
* fix: handle hardware acceleration disabled scenario in demo site

This commit improves the demo site's error handling when hardware acceleration
is disabled in the browser. The changes include:

- Improved fallback UI with a more informative message

The fallback scene now shows:
- A static image of the Zustand ogimage

This fixes the issue where the demo site would break without any feedback
when hardware acceleration is disabled.

Testing:
- fallback works when hardware acceleration is disabled

* fixed code format

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-04-16 08:36:12 +09:00
Danilo Britto
21fc1b1522
docs: update createWithEqualityFn and useStoreWithEqualityFn docs (#3084)
* Update create-with-equality-fn.md
* Update use-store-with-equality-fn.md
2025-04-15 17:10:09 -05:00
Wonsuk Choi
473cfbf5ad
ci(.github/workflows): rename 'cr' to 'preview-release' (#3069) 2025-04-15 20:12:20 +09:00
Emmanuel Oduntan
534451ce25
docs: update tutorial (#3080)
replaced setSquares with onPlay in the handleClick function of the Board component
2025-04-11 16:23:46 -05:00
Wonsuk Choi
35f5cbff1f
ci(.github/workflows): rename 'compressed-size-action' to 'compressed-size' (#3070)
* ci(.github/workflows): rename 'compressed-size-action' to 'compressed-size'

* ci(.github/workflows/compressed-size.yml): rename the job name from 'compressed-size' to 'compressed_size'
2025-03-30 07:22:52 +09:00
jroitgrund
17e281fd75
docs: strict null check in createContext example (#2995)
* docs: prefer useState in createContext example

Both useState and useRef are correct in practice: useState will only render once since we never set the state after initializion, and useRef is safe to use since the component never needs to rerender when the ref value changes.

However, lint rules will flag useRef as a mistake, because we are passing a ref value to a child component, which in general can cause stale components since changing refs doesn't trigger re-renders.

* formatting

* explicit null check
2025-03-20 21:23:42 +09:00
Wonsuk Choi
6c7699cc16
docs(README.md): change build badge url (#3062) 2025-03-20 10:34:19 +09:00
Wonsuk Choi
45974540da
ci(.github/workflows): add 'test.yml' and rename job (#3059)
* ci(.github/workflows/lint-and-type.yml): add matrix strategy for parallel execution

* ci(.github/workflows/lint-and-type.yml): set 'fail-fast' to 'false'

* ci(.github/workflows): change jobs name

* ci(.github/workflows): add test.yml

* ci(.github/workflows/test.yml): add if condition

* ci(.github/workflows/test-old-typescript.yml): rename job to 'test_old_typescript'

* ci(.github/workflows/test.yml): remove matrix strategy

* ci(.github/workflows/test.yml): add comment in build script

* ci(.github/workflows/test.yml): change test script to sequentially
2025-03-19 10:52:22 +09:00
Mathilda Grace
90f8d592d4
Update Next.js guide to have explicitly nullable useRef type argument (#3053)
* Update nextjs.md with nullable `storeRef`

* Update other example in nextjs.md

* Apply suggestions from code review

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-03-15 08:19:59 +09:00
goosewobbler
3089fdc435
docs: remove zutron, add zubridge (#3047)
* docs: remove zutron, add zubridge

* docs: fix formatting
2025-03-12 21:54:00 +09:00
Shashikant Yadav
681036c319
Update introduction.md (#3045) 2025-03-12 06:28:00 -05:00
Wonsuk Choi
f85898fdbe
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)
* chore(eslint.config.mjs): update 'eslint-plugin-react-hooks' config to use 'recommended-latest'

* chore(package.json): update 'eslint-plugin-react-hooks' to latest version

* chore(pnpm-lock.yaml): relfect 'package.json'

* chore(package.json): update 'eslint-plugin-react-compiler' to latest version

* chore(pnpm-lock.yaml): reflect 'package.json'

* chore(eslint.config.mjs): update 'eslint-plugin-react-compiler' config
2025-03-11 22:01:22 +09:00
조우혁
9ba6a63799
docs: fix typos (#3042) 2025-03-09 19:10:53 -05:00
Koo Sangmo
a90981afb5
docs: update vitest config to match vitest docs (#3037)
* Update testing.md

in vite,
mergeConfig accepts only config in object form. If you have a config in callback form, you should call it before passing into mergeConfig.

You can use the defineConfig helper to merge a config in callback form with another config:

https://vite.dev/guide/api-javascript.html#mergeconfig

* Fix formatting

---------

Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
2025-03-03 07:46:37 -05:00
daishi
979ce7de92 disable blank issues 2025-03-01 08:19:40 +09:00
Wonsuk Choi
a1c7f1c20f
refactor(middleware): rename argument names like 'a', 'f' (#3032)
* refactor(middleware): rename argument name 'a' to 'arg' or 'args'

* refactor(middleware): rename argument name 'f' to 'fn'

* refactor(middleware/devtools.ts): rename argument name 'arg0' to 'args'
2025-02-28 17:53:30 +09:00
Wonsuk Choi
8ced2719ac
refactor(middleware/combine.ts): change exported function to 'function declaration' (#3030) 2025-02-27 20:43:35 +09:00
Gabriel Saunders
bc60812e33
docs: added zustand-namespaces to 3rd party (#3028) 2025-02-24 17:14:19 +09:00
Marcin Kulpa
90f45eb076
Chore/enhance prettier config (#3022)
* chore: enhance prettier config

* chore: fix prettier issues

* Update package.json

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-02-20 10:28:40 +09:00
Wonsuk Choi
6a6ef4ceaa
chore(package.json): update fix script to run sequentially (#3020)
* chore(package.json): update fix script to run sequentially

* chore(package.json): reorder the fix-related scripts
2025-02-19 11:24:17 +09:00
Marcin Kulpa
c9330941c8
chore: use github test reporter on CI and fix TS error (#3015) 2025-02-17 13:34:34 +09:00
Wonsuk Choi
ae32ca6bee
chore(package.json): upgrade pnpm from v8 to v9 (#3012)
* chore(package.json): update packageManager pnpm 8 to 9

* chore(pnpm-lock.yaml): reflect pnpm version 9
2025-02-16 21:14:54 +09:00
Gabriel Saunders
718c846c03
docs: added zustand-multi-persist to 3rd party (#3011) 2025-02-15 14:37:22 +09:00
Paul Schoen
abc51900c9
doc: Added use-post-message-ts to third party (#3008) 2025-02-13 12:08:07 +09:00
Loco
67371154ed
Update use-shallow.md (#3004) 2025-02-10 06:53:49 -05:00
Mohit Tokas
57608bbbdf
Update nextjs.md (#2998)
* Update nextjs.md

add mandatory argument for useRef

* Update testing.md

added initialValue for useRef
2025-02-08 20:49:57 +09:00
Andrii Oriekhov
c96cf83663
fix devtools example (#3002) 2025-02-08 08:28:39 +09:00
Daniil Chervyakov
c3287fa89d
docs: fix typo in type (#3001) 2025-02-07 12:54:54 +09:00
Wonsuk Choi
08ec9441b0
chore(package.json): reorder 'fix' scripts to run 'lint' before 'format' (#2997) 2025-02-06 10:56:06 +09:00
David Maskasky
7df4874200
add pnpm run fix script and update pr template (#2996) 2025-02-05 12:15:46 +09:00
Wonsuk Choi
49ee6313db
chore(*): replace 'pnpm <command>' with 'pnpm run <command>' (#2991) 2025-02-04 20:32:11 +09:00
이선재
65402b01d6
docs: Remove unnecessary void operator (#2994) 2025-02-04 19:37:36 +09:00
Wonsuk Choi
0beabe59bd
docs: update CONTRIBUTING.md (#2986)
* docs: update CONTRIBUTING.md

* docs(CONTRIBUTING.md): update documentation section including 'pnmdrs/docs'

* docs(CONTRIBUTING.md): add period

* docs(CONTRIBUTING.md): sepatate 'installing' and 'starting dev server'

* docs(CONTRIBUTING.md): unify the tone of the command part
2025-02-02 08:26:42 +09:00
sidahmedabdelillah
bc3e94e991
fixed error in persist example and added typescript (#2978)
* fixed error in persist example and added typescript

* chore: formatted code

---------

Co-authored-by: sidahmedabdelillah <s_bentegar@gmail.com>
2025-01-28 07:59:26 -05:00
Ali Mert Çakar
5a886cb6ec
docs(README.MD): fix redux middleware example (#2980) 2025-01-26 09:12:05 +09:00
daishi
4f64985b52 do not run test before publish 2025-01-23 22:18:26 +09:00
Danilo Britto
ef0c619fac
chore(docs): update tutorial tic tac toe (#2969)
* chore(docs): update tutorial tic tac toe

* chore(docs): update tutorial tic tac toe

* chore(docs): minor changes
2025-01-21 11:06:48 -05:00
SAMIR HEMBROM
37e1e3f193
docs(tutorial-tic-tac-toe.md): fix code to prevent infinite loops (#2963) 2025-01-16 22:45:58 +09:00
Ziad Beyens
adf084f85b
docs (#2958) 2025-01-15 18:33:23 +09:00
Wonsuk Choi
f42e670471
docs: rename readme file to uppercase (#2956)
* docs(*): rename file to upppercase

* chore(package.json): rename 'readme.md' to uppercase in 'copy' script

* docs(.github): rename PR template to lowercase
2025-01-15 12:30:34 +09:00
Wonsuk Choi
2fc9f8d9f7
chore(package.json): use double quotes in scripts (#2954)
* chore(package.json): use double quotes in scripts

* chore(package.json): add curly braces in 'patch-d-ts' script
2025-01-14 10:29:48 +09:00
Wonsuk Choi
58d4b08051
chore(rollup): clarify the callback argument 'e' to 'entry' (#2952) 2025-01-12 20:47:51 +09:00
Wonsuk Choi
fc104c2c14
chore(examples): remove 'pnpm-lock.yaml' (#2951)
* chore(examples): remove 'pnpm-lock.yaml'

* chore(.gitignore): add lock file patterns related with 'examples'

* Update package.json

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-01-12 07:47:07 +09:00
HoberMin
2fbb477508
docs(create-with-equality-fn.md): fix typos in event handler type definitions (#2947) 2025-01-08 07:49:47 -05:00
Wonsuk Choi
524a7b5d55
chore(rollup): migrate commonjs to esmodule (#2946)
* chore(rollup): migrate commonjs to esmodule

* chore(package.json): change commonjs to esmodule style in 'patch-d-ts' script
2025-01-08 07:43:04 +09:00
daishi
3f9127f4eb 5.0.3 v5.0.3 2025-01-07 23:20:43 +09:00