Commit graph

48 commits

Author SHA1 Message Date
alice
68fb71e759 add test case 2024-08-20 12:38:49 +01:00
aaron
2dc2814d76 Fix regression with derived sources 2024-07-19 11:21:49 +01:00
aaron
7bae2517cd Improve error reporting 2024-07-15 17:37:26 +01:00
aaron
f2de9b0e63 Refactor 2024-07-03 15:02:52 +01:00
Aaron Smith
c288cb92c4 Minor refactors
Also fixed potential bug with `create()` being called recursively if a
property binding passed as a property to `create()` also calls
`create()`
2023-11-20 16:53:30 +00:00
Aaron Smith
8eb5f96c5b Fix recursive batch() use 2023-11-20 12:27:56 +00:00
Aaron Smith
65fe3fcf47 Fix some graph edge cases 2023-11-16 18:01:45 +00:00
Aaron Smith
ec998ccbc8 Implement batched updates
No docs yet, more testing needed.
2023-10-27 16:47:49 +01:00
Aaron Smith
7d82fe353e Fix error in test
Also misc changes
2023-10-27 15:47:43 +01:00
aaron
aca08709b6 Update tests 2023-10-25 20:02:40 +01:00
Aaron Smith
15255855c3 Add repeated read test 2023-10-25 16:58:29 +01:00
Aaron Smith
8218e4702f Fix diamond graphs 2023-10-25 15:49:35 +01:00
Aaron Smith
c03fb05779 Make changed() run initially 2023-09-28 16:46:32 +01:00
Aaron Smith
2ae65a0194 Update tests
Added a case to confirm the behavior of strict mode's double evaluation
and node cached values.
2023-09-27 10:24:14 +01:00
Aaron Smith
d07c705b64 Fix switch() not working in strict mode
Fixes #20
2023-09-27 10:02:09 +01:00
Aaron Smith
32fa44f4c5 Cleanup helper for instances
Closes #19
2023-09-26 14:34:27 +01:00
Aaron Smith
71bbaa2092 Update reactive scoping docs 2023-09-26 13:27:38 +01:00
aaron
c68d0a6c18 Allow creation of nested tracking scopes
It turns out that handling destruction of a nested tracking scope was
not as difficult as I thought and didn't need much changes
2023-09-25 23:37:51 +01:00
aaron
38342b3805 Disallow creation of nested tracking scopes 2023-09-25 11:44:24 +01:00
aaron
c0c2166edf Update testkit 2023-09-24 01:49:16 +01:00
Aaron Smith
62716a074d Update benchmarks 2023-09-21 14:58:44 +01:00
Aaron Smith
97096f8aff Add tests for show() and read() 2023-09-20 18:42:02 +01:00
Aaron Smith
cc4b390d3d Auto strict mode based on optimization level 2023-09-20 12:23:51 +01:00
Aaron Smith
835f4d429b Add check for unstable spring parameters 2023-09-20 11:39:44 +01:00
Richard
a543a24865 Revert "Echo initial value if given a source"
This reverts commit 16e2983c54758cabfb1ddd102090f20083820d03.
2023-09-19 19:21:25 +01:00
Richard
109cca45f3 Echo initial value if given a source 2023-09-19 19:21:25 +01:00
Aaron Smith
d8a627c58a Fix test type error 2023-09-19 17:37:42 +01:00
Aaron Smith
520b0cca32 Update indexes() test 2023-09-19 12:20:03 +01:00
Aaron Smith
250c13e7b8 Fix edge case bugs in reactive graph updates 2023-09-19 12:07:49 +01:00
aaron
c4a0180a2f Improve error messages for derived sources
There seemed to be confusion over reactive-scoping (likely due to
incomplete docs), so I've added more explicit error messages when
deriving in non-reactive scopes to warn the user to use `root()` or
`mount()`.
2023-09-18 09:40:54 +01:00
aaron
efc4798ddb Merge reactive scope refactor 2023-09-15 12:54:42 +01:00
aaron
92dca4fa1c Fix tests failing on O2 2023-08-29 23:15:37 +01:00
aaron
392c0c1a3c Update unit test
Regression check for recent `action()` bug fix
2023-08-28 12:19:52 +01:00
aaron
5ab76a434e Update spring tests 2023-08-26 14:49:46 +01:00
Aaron Smith
8ef2d0b190 Update spring solver 2023-08-24 18:09:40 +01:00
Aaron Smith
6700e1b1f6 Add untrack() 2023-08-22 12:12:03 +01:00
Aaron Smith
0105e33fac Limit cleanup() calls to once per scope 2023-08-22 11:46:56 +01:00
Aaron Smith
2aebaf5abb Add aggregate initialization 2023-08-22 11:15:27 +01:00
Aaron Smith
463faee85a Add cleanup for indexes() and values()
More testing required.
2023-08-17 14:44:45 +01:00
Aaron Smith
bf1271de23 Improve cleanup() algorithm 2023-08-15 17:54:54 +01:00
aaron
154cf77df6 Optimize cleanup 2023-08-14 22:51:31 +01:00
Aaron Smith
6acd054294 Add cleanup() benchmarks 2023-08-14 17:06:15 +01:00
Aaron Smith
a769139136 Update property nesting
Deeper nested properties guaranteed to be processed after shallower
nested properties.

Also added strict mode checks for duplicate nested properties.
2023-08-14 11:42:16 +01:00
aaron
afd863285b Add special case for frozen tables
Sources will now check if frozen tables are equal before updating
dependencies.
2023-08-12 11:11:21 +01:00
Aaron Smith
7e5102c314 Update mocks 2023-08-10 15:43:27 +01:00
Aaron Smith
cc10c80a90 Refactor 2023-08-10 13:18:16 +01:00
Aaron Smith
b3c600acc3 Update mock tests 2023-08-09 17:58:17 +01:00
aaron
cb002f4f27 Initial commit 2023-08-08 21:33:11 +01:00