Commit graph

15 commits

Author SHA1 Message Date
Richard
e32c62753e perf: optimize sparse array preservation 2024-09-26 11:20:27 -07:00
Richard
495139995a fix: return the object if not an array 2024-09-26 00:55:50 -07:00
Richard
651b91fbfb perf: optimize sparse array coercion 2024-09-26 00:41:57 -07:00
Richard
0b4dd2f53b fix(sync): fill sparse arrays with null 2024-09-25 22:10:52 -07:00
richard
c6762a6525
fix: avoid reconnecting to dependencies after cleanup (#14)
* fix: cancel reconnection when unsubscribing

* test: remove print

* feat: allow factory to return nil

* perf: use `next` iteration
2024-07-10 15:13:36 -07:00
richard
333a86b43f
feat: add sync.isNone, fix sync payload type (#11)
* feat: add `sync.isNone`, fix sync payload type

* docs: add `isNone`
2024-07-07 01:09:57 -07:00
richard
a5a183c3a6
fix: handle sparse array patches (#10) 2024-07-05 13:14:07 -07:00
richard
6a9c580bd7
feat: add effect cleanups, add docs (#2)
* docs: update readme

* feat: add cleanup function to effects

* refactor: move peek function to store module

* test: add nested atom check

* docs: add doc comments

* fix: `effect()` type

* refactor: remove divider comment
2024-06-02 01:25:00 -07:00
Richard
b715b81fec refactor!: rename derive, map 2024-05-26 21:31:28 -07:00
Richard
f0a7938703 feat: add batch() 2024-04-19 01:01:57 -07:00
Richard
f2ec300204 fix: apply patches to non-table values 2024-03-27 23:49:50 -07:00
richard
33ecae2f50
refactor!: design overhaul (#1)
* refactor!: use atom functions

* docs: reformat api reference

* docs: showcase atom functions

* docs: remove unused import

* refactor: finalize updates

* chore: misc edits
2024-03-25 19:53:28 -07:00
Richard
a30293ee3b refactor: catch validation error with pcall 2024-02-29 21:58:04 -08:00
Richard
d8d0c2a1f8 feat: add sync validation 2024-02-28 21:24:24 -08:00
Richard
17a8c48e54 feat: add state sync 2024-02-27 22:20:18 -08:00