Orion Henry
23a07699e2
typescript fixes
2022-10-06 22:42:33 +01:00
Orion Henry
238d05a0e3
move automerge-js onto the applyPatches model
2022-10-06 22:42:31 +01:00
Orion Henry
7a6dfcc289
The patch interface needs an accurate path per patch op
...
For the path to be accurate it needs to be calculated at the moment of op insert
not at commit. This is because the path may contain list indexes in parent
objects that could change by inserts and deletes later in the transaction.
The primary change was adding op_observer to the transaction object and
removing it from commit options. The beginnings of a wasm level
`applyPatch` system is laid out here.
2022-10-06 22:41:37 +01:00
Alex Good
a9e23308ce
Remove async automerge-wasm wrapper
...
By moving to wasm-bindgens `bundler` target rather than using the `web`
target we remove the need for an async initialization step on the
automerge-wasm package. This means that the automerge-js package can now
depend directly on automerge-wasm and perform initialization itself,
thus making automerge-js a drop in replacement for the `automerge` JS
package (hopefully).
We bump the versions of automerge-wasm
2022-10-04 17:23:37 +01:00
Orion Henry
ff90327b52
Merge pull request #414 from jkankiewicz/port_WASM_basic_tests_to_C
...
Port the WASM API's basic tests to C
2022-08-11 19:00:11 -05:00
Orion Henry
1a955e1f0d
fix some typescript errors - depricate default export of the wasm package
2022-08-11 18:24:21 -05:00
Jason Kankiewicz
14bd8fbe97
Port the WASM API's basic unit tests to C.
...
Weave the original TypeScript code into the C ports of the WASM API's
sync tests.
Fix misnomers in the WASM API's basic and sync unit tests.
Fix misspellings in the WASM API's basic and sync unit tests.
2022-08-06 16:18:59 -07:00
Orion Henry
9a0dd24714
fmt / tests
2022-06-01 08:08:01 -04:00
Orion Henry
8ce10dab69
some api changes/tweaks - basic js package
2022-05-31 13:49:18 -04:00
Orion Henry
210c6d2045
move types to their own package
2022-05-27 10:23:51 -07:00
Orion Henry
07f5678a2b
linting in wasm
2022-05-22 13:54:59 -04:00
Andrew Jeffery
16f1304345
Fix wasm test calling getChanges with wrong heads
2022-05-20 10:05:08 +01:00
Andrew Jeffery
d667552a98
Add increment observation for observer
2022-04-20 14:44:04 +01:00
Andrew Jeffery
b6fd7ac26e
Add op_observer to documents and transactions
...
This replaces the built-in patches with a more generic mechanism, and
includes a convenience observer which uses the old patches.
2022-04-19 17:30:05 +01:00
Orion Henry
965240d8f6
Merge remote-tracking branch 'origin/experiment' into wasm_readme
2022-04-08 18:07:44 -04:00
Andrew Jeffery
07553195fa
Update wasm and js with new names
2022-04-08 18:23:56 +01:00
Orion Henry
37d90c5b8e
optimize fork_at
2022-04-07 14:43:56 -04:00
Orion Henry
9fe8447d21
loadDoc -> load() and forkAt()
2022-04-07 01:19:27 -04:00
Orion Henry
4edb034a64
adding readme tests
2022-04-04 12:50:08 -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
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
3631ddfd55
Fix js side
2022-04-01 11:48:04 +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
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
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
Orion Henry
c51073c150
add paths/materialize to api
2022-03-09 17:53:30 -05:00
Orion Henry
beae33402a
update wasm test for set_object
2022-03-07 11:46:25 -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
c8c695618b
remove marks
2022-02-10 11:42:15 -05:00
Orion Henry
d1b0d41239
move marks into its own test
2022-02-10 11:17:15 -05:00
Orion Henry
9136f00e43
bugfix: duplicate seq not blocked on apply_changes, clone did not close a transaction, added fork and merge to wasm
2022-02-10 11:14:44 -05:00
Karissa McKelvey
98a65f98f7
Add failing test for decoding a conflicted merge
2022-02-09 13:17:07 -08:00
Orion Henry
0f49608dde
spans have types not names
2022-02-02 16:29:23 -05:00
Orion Henry
1d0c54ca9a
raw_spans with ids
2022-02-02 16:21:33 -05:00
Orion Henry
ee80837feb
raw_spans experiment
2022-02-02 15:55:41 -05:00
Orion Henry
836e6ba510
fix return types
2022-01-31 17:21:16 -05:00
Orion Henry
7b32faa238
all ts tests passing
2022-01-31 17:07:20 -05:00
Orion Henry
c49bf55ea4
almost working ts
2022-01-31 16:48:03 -05:00
Karissa McKelvey
d3f4be0654
Fix typescript errors in test
2022-01-31 13:03:27 -08:00