1232 Commits

Author SHA1 Message Date
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
Daishi Kato
6eff6e7eec
chore(deps): update dev dependencies (#2944) 2025-01-07 23:17:07 +09:00
Daishi Kato
4378abe0a4
fix(build): alias entries in rollup config (#2942) 2025-01-07 23:03:11 +09:00
Mordechai Dror
d2ac8205ec
feat(types): Make ExtractState public (#2935)
* make ExtractState public and move it to vanilla

* add docs on the matter

* Update vanilla.ts

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-01-07 22:57:18 +09:00
HoberMin
929b547054
docs(create-store.md): fix incorrect usage of create function in example (#2940) 2025-01-07 09:14:08 +09:00
HoberMin
efaf416de4
docs(create.md): fix state selector syntax in troubleshooting example (#2938) 2025-01-06 07:14:27 -05:00
David Maskasky
07b32d68ad
change prettier to fix:format (#2936)
* change prettier to fix:format

* empty commit

---------

Co-authored-by: daishi <daishi@axlight.com>
2025-01-06 12:36:20 +09:00
Wonsuk Choi
6759fcbb58
chore(.github/workflows): change 'node-version' to 'lts/*' in 'actions/setup-node' (#2933)
* chore(.github/workflows): update 'node-version' to 22 in 'actions/setup-node'

* Update .github/workflows/compressed-size-action.yml

Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>

* chore(.github/workflows): change 'node-version' to 'lts/*' in 'actions/setup-node'

* chore(.github/workflows): add single quote for consistency

* Update .github/workflows/test-multiple-versions.yml

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

---------

Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-01-04 11:27:41 +09:00
Wonsuk Choi
2e6d881309
chore(eslint): change 'dist' area in 'ignores', sort rules (#2924)
* chore(eslint): change 'dist' area in 'ignores'

* chore(eslint): sort by the order 'plugins' were added and by name

* Update eslint.config.mjs

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2024-12-31 09:17:25 +09:00
Wonsuk Choi
55a7d0a15b
chore(eslint): migrate to flat config and simplify (#2912)
* chore(package.json): update related eslint library, update script for eslint.config.js

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

* chore(eslint): migrate eslint configuration .eslintrc.json to eslint.config.js

* chore(examples/demo/package.json): update related eslint library, update script for eslint.config.js

* chore(examples/demo/pnpm-lock.yaml): reflect changes in package.json

* chore(examples/demo/eslint): migrate eslint configuration .eslintrc.cjs to eslint.config.js

* style(examples/demo/utils/copy-to-clipboard.js): add global comment for eslint

* chore(eslint): change file extension 'js' to 'mjs'

* chore(package.json): consise 'lint' scripts

* chore(examples/demo): remove eslint.config.js

* chore(examples/demo/package.json): remove libraries associated wiht eslint, update lint script

* chore(examples/demo/pnpm-lock.yaml): reflect changes in package.json

* chore(examples/demo): reflect 'eslint . --fix' changes based on main 'eslint.config.mjs'

* chore(examples/demo/package.json): add libraries associated wiht eslint, update lint script

* chore(examples/demo/pnpm-lock.yaml): reflect changes in package.json

* chore(examples/demo): add eslint.config.js

* chore(package.json): add mjs in 'eslint', 'test:lint' script

* Update eslint.config.mjs

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

* Update examples/demo/eslint.config.js

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

* chore(eslint): remove eslint configuration related to prettier

* chore(package.json): remove eslint-{config,plugin}-prettier

* chore(package.json): add tslib in devDependencies

* chore(eslint): remove duplicate shared-node-browser from globals

* chore(eslint): change 'eslint-import-resolver-alias' to 'eslint-import-resolver-typescript'

* chore(eslint): add 'import/no-named-as-default-member' off

* chore(eslint): remove duplicate rules, rearrange sequentially within a rule

* chore(eslint): remove the ‘off’ settings in ‘eslint-plugin-import’ to ensure clearer usage.

* chore(eslint): remove 'no-console' in rules

* chore(eslint): simplify settings 'import/resolver'

* chore(eslint): remove 'globals' config

* chore(rollup): add 'eslint-disable no-undef'

* chore(package.json): remove 'globals' library

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

* chore(eslint): add 'importPlugin.flatConfigs.recommended'

* chore(eslint): remove duplicate 'languageOptions'

* chore(eslint): remove 'import/extensions', 'import/parsers' to simplify

* chore(eslint): add 'examples/**' in 'ignores'

* chore(package.json): simplify 'lint' scripts

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2024-12-29 22:18:02 +09:00
Daryl Castro
ebf2b7ab16
feat: starter example (#2913)
* feat: add starter example

* fix: (starter-example) remove jotai reference

* fix: small refinements

* fix: format code

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2024-12-29 08:18:09 +09:00
Wonsuk Choi
5d92ad2767
chore(.github/workflows/test-multiple-versions.yml): improve workflow with removing duplicated configs (#2920) 2024-12-20 09:43:51 +09:00
Wonsuk Choi
a7f51283a2
chore(.github/workflows): improve workflow with removing duplicated configs (#2918) 2024-12-19 22:00:49 +09:00
Wonsuk Choi
51c00d22c3
docs(readme.md): change 'npm i' to 'npm install' (#2905) 2024-12-16 07:18:55 -05:00
Mohammad Bagher Abiyat
382eeaca0a
chore: pkg.pr.new (#2904)
* init

* add a new line

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2024-12-16 16:25:30 +09:00
Wonsuk Choi
52eae2b874
chore(.eslintrc.json): remove unnecessary elements from the plugins, add react/jsx-runtime (#2902) 2024-12-16 09:35:34 +09:00
Wonsuk Choi
459d789bf6
chore(.eslintrc.json): modifying eslint-plugin-react-compiler to react-compiler in the plugins array (#2899) 2024-12-14 11:09:42 +09:00
Wonsuk Choi
429cb7ec53
chore(.eslintrc.json): remove prettier in extends (#2898) 2024-12-13 22:39:28 +09:00