Orion Henry
a791714f74
extend documentation
2022-04-08 18:34:04 -04:00
Orion Henry
965240d8f6
Merge remote-tracking branch 'origin/experiment' into wasm_readme
2022-04-08 18:07:44 -04:00
Orion Henry
5555d50693
readme fixes
2022-04-08 17:10:53 -04:00
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
f5e8b998ca
expose getChangeByHash in wasm
2022-03-23 09:34:44 -04:00
Orion Henry
9e1a063bc0
v20 - object replacement char
2022-03-14 14:47:54 -04:00
Andrew Jeffery
2e49561ab2
Make splice take iterator instead of vec
2022-03-11 12:13:11 +00:00
Orion Henry
ee116bb5d7
object_type returns an option
2022-03-09 19:42:58 -05:00
Orion Henry
c51073c150
add paths/materialize to api
2022-03-09 17:53:30 -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
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
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