292 Commits

Author SHA1 Message Date
daishi
5eaa00a75e 3.5.2 2021-06-05 18:23:29 +09:00
daishi
af7447a5ab update dev dependencies 2021-06-05 18:14:53 +09:00
Tushar Tripathi
580a758ed9
chore: mark react dependency as optional (#408)
Discussion - https://github.com/pmndrs/zustand/discussions/407
2021-06-04 09:12:33 +09:00
daishi
11663b3bcc 3.5.1 2021-05-08 22:20:15 +09:00
daishi
a23bf1d718 3.5.0 2021-05-06 00:25:57 +09:00
daishi
9d3a701e88 chore: rename to pmndrs from react-spring 2021-05-06 00:13:56 +09:00
daishi
4751b172c6 update devDependencies (including husky 6) 2021-05-06 00:05:21 +09:00
Munawwar
611551c409
#182 SSR data is shared (#375)
* context utils for SSR

* move useIsomorphicLayoutEffect to new file

* added build commands

* 1. remove the useEffect we dont need anymore 2. wrap context and hook into createZustand() function, but keep defaults

* issue #182 - changed name to createContext and useStore + added tests

* remove default Provider

* use alias to index file

* change 'createState' prop to 'initialStore'

that accepts useStore func/object from create().

This is needed as store access is needed for merging/memoizing, in next.js integration

* updated tests

* code review changes

* snapshot update

* add a section in readme

* chore imports and so on

Co-authored-by: daishi <daishi@axlight.com>
2021-05-05 23:54:29 +09:00
daishi
ea6e9f9864 3.4.2 2021-04-27 09:14:26 +09:00
daishi
b81418ce6f 3.4.1 2021-04-08 10:22:55 +09:00
Daishi Kato
a68e7b217c
fix: revert babel runtime (#352) 2021-04-08 10:20:18 +09:00
daishi
2c0e4e109b 3.4.0 fix 2021-04-07 00:29:16 +09:00
daishi
561028cd2a 3.4.0 2021-04-07 00:23:08 +09:00
daishi
5f43148cd1 chore: update dev dependencies 2021-04-07 00:19:16 +09:00
Daishi Kato
2b1f95b893
fix: esm build (#350)
* fix: esm build

* fix: no relative import in bundle

* chore: update size snapshot
2021-04-06 08:39:59 +09:00
daishi
8db7c40bf2 fix: copy d.ts files for module.js in dist 2021-04-01 21:14:50 +09:00
Thomas Osmonson
77334ec851
build: use esbuild (#343) 2021-04-01 21:06:03 +09:00
daishi
b0c4e68cb7 3.3.3 2021-02-28 10:47:45 +09:00
daishi
43e85ed813 update dev dependencies and npm scripts 2021-02-28 10:42:20 +09:00
daishi
f05e3e3e27 3.3.2 2021-02-17 07:17:59 +09:00
daishi
bca8468407 update dev dependencies 2021-02-17 07:17:14 +09:00
daishi
e4090fbdc0 3.3.1 2021-01-10 21:16:57 +09:00
daishi
cb79d01d36 3.3.0 2021-01-08 19:20:09 +09:00
daishi
3f11c5f284 update dev deps and size snapshot 2021-01-08 19:16:54 +09:00
daishi
9934b7864d chore: update dev dependencies 2020-12-19 12:54:14 +09:00
daishi
8e850e9df7 3.2.0 2020-11-16 23:26:51 +09:00
daishi
eba2c132ef update dev dependencies 2020-11-16 23:25:38 +09:00
daishi
516074cf00 3.1.4 2020-11-08 14:43:51 +09:00
daishi
2d0da1f782 update dev dependencies 2020-11-08 11:37:13 +09:00
Joshua Coussard
1f66a1fc4a
Migrate to @rollup/* packages and make resolve plugin first to run (#217)
Co-authored-by: jcoussard <joshua@coussard.com>
2020-10-27 10:01:54 +09:00
daishi
e9fc83323c 3.1.3 2020-09-24 08:31:14 +09:00
daishi
d19b23ecb4 clean up some configs 2020-09-13 13:42:21 +09:00
daishi
13e3478794 minor fix 2020-09-13 11:45:59 +09:00
daishi
7b2391b74a 3.1.2 2020-09-12 20:53:31 +09:00
daishi
5ad795d5ca rename to basic.test.tsx 2020-09-12 09:20:57 +09:00
David Dios
97db4c5a15
Fix shallow types and add shallow test (#189)
* support object array comparison in shallow

* move shallow.test.ts to shallow.test.tsx

* revert shallow

Co-authored-by: daishi <daishi@axlight.com>
2020-09-12 09:16:03 +09:00
daishi
d98387ab66 github workflow lint 2020-09-10 13:47:27 +09:00
daishi
dc40a61bba 3.1.1 2020-09-08 22:05:31 +09:00
daishi
e28e523c87 3.1.0 2020-09-03 22:13:45 +09:00
daishi
3589796aa8 update dev dependencies 2020-09-03 22:02:32 +09:00
daishi
cb93bd607a 3.0.3 2020-09-01 21:47:24 +09:00
daishi
c9b8b051b5 3.0.2 2020-08-26 23:10:32 +09:00
Paul Henschel
03833e8382 3.0.1 2020-08-18 11:06:32 +02:00
Paul Henschel
95e89d54f8 fix types 2020-08-18 11:06:29 +02:00
Paul Henschel
9586c1c86d 3.0.0 2020-08-17 21:35:14 +02:00
Paul Henschel
e50f6080dc fix cjs build 2020-08-17 17:56:53 +02:00
Daishi Kato
bd1d775433
v3: unified api, vanilla store, and code clean up for v4 (#148)
* wip: no get subscriber

* wip: simplify subscribe

* feat: new unified api

* [v3] add slim subscribe and refactor useStore (#141)

* [v3] [breaking change] slim api.subscribe

* subscribe in useEffect instead of in render

* shave some bytes

* prefer-const

* add backward compatible subscribe

* add vanilla api

* chore: update dependencies and tsconfig

* chore: format

* [v3] create from store (#147)

* update readme

* update readme

* update readme

* update readme

* update readme

* update readme

* update readme

* update readme

* Update readme.md

* Update readme.md

Co-authored-by: Paul Henschel <drcmda@gmail.com>
2020-08-17 16:52:38 +02:00
Paul Henschel
0bce880e7a 2.2.4 2020-08-09 08:25:26 +02:00
JeremyRH
d8f8c5f752 v2.2.3 2020-02-19 23:02:02 -08:00
Paul Henschel
dd214e3a6a 2.2.2 2020-01-07 09:27:23 +01:00