Commit graph

975 commits

Author SHA1 Message Date
Orion Henry
beae33402a update wasm test for set_object 2022-03-07 11:46:25 -05:00
Orion Henry
95f27f362c
Merge pull request #283 from jeffa5/experiment-make
Separate scalars and objects in transaction API
2022-03-04 16:53:17 -05:00
Orion Henry
6b505419b6
Merge pull request #292 from jeffa5/experiment-actorid-api
Cleanup actor id api
2022-03-04 12:44:27 -05:00
Orion Henry
b9acf611fa
Merge pull request #293 from jeffa5/experiment-sync-api
Clean up sync api
2022-03-04 12:39:03 -05:00
Orion Henry
390ae49be0
Merge pull request #294 from jeffa5/experiment-infallible-save
Make save infallible
2022-03-04 12:37:51 -05:00
Andrew Jeffery
b79da38dea
Merge pull request #295 from jeffa5/experiment-decode-change
Make decode_change an associated function
2022-03-04 16:50:19 +00:00
Andrew Jeffery
cd5e734735 Make decode_change an associated function 2022-03-04 13:09:29 +00:00
Andrew Jeffery
a4432bdc3d Nothing really Into's ObjType so just take it directly 2022-03-04 13:03:19 +00:00
Andrew Jeffery
000576191e Clean up sync api 2022-03-04 12:32:07 +00:00
Andrew Jeffery
d71e87882e Make save infallible 2022-03-04 12:28:05 +00:00
Andrew Jeffery
c406742760
Merge pull request #291 from jeffa5/experiment-tx-closed
Unpub ensure_transaction_closed
2022-03-04 12:07:53 +00:00
Andrew Jeffery
2f3fe0e342 Cleanup actor id api
Default can be a footgun and confuse users, it was used internally but
that now uses the `from` impls. Also, opidat wasn't used and doesn't
seem to need to be public.
2022-03-04 12:06:43 +00:00
Andrew Jeffery
555f4c6b98 Unpub ensure_transaction_closed
This does the same functionality as a commit but without messages or
timestamps and doesn't return the heads. This shouldn't really be a
public API as they should use commit.
2022-03-04 11:59:51 +00:00
Andrew Jeffery
535d2eb92f Fix js proxy api 2022-03-04 11:46:03 +00:00
Andrew Jeffery
2ebb3fea6f Fixup cli 2022-03-04 11:37:44 +00:00
Andrew Jeffery
e1aeb4fd88 Fixup new test after rebase 2022-03-04 11:33:03 +00:00
Andrew Jeffery
4fe7df3d0e Fix clippy lint 2022-03-04 09:51:50 +00:00
Andrew Jeffery
93a20f302d Fixup wasm lib 2022-03-04 09:51:50 +00:00
Andrew Jeffery
f8cffa3deb Fix edit trace 2022-03-04 09:51:49 +00:00
Andrew Jeffery
b6c9d90d84 Rename value to object in insert_object 2022-03-04 09:51:17 +00:00
Andrew Jeffery
338dc1bece Change splice to accept scalars only 2022-03-04 09:51:16 +00:00
Andrew Jeffery
79d493ddd2 Rename make to set_object 2022-03-04 09:50:48 +00:00
Andrew Jeffery
e42adaf84b Fixup automerge tests 2022-03-04 09:47:37 +00:00
Andrew Jeffery
9406bf09ea Fix some tests 2022-03-03 22:53:55 +00:00
Andrew Jeffery
1a6abddb50 Example of make in the API 2022-03-03 22:53:21 +00:00
Andrew Jeffery
affb85b0b4 Add make to transaction API 2022-03-03 22:51:51 +00:00
Orion Henry
9a89db3f91
Merge pull request #287 from jeffa5/experiment-borrow-exid
AsRef exid to avoid &ROOT everywhere
2022-03-03 15:55:55 -05:00
Orion Henry
9d01406e13 missing gitignore 2022-03-03 14:36:10 -05:00
Andrew Jeffery
967b467aa6 Fix clippy 2022-03-03 18:22:42 +00:00
Andrew Jeffery
c0070e081d Reorder generics 2022-03-03 18:21:58 +00:00
Orion Henry
4fbecf86af
Merge pull request #286 from automerge/import_cli
import cli
2022-03-03 12:15:16 -05:00
Orion Henry
76ff910e06 update license deny.yaml 2022-03-03 11:09:26 -05:00
Andrew Jeffery
c46e6e6321
Merge pull request #288 from jeffa5/experiment-map-overwrite
Add test for overwriting a map and getting value from old one
2022-03-03 14:50:57 +00:00
Andrew Jeffery
7cf9faf7da Fix overwriting maps test 2022-03-03 14:40:35 +00:00
Andrew Jeffery
9ae988e754 Use as_ref instead of borrow 2022-03-03 14:37:24 +00:00
Andrew Jeffery
51f1c05545 Add mutation of old object 2022-03-03 10:36:10 +00:00
Andrew Jeffery
b323f988f9 Add test for overwriting a map and getting value from old one 2022-03-03 10:28:40 +00:00
Andrew Jeffery
682b8007b9 Borrow exid to avoid &ROOT everywhere 2022-03-03 09:05:08 +00:00
Orion Henry
0f71b48857
Merge pull request #282 from automerge/move_wasm_to_feature
move wasm to feature flag
2022-03-02 14:07:34 -05:00
Orion Henry
0141bcdc8f import cli 2022-03-02 14:05:10 -05:00
Andrew Jeffery
0b9d14edc4
Merge pull request #285 from jeffa5/experiment-rollback-transaction
Fix rolling back a transaction with a new actor
2022-03-02 18:15:00 +00:00
Andrew Jeffery
f6f6b5181d Fix rolling back of transaction infecting document 2022-03-02 18:08:00 +00:00
Andrew Jeffery
712697cff0 Add test for rolling back a transaction 2022-03-02 18:03:11 +00:00
Orion Henry
8f11825003
Merge pull request #284 from jeffa5/experiment-actors
Always have an actor on the document
2022-03-02 12:32:57 -05:00
Andrew Jeffery
8f2877a67c Fix wasm 2022-03-02 17:24:15 +00:00
Andrew Jeffery
06241336fe Add with_actor for functional style 2022-03-02 17:22:26 +00:00
Andrew Jeffery
52eb193950 Add custom actor enum to avoid caching an unused one 2022-03-02 17:20:44 +00:00
Andrew Jeffery
30e0748c15 Remove new_with_actor_id on documents 2022-03-02 17:02:26 +00:00
Andrew Jeffery
8eea9d7c0b Always have an actor 2022-03-02 16:59:45 +00:00
Orion Henry
2747d5bf2b move wasm to feature flag 2022-03-02 11:05:48 -05:00