Commit graph

179 commits

Author SHA1 Message Date
Orion Henry
41eea0bb02 grab readme from performance branch 2020-04-05 10:39:42 -07:00
Orion Henry
f37f65dd08 tools for making an asmjs version 2020-04-05 10:22:45 -07:00
Martin Kleppmann
2d7190394d Let the test suite specify the encode/decode functions
Avoids the code in this repo loading its own version of Automerge, which
may be incompatible with the version run by the test suite (while the
binary data format is in flux)
2020-04-02 21:38:44 +01:00
Martin Kleppmann
7b51847026 Refactor wrapper to correspond more closely to JS backend
Corresponds to automerge/automerge@c37cde232a
2020-04-02 21:19:12 +01:00
Martin Kleppmann
88c96cfc8d Allow building without rimraf dependency 2020-04-02 21:19:12 +01:00
Orion Henry
86844cd43a move files back to old names 2020-04-02 13:12:23 -07:00
Orion Henry
06b234c889 prep for npm package 2020-04-02 12:37:52 -07:00
Orion Henry
4911b5df53 update yarn deps 2020-04-02 09:44:49 -07:00
Orion Henry
95cb760f79 added clock to patch, some packaging cleanup 2020-04-02 09:39:41 -07:00
Martin Kleppmann
74bfee8770 Fix getChanges/getMissingChanges function confusion 2020-04-02 14:48:29 +01:00
Martin Kleppmann
989e9e0e66 Update to match Automerge performance branch
Intended to go with commit 6c17526cec9712488e8820083bf0cbc5a36fc71e in
the Automerge repo. Currently still throws a lot of errors like:

