Orion Henry
9ff0c60ccb
add cra example code
2022-01-28 18:05:33 -05:00
Orion Henry
cfa1067c19
rework wasm function to use js types more directly
2022-01-28 17:07:59 -05:00
Orion Henry
3393a60e59
clippy lint
2022-01-20 14:17:11 -08:00
Orion Henry
54fec3e438
lamport compare was backward on actorids and so was value resolution
2022-01-20 14:17:11 -08:00
Andrew Jeffery
5867c8d131
Fixup CI
2022-01-19 15:11:04 -08:00
Orion Henry
b30a2b9cc1
give Counter its own type
2022-01-14 06:27:42 -08:00
Orion Henry
d50062b769
move values into the counter type - remove need for vis_window
2022-01-14 06:27:42 -08:00
Orion Henry
067df1f894
break sync, interop, and value code into their own files
2022-01-09 08:05:00 -08:00
Orion Henry
a2e6778730
fmt
2022-01-09 08:05:00 -08:00
Orion Henry
04c7e9184d
port over all the sync tests to the wasm api
2022-01-09 08:05:00 -08:00
Orion Henry
b67098d5e1
convert automerge-js to use import/export
2022-01-09 08:05:00 -08:00
Orion Henry
45ee5ddbd9
add import/export
2022-01-09 08:05:00 -08:00
Orion Henry
d2a7cc5f75
get sync tests working
2022-01-09 08:05:00 -08:00
Orion Henry
ef89520d7c
more tests for wasm
2022-01-03 14:59:46 -05:00
Orion Henry
4c4484b897
fix bug in wasm
2022-01-03 12:58:08 -05:00
Orion Henry
3046cbab35
Replace the OpID API with an object ID
...
Rather than returning an OpID for every mutation, we now return an
`Option<ObjId>`. This is `Some` only when a `make*` operation was
applied. This `ObjID` is an opaque type which can be used with any
document.
2022-01-01 20:15:02 +00:00
Orion Henry
6932bdff08
package.json can run on windows now
2021-12-29 14:16:15 -05:00
Alex Good
216b4eed82
Add deny.toml and a script for calling cargo deny
...
In order to get cargo deny to pass we also update a few dependencies and
add licenses
2021-12-24 10:18:16 -08:00
Orion Henry
4c90b5f822
get js text tests working
2021-12-22 15:08:31 -05:00
Orion Henry
780298b72c
docs, tests, code cleanup
2021-12-21 09:23:34 -08:00
Orion Henry
265ce823da
implement all the query_at(), add tests, was, cut dead code
2021-12-21 09:23:34 -08:00
Alex Good
962340805c
automerge::set - don't generate ops for noops
...
Repeatedly setting the same value for a particular (obj, key)
combination now no longer generates an operation. To allow this we
modify the return value of `automerge::set` so that it may return an
`Option<OpId>` instead of an `OpId`.
Signed-off-by: Alex Good <alex@memoryandthought.me>
2021-12-18 15:57:03 +00:00
Orion Henry
fc89a26302
first pass for sync in js/wasm
2021-12-18 00:22:20 -05:00
Orion Henry
503ee1ca19
Merge branch 'experiment' of github.com:automerge/automerge-rs into experiment
2021-12-17 21:15:05 -05:00
Orion Henry
1739a7e7b1
encode/decode sync in wasm
2021-12-17 21:14:16 -05:00
Andrew Jeffery
c5f6ffc4cd
Fix wasm build
2021-12-17 23:36:38 +00:00
Orion Henry
90244236c3
move important items out of legacy
2021-12-17 11:33:05 -05:00
Orion Henry
6b517b9894
move things we need out of legacy
2021-12-17 11:04:35 -05:00
Orion Henry
db3a43c5b6
import protocol into legacy
2021-12-16 20:39:08 -05:00
Orion Henry
26ccaf63cc
readme and new tests
2021-12-15 19:07:39 -05:00
Orion Henry
89a2e4a0fa
remove old seq_scan code
2021-12-13 07:45:38 -05:00
Orion Henry
a1a7e42dfa
remove begin - make tx implicit
2021-12-12 12:51:27 -08:00
Orion Henry
406a20707f
seek_op, inc test, logging
2021-12-12 09:27:51 -08:00
Orion Henry
e2b63ca102
adding text() and splice_text()
2021-12-10 15:20:19 -08:00
Orion Henry
670de06bdf
rework op_set query system
2021-12-10 15:35:51 -05:00
Orion Henry
3ba7e2fb7f
make length fast - fix bug in index
2021-12-07 15:00:21 -05:00
Orion Henry
bbfb2337d5
save_incremental()
2021-12-06 15:23:18 -05:00
Orion Henry
0cc815ef74
move query logic into trait, format
2021-12-06 11:09:08 -05:00
Orion Henry
70b482b827
go faster
2021-12-03 21:56:59 -08:00
Orion Henry
8ffccd96bc
cleanup and op_tree
2021-11-29 19:08:32 -08:00
Orion Henry
a87fc3c1d3
profiling and seq_tree
2021-11-29 17:27:47 -07:00
Orion Henry
7a159e293c
wasm-opt isnt supported on this platform
2021-11-28 10:09:26 -07:00
Orion Henry
c3328997a6
inc()
2021-11-26 21:26:35 -05:00
Orion Henry
a4c04247eb
simple cleanup
2021-11-26 12:01:41 -05:00
Orion Henry
6a5aa75c78
move set is insert behavior out of backend
2021-11-19 21:52:54 -05:00
Orion Henry
288f214964
start on encode/decode
2021-11-19 14:44:20 -05:00
Orion Henry
c1d33386bf
out of order changes handled
2021-11-19 11:43:37 -05:00
Orion Henry
a0b8a6cfe3
load()
2021-11-17 15:59:23 -05:00
Orion Henry
efce75558e
rework the api to be set(), insert(), inc(), del()
2021-11-17 13:27:52 -05:00
Orion Henry
e4bffe9ddc
108/123 tests passing
2021-11-16 18:35:21 -05:00