{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":180328715,"defaultBranch":"main","name":"zustand","ownerLogin":"pmndrs","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2019-04-09T09:10:06.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/45790596?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1724844559.0","currentOid":""},"activityList":{"items":[{"before":"0a4f9d0f71477c5ef399191acc19e25674d0d3c4","after":"5ebe8606d621411b405c076c75f90e8983fa7c5b","ref":"refs/heads/main","pushedAt":"2024-09-10T04:34:14.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dbritto-dev","name":"Danilo Britto","path":"/dbritto-dev","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1697714?s=80&v=4"},"commit":{"message":"Add `getInitialState` as part of api utilities (#2729)","shortMessageHtmlLink":"Add getInitialState
as part of api utilities (#2729)"}},{"before":"4ec7077de5714cbafc18a5a807b3cdd020043b62","after":"0a4f9d0f71477c5ef399191acc19e25674d0d3c4","ref":"refs/heads/main","pushedAt":"2024-09-06T17:26:16.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dbritto-dev","name":"Danilo Britto","path":"/dbritto-dev","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1697714?s=80&v=4"},"commit":{"message":"Add docs for APIs and Hooks (#2706)\n\n* Add docs for APIs and Hooks\r\n\r\n* Minor fixes\r\n\r\n* Minor fixes","shortMessageHtmlLink":"Add docs for APIs and Hooks (#2706)"}},{"before":"9e8b7a5eea9c0a9f04dccf9e02fbfe9e1f4fd9e9","after":"4ec7077de5714cbafc18a5a807b3cdd020043b62","ref":"refs/heads/main","pushedAt":"2024-09-02T23:50:04.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"docs: corrected example (#2717)\n\n* docs: made store consistent with examples in \"Selecting multiple state slices\"\r\n\r\n* docs: responded to review comments\r\n\r\n* Update readme.md\r\n\r\n* run pretiter\r\n\r\n---------\r\n\r\nCo-authored-by: Daishi Kato \r\nCo-authored-by: daishi ","shortMessageHtmlLink":"docs: corrected example (#2717)"}},{"before":"7c369422612fbe0e5daab07951148341db4f5d04","after":"9e8b7a5eea9c0a9f04dccf9e02fbfe9e1f4fd9e9","ref":"refs/heads/main","pushedAt":"2024-08-29T07:28:36.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"abernier","name":"Antoine BERNIER","path":"/abernier","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/76580?s=80&v=4"},"commit":{"message":"chore: using pmndrs/docs v2","shortMessageHtmlLink":"chore: using pmndrs/docs v2"}},{"before":"554da72730fd7478b9255a36c291e303b571362a","after":null,"ref":"refs/heads/abernier-patch-1","pushedAt":"2024-08-28T11:29:19.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"}},{"before":"c0cd364b8fbbef940bfcccf0b2bf2bd1fa039876","after":"7c369422612fbe0e5daab07951148341db4f5d04","ref":"refs/heads/main","pushedAt":"2024-08-28T11:29:14.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"relative images as much as possible (#2710)","shortMessageHtmlLink":"relative images as much as possible (#2710)"}},{"before":null,"after":"554da72730fd7478b9255a36c291e303b571362a","ref":"refs/heads/abernier-patch-1","pushedAt":"2024-08-28T11:04:15.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"abernier","name":"Antoine BERNIER","path":"/abernier","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/76580?s=80&v=4"},"commit":{"message":"relative images as much as possible","shortMessageHtmlLink":"relative images as much as possible"}},{"before":"eea06642687655afc31b601374e13af02e9a5c97","after":"c0cd364b8fbbef940bfcccf0b2bf2bd1fa039876","ref":"refs/heads/main","pushedAt":"2024-08-28T00:44:04.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"docs: typo in typescript docs (#2708)","shortMessageHtmlLink":"docs: typo in typescript docs (#2708)"}},{"before":null,"after":"61befdc92d9f40c34a3cb0b4baa4d20e68c1f250","ref":"refs/heads/revert-2701","pushedAt":"2024-08-27T01:47:30.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"revert useShallow refactor in #2701","shortMessageHtmlLink":"revert useShallow refactor in #2701"}},{"before":"08aadaffc1758baa287e115e51ef3b0e599e3dbb","after":"eea06642687655afc31b601374e13af02e9a5c97","ref":"refs/heads/main","pushedAt":"2024-08-27T01:20:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"5.0.0-rc.1","shortMessageHtmlLink":"5.0.0-rc.1"}},{"before":"7b8544b940bb4f9f325447782dac8351124e010c","after":null,"ref":"refs/heads/chore/update-deps","pushedAt":"2024-08-27T01:19:46.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"}},{"before":"2cadf6511d885811cfebddfb079914dd57e974ad","after":"08aadaffc1758baa287e115e51ef3b0e599e3dbb","ref":"refs/heads/main","pushedAt":"2024-08-27T01:19:41.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"chore(deps): update dev dependencies (#2702)\n\n* chore(deps): update dev dependencies\r\n\r\n* typescript vers","shortMessageHtmlLink":"chore(deps): update dev dependencies (#2702)"}},{"before":"2d3f08c2df6383419429c75cdbb1c75c567fa088","after":"7b8544b940bb4f9f325447782dac8351124e010c","ref":"refs/heads/chore/update-deps","pushedAt":"2024-08-27T01:16:38.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"typescript vers","shortMessageHtmlLink":"typescript vers"}},{"before":null,"after":"2d3f08c2df6383419429c75cdbb1c75c567fa088","ref":"refs/heads/chore/update-deps","pushedAt":"2024-08-27T01:15:03.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"chore(deps): update dev dependencies","shortMessageHtmlLink":"chore(deps): update dev dependencies"}},{"before":"6d1822f94dea3a3a652073c677b25c562156a17f","after":null,"ref":"refs/heads/fix/use-shallow-for-compiler","pushedAt":"2024-08-27T01:13:04.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"}},{"before":"d7345da7cffbe53b4855ff4b6bce7e571bf5b2fb","after":"2cadf6511d885811cfebddfb079914dd57e974ad","ref":"refs/heads/main","pushedAt":"2024-08-27T01:13:01.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"refactor useShallow (#2701)","shortMessageHtmlLink":"refactor useShallow (#2701)"}},{"before":"f83d4acc6d952d84f01db31c4118c6d848a0ad2c","after":"6d1822f94dea3a3a652073c677b25c562156a17f","ref":"refs/heads/fix/use-shallow-for-compiler","pushedAt":"2024-08-27T01:11:06.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"Merge branch 'main' into fix/use-shallow-for-compiler","shortMessageHtmlLink":"Merge branch 'main' into fix/use-shallow-for-compiler"}},{"before":"42bbfcfb6b30856f41df4df18ff5ea2ce07d7098","after":"d7345da7cffbe53b4855ff4b6bce7e571bf5b2fb","ref":"refs/heads/main","pushedAt":"2024-08-27T01:10:47.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"Fix Immer type inference for `setState` (#2696)\n\n* fix(immer): tweak type inference to base `setState` type off of store `setState` instead of `getState`\r\n\r\n* fix(immer): instead, infer type directly from StoreApi[\"setState\"]\r\n\r\n* fix(immer): instead of using `StoreApi`, extract from A2 the non-functional component of state\r\n\r\n* docs: add comment describing why it is not derived from `A1`\r\n\r\n* test: add example middleware that modifies getState w/o setState\r\n\r\n* fix: add assertion for inner `set` and `get` types\r\n\r\n---------\r\n\r\nCo-authored-by: Daishi Kato ","shortMessageHtmlLink":"Fix Immer type inference for setState
(#2696)"}},{"before":null,"after":"f83d4acc6d952d84f01db31c4118c6d848a0ad2c","ref":"refs/heads/fix/use-shallow-for-compiler","pushedAt":"2024-08-27T01:07:55.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"refactor useShallow","shortMessageHtmlLink":"refactor useShallow"}},{"before":"ab8fc845a7b3cfcd9e28ed45b823a81ec91fd654","after":null,"ref":"refs/heads/chore/docs/third-party-libs","pushedAt":"2024-08-26T12:17:03.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"}},{"before":"e051a8254a4dbe47635cc5878e03fe17442caa37","after":"42bbfcfb6b30856f41df4df18ff5ea2ce07d7098","ref":"refs/heads/main","pushedAt":"2024-08-26T12:17:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"chore(docs): third-pary libs (#2699)","shortMessageHtmlLink":"chore(docs): third-pary libs (#2699)"}},{"before":"bcb962fde893302efa1c7ed02d50eec84c720a0d","after":"ab8fc845a7b3cfcd9e28ed45b823a81ec91fd654","ref":"refs/heads/chore/docs/third-party-libs","pushedAt":"2024-08-26T12:15:07.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"Merge branch 'main' into chore/docs/third-party-libs","shortMessageHtmlLink":"Merge branch 'main' into chore/docs/third-party-libs"}},{"before":null,"after":"bcb962fde893302efa1c7ed02d50eec84c720a0d","ref":"refs/heads/chore/docs/third-party-libs","pushedAt":"2024-08-26T12:13:29.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"chore(docs): third-pary libs","shortMessageHtmlLink":"chore(docs): third-pary libs"}},{"before":"41043478a04a4eda1985705b768e2bd36de7036f","after":"e051a8254a4dbe47635cc5878e03fe17442caa37","ref":"refs/heads/main","pushedAt":"2024-08-22T14:45:22.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"abernier","name":"Antoine BERNIER","path":"/abernier","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/76580?s=80&v=4"},"commit":{"message":"fixing pmndrs/docs workflow to @v1","shortMessageHtmlLink":"fixing pmndrs/docs workflow to @v1"}},{"before":"23086be4ad95afe6304c3d06a9d98d48ff07179d","after":"41043478a04a4eda1985705b768e2bd36de7036f","ref":"refs/heads/main","pushedAt":"2024-08-22T09:30:25.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"Update auto-generating-selectors.md (#2695)\n\nKeep the links consistent to github","shortMessageHtmlLink":"Update auto-generating-selectors.md (#2695)"}},{"before":"69112dcfffa8a25aedb7f4be91218d2c5694a1ec","after":"23086be4ad95afe6304c3d06a9d98d48ff07179d","ref":"refs/heads/main","pushedAt":"2024-08-20T23:52:45.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"Persist documentation for Map & Set add storage and retrieval of version (#2692)\n\n* Persist documentation for Map & Set add storage and retrieval of version\r\n\r\n--HG--\r\nbranch : discussion-2689-persist-doc-map-and-set-missing-version\r\n\r\n* Persist documentation for Map & set improve getItem to include version only when present by way of spread operator on existingValue\r\n\r\n--HG--\r\nbranch : discussion-2689-persist-doc-map-and-set-missing-version","shortMessageHtmlLink":"Persist documentation for Map & Set add storage and retrieval of vers…"}},{"before":"4c5cb7c6ccf2182546561b0972e0ba0570e1796c","after":"69112dcfffa8a25aedb7f4be91218d2c5694a1ec","ref":"refs/heads/main","pushedAt":"2024-08-19T01:20:23.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"Adding zustand-boilerplate to third-party-libraries (#2673)\n\n* Adding zustand-boilerplate to third-party-libraries\r\n\r\nHi, \r\nI'm the maker of zustand-boilerplate. It's a small utility that generates getters, setters based on a class representing a zustand store. I'd like to add it to the list of 3rd party libraries to let people know. I've attached an example:\r\n\r\n```\r\nimport { create } from \"zustand\"\r\nimport * as Z from \"zustand-boilerplate\"\r\n\r\ninterface Bear {\r\n name: string\r\n}\r\n\r\nclass BearStore {\r\n @Z.Boolean()\r\n isDangerous = false\r\n\r\n @Z.Number()\r\n count = 0\r\n\r\n @Z.Array()\r\n bears: Bear[] = []\r\n\r\n //\r\n // Notice you have to set a default value and apply the decorator\r\n // to properties for generated actions to work\r\n //\r\n @Z.Any()\r\n mainBear: Bear | undefined = undefined\r\n\r\n @Z.String()\r\n userName: string | undefined = undefined\r\n}\r\n\r\nconst bearStoreWithActions = Z.generateStoreWithActions(BearStore)\r\n\r\nexport const store = create(bearStoreWithActions)\r\n\r\n// The following will automatically work now (fully typed)\r\n// store.getState().getBears() -> Bear[]\r\n// store.getState().setBears(bears)\r\n// ...\r\n```\r\n\r\n* chore: a-z ordering","shortMessageHtmlLink":"Adding zustand-boilerplate to third-party-libraries (#2673)"}},{"before":"11d22b20130aed492601f72a8555a45a6a6b0b12","after":null,"ref":"refs/heads/website/github-link","pushedAt":"2024-08-18T12:27:53.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"}},{"before":"f9e6f815c244ac0510c5f8c2b9d5612068bfabca","after":"4c5cb7c6ccf2182546561b0972e0ba0570e1796c","ref":"refs/heads/main","pushedAt":"2024-08-18T12:27:50.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"website: add github link (#2687)","shortMessageHtmlLink":"website: add github link (#2687)"}},{"before":null,"after":"11d22b20130aed492601f72a8555a45a6a6b0b12","ref":"refs/heads/website/github-link","pushedAt":"2024-08-18T12:24:01.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dai-shi","name":"Daishi Kato","path":"/dai-shi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/490574?s=80&v=4"},"commit":{"message":"website: add github link","shortMessageHtmlLink":"website: add github link"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEsZqVYgA","startCursor":null,"endCursor":null}},"title":"Activity · pmndrs/zustand"}