"serde_json error: invalid type: null, expected a map at line 1 column 4"
2020-04-02 13:03:46 +01:00
Orion Henry
3642e990e3 some simple optimizations 2020-03-31 15:54:41 -07:00
Orion Henry
af34d7ef36 move undo stack and clock out of opset 2020-03-31 06:49:47 -07:00
Orion Henry
fca6e1c09e move things out of op_set that are not needed 2020-03-30 15:15:30 -07:00
Orion Henry
9eed955d18 keep a cache of elemids in the object 2020-03-30 14:32:38 -07:00
Orion Henry
6c0f21e47e elemids not properly deleting 2020-03-29 16:42:15 -07:00
Orion Henry
7aa7ebe968 light cleanup 2020-03-28 22:44:11 -07:00
Orion Henry
bd338e9ee2 bug in the command compressing code 2020-03-28 21:33:42 -07:00
Orion Henry
d13a859039 light cleanup 2020-03-28 20:19:58 -07:00
Orion Henry
6e76450f5a error on set=null 2020-03-28 18:49:31 -07:00
Orion Henry
b9d003d13d bug in my element iterator 2020-03-28 18:34:06 -07:00
Orion Henry
923b767d0a columner encoding 2020-03-27 08:15:57 -07:00
Orion Henry
1152b6006c break out ObjectID from OpID - implement table obj_id hack 2020-03-26 16:50:26 -07:00
Orion Henry
a0ece5c413 forgot to add helpers 2020-03-25 15:18:22 -07:00
Orion Henry
8139f83dfd fixed increment 2020-03-25 15:09:24 -07:00
Orion Henry
771c6bee18 all backend tests passing 2020-03-25 14:15:23 -07:00
Orion Henry
0a4e28a52d fix deps/pred/insert bugs 2020-03-25 13:13:36 -07:00
Orion Henry
22f06f79c6 get_patch() works 2020-03-24 12:12:51 -07:00
Orion Henry
76491bc07d wip 2020-03-23 21:21:01 -07:00
Orion Henry
2e80b5b3a2 wip 2020-03-23 11:20:10 -07:00
Orion Henry
5ce3a177b1 wip 2020-03-19 14:14:08 -04:00
Orion Henry
7b866b98b9 wip - 7 tests passing 2020-03-17 12:59:08 -04:00
Orion Henry
ce21167174 wip 2020-03-16 15:12:27 -04:00
Orion Henry
d25137875b dont dupe change 2020-03-11 13:45:52 -04:00
Orion Henry
355f1cd5e2 fix transitive deps bug, refactor actor_histories, remove root_value 2020-03-11 11:04:43 -04:00
Orion Henry
00d00f56a9 cleanup Clock 2020-03-05 19:35:19 -05:00
Orion Henry
f663fa9fed update clock func name 2020-03-05 16:19:06 -05:00
Orion Henry
5309b44194 lazy fork, op.cmp(fix) 2020-03-05 14:42:34 -05:00
Orion Henry
420e4e43d2 fix history test 2020-03-05 13:10:15 -05:00
Orion Henry
f3070c0a8c get_missing_deps needs self.actor/seq too 2020-03-05 11:48:32 -05:00
Orion Henry
68048b801c diverge doc, less_or_equal fix 2020-03-05 11:20:12 -05:00
Alex Good
7a532e02f3 Fix tests, formatting, clippy 2020-03-05 11:15:01 +00:00
Orion Henry
2164d6f0d8 lets leak memory!! 2020-03-04 22:31:16 -05:00
Orion Henry
41012d2853 undo/redo stack 2020-03-04 22:21:06 -05:00
Orion Henry
8e63bc798a fix undoable bug, transit-js bug 2020-03-04 20:54:49 -05:00
Orion Henry
0e6f3ab027 replace is_applied 2020-03-04 15:07:18 -05:00
Orion Henry
5ca6f9c9a8 is_applied fix 2020-03-04 14:31:47 -05:00
Orion Henry
662c0bbdb6 toJS on immutable objects 2020-03-04 12:41:03 -05:00
Orion Henry
4a37cd70b9 dont GC state on merge 2020-03-04 12:17:25 -05:00
Orion Henry
1a3d3af655 adding history 2020-03-04 12:10:35 -05:00
Orion Henry
c96a5ff663 rustfmt 2020-03-04 10:17:13 -05:00
Orion Henry
cfd6018b90 use js wrapper 2020-03-04 10:06:49 -05:00
Alex Good
3d6a8607fd Add tweaks to WASm interface 2020-03-04 14:38:50 +00:00
Alex Good
2c2fb9704d Implement remaining methods on backend 2020-03-02 11:35:51 +00:00
Alex Good
8d4eccdf20 Reorder diffs in backend_test.js to reflect order of map iteration in rust 2020-02-29 15:20:35 +00:00
Alex Good
cdbb339920 Redo implemented 2020-02-28 17:26:41 +00:00
Orion Henry
8f47b8e0cf migrate to new changerequest format 2020-02-27 14:40:55 -05:00
Orion Henry
db9498c91c thorw error on duplicate change 2020-02-27 14:23:22 -05:00
Orion Henry
d79ee1a06c applyLocalChange() v1 2020-02-27 13:41:08 -05:00
Orion Henry
693aa8a6bb strip out 2020-02-26 13:07:48 -05:00
Orion Henry
0c2152ba57 migrated back to jsvalue::serde - fixed conflicts:[] 2020-02-26 12:29:34 -05:00
Orion Henry
3754e537c4 simple test not passing 2020-02-26 09:30:21 -05:00
Alex Good
5eb5329653 Merge branch 'master' into diff-generation 2020-02-25 19:44:18 +00:00
Alex Good
cd8af1a10a Run clippy 2020-02-25 18:13:41 +00:00
Orion Henry
ac5e02e63d test cleanup 2020-02-21 09:45:46 -05:00
Orion Henry
ae7884ecdd hand copy some tests from automerge - lets make them pass 2020-02-19 13:28:24 -07:00
Orion Henry
0b760fb21f simple cleanup 2020-02-19 12:52:13 -07:00
Alex Good
28cf791aa7 Add error to backend type signatures 2020-02-15 12:53:04 +00:00
Alex Good
5e5747cc1e First diff generation working 2020-02-15 12:45:18 +00:00
Alex Good
194732d910 Run rustfmt 2020-02-15 11:28:08 +00:00
Orion Henry
09c8f1ff76 migrate to serde-wasm-bindgen with result/error handling 2020-02-13 19:31:09 -05:00
Orion Henry
a898166119 Remove main_js 2020-02-13 19:17:18 -05:00
Orion Henry
43aab45e13 remove refcell and clone 2020-02-13 19:16:36 -05:00
Orion Henry
a0e3a433ca fix snake case 2020-02-13 18:59:10 -05:00
Orion Henry
a8e2b3943d bugfix with improper clone/into 2020-02-13 18:52:09 -05:00
Orion Henry
503244744c fix applyPatch tuple return type 2020-02-13 18:50:18 -05:00
Orion Henry
d6151e30dd added other wasm functions 2020-02-13 11:56:01 -05:00
Orion Henry
f41ea8d238 removed junk file 2020-02-13 11:41:14 -05:00
Orion Henry
f07c0bfe6d importing first pass at wasm-bindgen interface 2020-02-13 11:34:30 -05:00