Orion Henry
757f1f058a
simplify test more
2022-04-18 17:03:32 -04:00
Orion Henry
c66d8a5b54
fmt
2022-04-18 16:43:28 -04:00
Orion Henry
ab09a7aa5d
make test simpler
2022-04-18 16:39:11 -04:00
Orion Henry
5923d67bea
duplicate changes in the queue could corrupt internal state
2022-04-18 16:31:13 -04:00
Andrew Jeffery
a65838076d
Add parents iterator
...
This allows users to have the convenience of getting all of the parents
of an object, whilst allowing them to terminate early when they have
found what they need.
2022-04-18 16:15:29 +01:00
Andrew Jeffery
122b227101
Borrow the key
2022-04-15 20:47:02 +01:00
Andrew Jeffery
fb3b740a57
Make range just be over maps
2022-04-15 15:01:28 +01:00
Andrew Jeffery
cdfc2d056f
Add double ended iterator for Range and Values
2022-04-15 14:39:44 +01:00
Orion Henry
d1407480d2
Merge pull request #333 from automerge/wasm_readme
...
Wasm readme
2022-04-08 19:05:50 -04:00
Orion Henry
93870d4127
smol str issue
2022-04-08 18:58:52 -04:00
Orion Henry
99dc6e2314
fix smol_str dep
2022-04-08 18:55:53 -04:00
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
09259e5f68
Merge pull request #326 from jeffa5/experiment-range
...
Add range and values queries
2022-04-08 17:19:47 -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
679b3d20ce
Add range_at and values_at to transactable
2022-04-08 18:19:03 +01:00
Andrew Jeffery
bcf191bea3
Add values_at
2022-04-08 18:18:48 +01:00
Andrew Jeffery
89eb598858
Fix keys_at
2022-04-08 18:18:48 +01:00
Andrew Jeffery
baa56b0b57
Add range_at
2022-04-08 18:18:48 +01:00
Andrew Jeffery
decd03a5d7
Add values iterator
2022-04-08 18:18:47 +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
4406a5b208
Add range query
...
This is a way of efficiently getting just the keys and values in a
range.
2022-04-08 18:17:54 +01:00
Orion Henry
609234bb9d
Merge pull request #330 from jeffa5/experiment-graphemes
...
Remove grapheme splitting internally
2022-04-08 12:54:54 -04:00
Andrew Jeffery
69f51b77f4
Merge pull request #334 from jeffa5/experiment-add-object-text-at
...
Add object replacement character in text_at
2022-04-08 05:38:05 -05:00
Andrew Jeffery
94a122478d
Add object replacement character in text_at
2022-04-08 10:13:52 +01:00
Andrew Jeffery
1bbcd4c151
Test that we can insert long strings into text
2022-04-08 09:36:48 +01:00
Andrew Jeffery
80ce447d72
Add conversion from &String for Value and ScalarValue
2022-04-08 09:36:48 +01:00
Andrew Jeffery
e4e9e9a691
Add tests for inserting into text
...
This ensures that we can still insert entire graphemes (small strings)
and break them into chars automatically.
2022-04-08 09:36:47 +01:00
Andrew Jeffery
842797f3aa
Use Unicode Scalars instead of graphemes in text
2022-04-08 09:35:59 +01:00
Orion Henry
9ca4792424
fmt
2022-04-07 14:53:14 -04:00
Orion Henry
37d90c5b8e
optimize fork_at
2022-04-07 14:43:56 -04:00
Orion Henry
9f3ae61b91
use doc.text() in js toString()
2022-04-07 14:24:12 -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
88bd14c07e
Merge pull request #309 from jeffa5/experiment-parent-obj
...
Add `parent_object` and `path_to_object` functions
2022-04-07 14:03:35 -04:00
Andrew Jeffery
06d2306d54
Add path_to_object
2022-04-07 15:04:00 +01:00
Andrew Jeffery
cc8134047a
Document parent_object
2022-04-07 14:52:25 +01:00
Andrew Jeffery
e9adc32486
Fixup OpIdSearch's key extraction
2022-04-07 14:51:31 +01:00
Andrew Jeffery
a88d49cf45
Fixup builds
2022-04-07 14:32:17 +01:00
Andrew Jeffery
ebb73738da
Remove B
2022-04-07 14:21:52 +01:00
Andrew Jeffery
bd2f252e0b
Try and fix parent object query
2022-04-07 14:21:17 +01:00
Andrew Jeffery
9e71736b88
Fixup after rebase
2022-04-07 14:21:16 +01:00
Andrew Jeffery
12a4987ce7
Use prop rather than exposing legacy::Key
2022-04-07 14:20:57 +01:00
Andrew Jeffery
aeadedd584
Add watch example
2022-04-07 14:20:57 +01:00
Andrew Jeffery
dcc6c68485
Add parent's id to the op tree
2022-04-07 14:20:56 +01:00
Andrew Jeffery
0f2bd3fb27
Make edit-trace vals be a string and use splice_text
2022-04-07 12:22:28 +01:00
Orion Henry
9fe8447d21
loadDoc -> load() and forkAt()
2022-04-07 01:19:27 -04:00
Andrew Jeffery
d65280518d
Merge pull request #329 from jeffa5/experiment-treequery-ref
...
Have queries be able to return references to scalars
2022-04-06 03:06:39 -05:00
Andrew Jeffery
53f6904ae5
Add to_owned method to get a static value
2022-04-04 21:13:09 +01:00