M. Skrzypek
f548963992
fix: do not use optional catch binding syntax ( #1431 )
2022-12-05 21:28:14 +09:00
Daishi Kato
7f79df4b04
Update 3rd-party-libraries.md ( #1465 )
2022-12-05 12:12:27 +09:00
hicucu
47b2b64e52
fix(docs): Fix 'State' declaration position ( #1438 )
...
* Fix 'State' declaration position
* Update auto-generating-selectors.md
Update pr with review
* Update auto-generating-selectors.md
2022-12-05 12:02:52 +09:00
Eugene Chybisov
bf9d0922fe
fix(docs): fix to -> do typo ( #1453 )
2022-11-30 08:06:36 +09:00
Ron Jones
2b29d73684
addAFish should ref 'fishes', not 'fish' ( #1428 )
2022-11-15 09:32:30 +09:00
Christian van der Loo
d81ac58b15
Update 3rd-party-libraries.md ( #1426 )
...
Adds my zustand-computed library, which is updated to match the latest API version and supports the proper typing like detailed in your examples.
2022-11-12 15:09:16 +09:00
Joel Mathew Koshy
975185011e
bumped zustand to latest version (4.1.4) in auto gen selectors doc ( #1412 )
2022-11-06 07:43:26 +09:00
Joel Mathew Koshy
a1d228767f
Docs: added section in slices-pattern explaining how to affect multiple stores in one function ( #1404 )
...
* added section in slices-pattern.md explaining how to have a function change multiple stores together
* change in title and subtext for better understanding
2022-11-05 16:57:19 +09:00
Daishi Kato
8329bbfa5f
chore: add issue template ( #1411 )
2022-11-05 13:02:34 +09:00
Devansh Jethmalani
ea8415b98d
docs(typescript): highlight the extra parenthesis for create ( #1410 )
...
* docs(typescript): highlight the extra parenthesis for `create`
* fix typo
2022-11-05 12:58:21 +09:00
Will McBride
d3596a6a73
Persisting store doc href hash fixes and tweaks ( #1398 )
...
* chore(docs): Fix casing in Persist middleware docs
* docs: Remove unhelpful 'see below' and make other more helpful
* docs: Remove link incompatible between GH & Docs site.
2022-11-03 21:58:59 +09:00
daishi
c2248fd56a
4.1.4
v4.1.4
2022-10-31 21:48:38 +09:00
Daishi Kato
b81adbb6a3
chore(deps): update dev dependencies ( #1402 )
2022-10-31 21:48:14 +09:00
Daishi Kato
20ee6e9633
fix(build): no import.meta for "module" condition ( #1393 )
...
* fix(build): no import.meta for "module" condition
* be consistent with others
2022-10-31 21:39:57 +09:00
Daishi Kato
296bb4bc96
fix(build): use *.d.mts for esm ('import' condition only) ( #1387 )
...
* d.mts for esm
* copy instead of rename
* limit for relative paths
2022-10-31 21:39:35 +09:00
guenyoo
ee8666f008
Update recipes.mdx: Using subscribe with selector ( #1388 )
...
Examples used from README and are now copy/pasteable without throwing errors in sandbox
2022-10-27 23:36:03 +09:00
daishi
d6f01e7aa4
4.1.3
v4.1.3
2022-10-23 10:25:26 +09:00
Daishi Kato
d81881d40d
chore(deps): update dev dependencies ( #1379 )
...
* update dev dependencies
* fix rollup config
* fix interop option
* fix interop option again
* remove output.exports
* remove interop
* remove output.exports from umd too
2022-10-23 10:21:12 +09:00
Devansh Jethmalani
ca059788d3
fix(types): fix StateCreator subtyping ( #1373 )
...
* fix(types): fix `StateCreator` subtyping
* prefer import type
Co-authored-by: daishi <daishi@axlight.com>
2022-10-23 08:55:31 +09:00
Devansh Jethmalani
b36f29af30
fix(types): assume getState and setState will always exist on the store ( #1371 )
...
* fix(types): assume `getState` and `setState` will always exist on the store
* run prettier
* make fallback in `Get` required
2022-10-23 07:42:55 +09:00
Devansh Jethmalani
d27ea94884
Update slices pattern links in readme and flux guide ( #1353 )
...
* readme: link slices pattern guide
* docs: update slices pattern link in flux guide
2022-10-14 21:22:39 +09:00
Srinivasan Mohan
cf0bef6d5e
spelling correction ( #1357 )
2022-10-12 20:51:33 +09:00
J7N
84d1dfa30d
docs: Remove redundant words. ( #1352 )
...
docs: Remove redundant words.
2022-10-09 23:05:44 +09:00
daishi
509175c0b8
4.1.2
v4.1.2
2022-10-09 14:38:36 +09:00
Daishi Kato
a576b3c968
chore(deps): update dev dependencies ( #1351 )
...
* chore(deps): update dev dependencies
* tweak a workflow file
2022-10-09 14:36:32 +09:00
Devansh Jethmalani
93b5a43e82
Rewrite TakeTwo, SkipTwo and Mutate to make them work for older ts versions too ( #1348 )
...
* create tsc v4.3.5 snapshot
* rewrite `TakeTwo` and `SkipTwo`
...to work with both pre 4.3.5 and post 4.3.5 subtyping rules.
The type `Test` in the following snippet resolves to `"yes"` for
<=4.3.5 but `"no"` for >4.3.5
```ts
type Test = [string, number?] extends [unknown] ? "yes" : "no"
```
(note 4.3.5 is bisected via typescript playground which skips
some versions so it might not be super accurate, but it's
accurate enough)
* fix lint
* fix pretest script to use tsc script instead of tsc bin
* revert tests
* add a workflow to test with old tsc
* fix typo
* oops, we need to run tsc
* test against build
* fix regex 🤦♂️
* oops, something was missing
* build in advance
* wip: more older versions
* wip: downgrade jest types
* minimum ts version 4.1.5
* minor fix
* make `Mutate` more complete
...wrt to the domain `StoreMutatorIdentifier[]` to help the type-checker
* fix lint
Co-authored-by: daishi <daishi@axlight.com>
2022-10-09 10:15:06 +09:00
huangcheng
ae4cc7f1b1
fix: should use Object.is to compare two value ( #1314 )
2022-10-09 10:10:37 +09:00
Xuanbo Cheng
43ea18e768
fix(context): store property missing from useStoreApi ( #1258 )
2022-10-09 10:10:16 +09:00
Joel Mathew Koshy
276af10d88
docs: add instruction on how to install zustand package using yarn ( #1330 )
2022-10-09 10:08:50 +09:00
kpue
a848f708b7
Update comparison.md ( #1346 )
2022-10-07 01:10:34 +09:00
Joel Mathew Koshy
200d5bc10e
docs(immer-doc): add npm installation section in immer middleware docs ( #1347 )
2022-10-07 01:09:13 +09:00
Joel Mathew Koshy
e8b05d8179
docs: added separate docs file for slices pattern ( #1344 )
2022-10-07 01:05:07 +09:00
Chris K
94dec53d9a
docs: fix image spacing. fix phrasing and various grammar issues ( #1333 )
2022-10-02 07:27:31 +09:00
François KY
d60f0cca7a
docs: expose enabled devtools options in the documentation ( #1326 )
2022-10-01 18:12:24 +09:00
Diemas
3e311520d5
fix: type replace Jotai with Recoil ( #1325 )
2022-09-30 14:41:15 +09:00
huangcheng
5ca63d1d63
test: rename persistent ( #1315 )
2022-09-27 18:15:25 +09:00
Daishi Kato
f0ff30f7c4
chore(examples): move to demo subdir and eliminate rewired ( #1305 )
...
* chore(examples): move to demo subdir and eliminate rewired
* fix some paths
* run prettier
* use v4
2022-09-22 18:34:36 +09:00
mugi-uno
77d14b17bc
docs: testing for using typescript ( #1303 )
2022-09-21 22:11:10 +09:00
Chris K
b739cfdb1e
docs: remove dead link from readme ( #1302 )
2022-09-20 22:52:44 +09:00
Danilo Britto
981fe92349
fix(docs): comparison ( #1284 )
...
* Adding improvements to comparison docs
* Rewording
* Update docs/getting-started/comparison.md
Co-authored-by: Bjorn Stromberg <bjorn@bjornstar.com>
* Update comparison.md
Co-authored-by: Bjorn Stromberg <bjorn@bjornstar.com>
2022-09-20 10:58:03 +09:00
Jacob Bergholtz
4ed81bc11b
Add usage with context to docs ( #1291 )
...
* docs: context guide proposal
* fix(docs): typo & omit comment
* fix(docs): remove horizontal rules
* fix(docs): add wiki link to DI
* fix(docs): format with prettier
* fix(docs): cases that model => where... is needed
* fix(docs): use sentence case
* fix(docs): omit quote block
* fix(docs): into "a" custom hook
* fix(docs): format with prettier
* fix(docs): sort broken nav indexes
* Update docs/guides/initialize-state-with-props.md
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
* fix(docs): reintroduce React.createContext example
* scripts: escape quotes
* styles: run prettier
* fix(docs): omit 'React' from imports
* styles: run prettier
* styles: run prettier
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2022-09-18 09:01:06 +09:00
Danilo Britto
eea3944499
fix(docs): move gotchas to docs/getting-started section ( #1283 )
...
* fix(docs): move gotchas to docs/getting-started section
* Minor changes
* Move gotchas to docs/guides section
* Update updating nested state object values to cross-link gotchas
* Minor changes
* Clean up
* Add updating draft states to docs/integrations for immer middleware
* Minor changes
* Update updating draft states to add demos
* Minor changes
* Minor changes
* Minor fixes
2022-09-15 19:10:07 +09:00
Chris K
70820e349c
docs: updates to fix remaining broken links across docs site ( #1257 )
...
* docs: updates to fix remaining broken links across docs site
* docs: fix relative links to work in both github and docs site
2022-09-15 06:41:03 +09:00
Callum C
7bce12e91b
Fixed grammar in comparison.md ( #1288 )
...
Line 19: you -> your
2022-09-12 08:14:42 +09:00
Joel (조기문)
faaed15364
fix(docs): Issue 1254 guides ( #1267 )
...
* Update persisting-store-data.md
* Fix persisting-store-data.md with 'yarn run prettier'
* Add connect-to-state-with-url-hash.md
* Remove docs from persisting-store-data.md
2022-09-08 18:33:26 +09:00
Chris K
1c56b91b5a
fix: remove unneeded <br> causing website build to fail ( #1272 )
2022-09-08 18:32:33 +09:00
Daishi Kato
b3dc3d64b2
chore(tests): enable StrictMode as much as possible ( #1262 )
2022-09-05 13:48:59 +09:00
Devansh Jethmalani
b8ec61dc53
docs(typescript): Rewrite the inference explanation ( #1252 )
...
* docs(typescript): Rewrite the inference explanation
* run prettier
* fix grammar
* run prettier
* typo
* grammar, punctuation
* more edits
* replacing ellipses with colon for consistency
* even more edits
* edit summary
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
* fix hypothetical type
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2022-09-03 08:48:06 +09:00
Fawaz Haroun
445e147478
fix(docs): Issue 1120 docs guides ( #1247 )
...
* docs: testing documentation review
* docs: auto-generated-selectors documentation review
* docs: auto-generated-selectors documentation review
* docs: flux-inspired-practices documentation review
* docs: flux-inspired-practices documentation review
* docs: flux-inspired-practices documentation review
* docs: immutable-state-and-merging documentation review
* docs: immutable-state-and-merging documentation review
* docs: event-handler-in-pre-react-18 documentation review
* docs: ran the yarn run prettier command
* review: reviewed documentation guides
* review: typo fixes and ran yarn run prettier
* review: change based on review comment
* review: change based on review comment
* review: change based on review comment
* review: made changes based on review
* ran yarn run prettier
* Update docs/guides/typescript.md
Co-authored-by: Devansh Jethmalani <jethmalani.devansh@gmail.com>
Co-authored-by: Devansh Jethmalani <jethmalani.devansh@gmail.com>
2022-09-02 07:54:27 +09:00
Danilo Britto
e85673f6e1
Update comparison.md ( #1248 )
2022-09-02 07:44:04 +09:00