Andrew Jeffery
07553195fa
Update wasm and js with new names
2022-04-08 18:23:56 +01:00
Andrew Jeffery
1ca49cfa9b
Add range to transactable and rename value to get
...
Also changes values to get_conflicts for more clarity on what it does
and opening up the name for iterating over values.
2022-04-08 18:18:22 +01:00
Andrew Jeffery
842797f3aa
Use Unicode Scalars instead of graphemes in text
2022-04-08 09:35:59 +01:00
Orion Henry
37d90c5b8e
optimize fork_at
2022-04-07 14:43:56 -04:00
Orion Henry
f5d858df82
Merge remote-tracking branch 'origin/experiment' into wasm_readme
2022-04-07 14:23:52 -04:00
Orion Henry
6d9ed5cde4
start at 0.0.1
2022-04-07 14:17:16 -04:00
Orion Henry
9fe8447d21
loadDoc -> load() and forkAt()
2022-04-07 01:19:27 -04:00
Andrew Jeffery
330aebb44a
Make wasm ScalarValue take a cow
2022-04-04 21:04:23 +01:00
Orion Henry
17acab25b5
fix _obj notation
2022-04-04 12:51:54 -04:00
Orion Henry
0d83f5f595
decorate
2022-04-04 12:50:13 -04:00
Orion Henry
777a516051
spelling/grammar
2022-04-04 12:50:13 -04:00
Orion Henry
4edb034a64
adding readme tests
2022-04-04 12:50:08 -04:00
Orion Henry
3737ad316b
spelling
2022-04-04 12:37:59 -04:00
Orion Henry
051a0bbb54
early draft of the readme
2022-04-04 12:37:59 -04:00
Orion Henry
83c08344e7
wip2
2022-04-04 12:37:57 -04:00
Orion Henry
d8c126d1bc
wip
2022-04-04 12:35:28 -04:00
Andrew Jeffery
fa2971a29a
Have value be a reference for scalars
2022-04-04 12:47:08 +01:00
Andrew Jeffery
d331ceb6d4
Rename set to put and set_object to put_object
2022-04-01 13:40:58 +01:00
Andrew Jeffery
632857a4e6
Rename del and inc in wasm and js
2022-04-01 13:36:26 +01:00
Andrew Jeffery
1a66dc7ab1
Use full names for delete and increment
2022-04-01 13:36:00 +01:00
Andrew Jeffery
3631ddfd55
Fix js side
2022-04-01 11:48:04 +01:00
Andrew Jeffery
0c16dfe2aa
Change js function names to camelCase
2022-04-01 11:46:43 +01:00
Orion Henry
ab580df947
Merge remote-tracking branch 'origin/experiment' into getnerate-patches
2022-03-30 13:04:51 -06:00
Martin Kleppmann
f83fb5ec61
More tests
2022-03-30 13:12:07 -04:00
Martin Kleppmann
ab4dc331ac
cargo fmt
2022-03-30 13:12:07 -04:00
Martin Kleppmann
a9eddd88cc
Bugfix: resurrection of deleted list elements
2022-03-30 13:12:07 -04:00
Martin Kleppmann
ba177c3d83
Fix broken handling of conflicts on list elements
2022-03-30 13:12:07 -04:00
Martin Kleppmann
fa0a8953dc
More tests and comments
2022-03-30 13:12:07 -04:00
Martin Kleppmann
289dd95196
Fix index calculation for insertions at the head
2022-03-30 13:12:07 -04:00
Martin Kleppmann
c908979372
Fix search for the correct insertion position
2022-03-30 13:12:07 -04:00
Martin Kleppmann
7025bb6541
Tests and fixes for list patches
2022-03-30 13:12:07 -04:00
Martin Kleppmann
94ff10f690
Rename and reformat a bit
2022-03-30 13:12:07 -04:00
Martin Kleppmann
26efee509d
First patch implementation from pairing session with Orion
2022-03-30 13:12:01 -04:00
Orion Henry
38f3bcb401
0.0.25
2022-03-30 13:02:43 -04:00
Orion Henry
21a7bd91dc
fix attr del bug
2022-03-30 12:39:55 -04:00
Rae Mac
4e304d11c6
attribute deletion test
2022-03-29 16:06:08 -07:00
Orion Henry
c149da3a6d
attr bug
2022-03-26 13:31:39 -04:00
Orion Henry
af02ba6b86
0.0.23 - getChangeByHash
2022-03-23 09:49:06 -04:00
Orion Henry
657bd22d61
Merge branch 'experiment' into marks
2022-03-23 09:35:20 -04:00
Orion Henry
f5e8b998ca
expose getChangeByHash in wasm
2022-03-23 09:34:44 -04:00
Orion Henry
2663e0315c
fix test
2022-03-22 13:38:46 -04:00
Rae Mac
bc98b1ecc9
Example test for confusing behavior
2022-03-22 10:06:13 -07:00
Orion Henry
84619d8331
Merge branch 'changed_objs' into marks
2022-03-21 17:39:34 -04:00
Orion Henry
5d4e1f0c42
return touched objects from apply_changes
2022-03-21 17:36:11 -04:00
Orion Henry
25afa0b12b
unmark() - 0.0.21
2022-03-21 13:36:01 -04:00
Orion Henry
0cf54c36a8
0.0.21
2022-03-17 19:15:21 -04:00
Orion Henry
99b1127f5c
Merge branch 'experiment' into marks
2022-03-17 14:42:35 -04:00
Orion Henry
9e1a063bc0
v20 - object replacement char
2022-03-14 14:47:54 -04:00
Orion Henry
ae87d7bc00
v20 - object replacement char
2022-03-14 14:47:12 -04:00
Andrew Jeffery
2e49561ab2
Make splice take iterator instead of vec
2022-03-11 12:13:11 +00:00
Blaine Cook
e00797c512
test for attribution correctly not surfacing temporary text (inserted and deleted after baseline)
2022-03-10 15:42:57 -08:00
Orion Henry
57a0f62b75
v0.0.19 wasm
2022-03-10 09:23:23 -05:00
Orion Henry
ee116bb5d7
object_type returns an option
2022-03-09 19:42:58 -05:00
Orion Henry
a0f78561c4
Merge branch 'paths' into marks
2022-03-09 19:28:10 -05:00
Orion Henry
c51073c150
add paths/materialize to api
2022-03-09 17:53:30 -05:00
Andrew Jeffery
b14d874dfc
Move sync structs to module
2022-03-09 15:15:36 -05:00
Andrew Jeffery
aad4852e30
Misc API updates
...
- Commit now returns just a single hash rather than a vec. Since the
change we create from committing has all of the heads as deps there
can only be one hash/head after committing.
- Apply changes now takes a Vec rather than a slice. This avoids having
to clone them inside.
- transact_with now passes the result of the closure to the commit
options function
- Remove patch struct
- Change receive_sync_message to return a () instead of the
`Option<Patch>`
- Change `Transaction*` structs to just `*` and use the transaction
module
- Make CommitOptions fields public
2022-03-09 15:14:22 -05:00
Orion Henry
b81e0fd619
update wasm test for set_object
2022-03-09 15:14:20 -05:00
Orion Henry
f230be8aec
change the wasm commit back to an array
2022-03-09 10:41:14 -05:00
Andrew Jeffery
e26837b09d
Move sync structs to module
2022-03-09 12:43:52 +00:00
Andrew Jeffery
d00cee1637
Misc API updates
...
- Commit now returns just a single hash rather than a vec. Since the
change we create from committing has all of the heads as deps there
can only be one hash/head after committing.
- Apply changes now takes a Vec rather than a slice. This avoids having
to clone them inside.
- transact_with now passes the result of the closure to the commit
options function
- Remove patch struct
- Change receive_sync_message to return a () instead of the
`Option<Patch>`
- Change `Transaction*` structs to just `*` and use the transaction
module
- Make CommitOptions fields public
2022-03-09 12:33:20 +00:00
Orion Henry
cbf1ac03b2
added attribute2() - janky version
2022-03-08 12:00:02 -05:00
Orion Henry
4094e82f04
rename tests to attribute
2022-03-07 13:50:05 -05:00
Orion Henry
42446fa5c2
blame -> attribute
2022-03-07 13:45:56 -05:00
Orion Henry
beae33402a
update wasm test for set_object
2022-03-07 11:46:25 -05:00
Orion Henry
6d5f16c9cd
Merge branch 'experiment' into marks
2022-03-04 17:26:14 -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
dbbdd616fd
clippy/fmt
2022-03-04 14:16:06 -05:00
Orion Henry
523af57a26
Merge branch 'experiment' into marks
2022-03-04 14:09:00 -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
cd5e734735
Make decode_change an associated function
2022-03-04 13:09:29 +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
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
682b8007b9
Borrow exid to avoid &ROOT everywhere
2022-03-03 09:05:08 +00:00
Orion Henry
d195a81d49
v17 --release
2022-03-02 18:35:58 -05: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
Andrew Jeffery
8f2877a67c
Fix wasm
2022-03-02 17:24:15 +00:00
Orion Henry
2747d5bf2b
move wasm to feature flag
2022-03-02 11:05:48 -05:00
Orion Henry
4c11c86532
v0.0.16 - properly blame items deleted by both
2022-03-02 10:27:54 -05:00
Orion Henry
42b6ffe9d8
v0.0.15
2022-03-02 09:33:04 -05:00
Orion Henry
b21b59e6a1
blame v0.1
2022-03-01 22:09:21 -05:00
Andrew Jeffery
f51e44c211
Update keys iterator to iterate at the tree level
...
No more big vec allocation now!
2022-02-25 17:31:33 +00:00
Andrew Jeffery
a726cf33c7
Add keys struct for iteration
...
This at least helps to not convert all of the keys to their strings
automatically but still allocates a vec.
2022-02-25 17:31:14 +00:00
Orion Henry
e07211278f
v0.0.14
2022-02-24 18:46:20 -05:00
Orion Henry
3c3f411329
update to new autotransaction api
2022-02-24 18:43:44 -05:00
Orion Henry
5aad691e31
Merge branch 'experiment' into marks
2022-02-24 18:10:19 -05:00
Orion Henry
337fabe5a9
Merge pull request #271 from jeffa5/experiment-txn
...
Transaction API
2022-02-24 18:07:05 -05:00
Orion Henry
872efc5756
v10
2022-02-24 17:41:55 -05:00
Orion Henry
e37395f975
make() defaults to text
2022-02-24 17:41:35 -05:00
Orion Henry
a84fa64554
change MAP,LIST,TEXT to be {},[],'' - allow recursion
2022-02-24 17:41:33 -05:00
Orion Henry
a37d4a6870
spans will now respect non-graphmem values
2022-02-24 16:41:01 -05:00
Blaine Cook
5eb5714c13
add failing test for marks handling in 3-way merge scenario
2022-02-24 16:24:17 -05:00
Blaine Cook
4f9b95b5b8
add test for merge behaviour of marks
2022-02-24 16:24:17 -05:00
Orion Henry
06302e4a17
make() defaults to text
2022-02-24 00:22:56 -05:00
Orion Henry
2fc0705907
change MAP,LIST,TEXT to be {},[],'' - allow recursion
2022-02-23 19:43:13 -05:00
Orion Henry
36b4f08d20
wasm to 0.0.7
2022-02-22 12:13:01 -05:00
Orion Henry
015e8ce465
choking on bad value function
2022-02-22 12:12:59 -05:00