Commit graph

918 commits

Author SHA1 Message Date
Jason Kankiewicz
7bdf726ce1 Sublimated memory management in the quickstart
example.
2022-06-20 02:07:33 -07:00
Jason Kankiewicz
47c5277406 Added AMkeys().
Removed `AMobjSizeAt()`.
Added an optional `AMchangeHashes` argument to `AMobjSize()`.
Replaced the term "length" with "size" in the
documentation.
2022-06-20 01:53:31 -07:00
Jason Kankiewicz
ea8bd32cc1 Added the AMstrings type. 2022-06-20 01:38:32 -07:00
Jason Kankiewicz
be130560f0 Added a check for a 0 increment in the iterator
types.
Improved the documentation for the `detail` field in the iterator types.
2022-06-20 01:34:36 -07:00
Jason Kankiewicz
103d729bd1 Replaced the term "length" with "size" in the
documentation.
2022-06-20 01:31:08 -07:00
Jason Kankiewicz
7b30c84a4c Added AMchangeHashesInit(). 2022-06-20 01:17:20 -07:00
Jason Kankiewicz
39db64e5d9 Publicized the AMbyteSpan fields. 2022-06-20 01:11:30 -07:00
Jason Kankiewicz
32baae1a31 Hoisted InvalidChangeHashSlice into the
`Automerge` namespace.
2022-06-20 01:09:50 -07:00
Ryan Fitzgerald
88073c0cf4 Fix TypeScript syntax error in automerge-wasm definitions
I'm not sure if there are some configurations under which this works,
but I get

    index.d.ts:2:21 - error TS1005: ';' expected.

    2 export default from "automerge-types"
                          ~~~~~~~~~~~~~~~~~

both in my project that depends on `automerge-wasm` and when I run `tsc`
in this repo.

It seems like `export default from` is still a Stage 1 proposal, so I
wouldn't expect it to be supported by TS, although I couldn't really
find hard evidence one way or the other. It does seem like this syntax
should be exactly equivalent based on the proposal doc though.
2022-06-17 20:11:26 -07:00
Orion Henry
f5e9e3537d v0.1.4 2022-06-16 17:50:46 -04:00
Orion Henry
44b6709a60 add getBackend to automerge-js 2022-06-16 17:49:32 -04:00
Orion Henry
1610f6d6a6
Merge pull request #391 from jkankiewicz/expose_ActorId_to_C_API
Add `AMactorId` to the C API
2022-06-16 21:57:56 +02:00
Orion Henry
40b32566f4
Merge pull request #390 from jkankiewicz/make_C_API_testing_explicit
Make C API testing explicit
2022-06-16 21:56:26 +02:00
Orion Henry
3a4af9a719
Merge pull request #371 from automerge/typescript
Convert automerge-js to typescript
2022-06-16 21:52:22 +02:00
Jason Kankiewicz
400b8acdff Switched the AMactorId unit test suite to group
setup/teardown.
Removed superfluous group state from the `AMactorIdInit()` test.
2022-06-14 23:16:45 -07:00
Jason Kankiewicz
2f37d194ba Asserted that the string forms of two random
`AMactorId` structs are unequal.
2022-06-14 23:04:18 -07:00
Orion Henry
ceecef3b87 update list of read methods in c readme 2022-06-14 21:28:10 -04:00
Jason Kankiewicz
6de9ff620d Moved hex_to_bytes() so that it could be shared
by the unit test suites for `AMactorId` and `AMdoc` functions.
2022-06-14 00:52:06 -07:00
Jason Kankiewicz
84fa83a3f0 Added AMactorId.
Updated `AMchangeActorId()`.
Updated `AMsetActor()`.
Removed `AMgetActorHex()`.
Removed `AMsetActorHex()`.
2022-06-14 00:49:20 -07:00
Jason Kankiewicz
ac3709e670 Hoisted InvalidActorId into the automerge
namespace.
2022-06-14 00:38:55 -07:00
Jason Kankiewicz
71d8a7e717 Removed the superfluous AutomergeError::HexDecode
variant.
2022-06-14 00:37:42 -07:00
Jason Kankiewicz
bdedafa021 Decouple the "test_automerge" build target from
the "ALL" target.
2022-06-13 12:01:54 -07:00
Jason Kankiewicz
efa0a5624a Removed renamed unit test suite source files. 2022-06-11 21:04:36 -07:00
Jason Kankiewicz
4efe9a4f68 Replaced "cmake -E make_directory" invocation with
"mkdir -p" invocation for consistency with the other CI scripts.
2022-06-11 21:03:26 -07:00
Jason Kankiewicz
4f7843e007 Removed CMocka from the "docs" CI workflow's list
of dependencies.
2022-06-11 20:57:28 -07:00
Jason Kankiewicz
30dd3da578 Updated the CMake build CI script to build the
"test_automerge" target explicitly.
2022-06-11 20:55:44 -07:00
Jason Kankiewicz
6668f79a6e Decouple the "test_automerge" build target from
the "ALL" target.
2022-06-11 20:53:17 -07:00
Orion Henry
0c9e77b644 added a test to ensure we dont break counter serialization 2022-06-09 12:45:20 +02:00
Orion Henry
d6bce697a5 normalize edit trace 2022-06-09 12:42:43 +02:00
Orion Henry
22117f4997
Merge pull request #387 from jeromegn/counter-ser-current
Serialize Counter with it's current value instead of start value
2022-06-09 03:42:28 -07:00
Jerome Gravel-Niquet
b20d04b0f2
serialize Counter with it's current value instead of start value 2022-06-08 14:00:03 -04:00
Orion Henry
d5c07f22af
Merge pull request #385 from jkankiewicz/add_some_functions_from_README
Add some functions from the README.md file
2022-06-07 06:33:44 -07:00
Jason Kankiewicz
bfa85050b8 Fix Rust code formatting violations. 2022-06-07 00:29:58 -07:00
Jason Kankiewicz
1c78aab5f0 Fixed the AMsyncStateDecode() documentation. 2022-06-07 00:23:41 -07:00
Jason Kankiewicz
ad7dd07cf7 Simplify the names of the unit test suites' source
files.
2022-06-07 00:21:22 -07:00
Jason Kankiewicz
2e84c6e9ef Added AMlistIncrement(). 2022-06-07 00:15:37 -07:00
Jason Kankiewicz
0ecb9e7dce Added AMmapIncrement(). 2022-06-07 00:14:42 -07:00
Jason Kankiewicz
99ab5b4ed7 Added AMgetChangesAdded().
Added `AMpendingOps()`.
Added `AMrollback()`.
Added `AMsaveIncremental()`.
Fixed the `AMmerge()` documentation.
2022-06-07 00:14:11 -07:00
Andrew Jeffery
7439a49e37 Fix automerge-c html nesting 2022-06-06 19:49:18 +01:00
Andrew Jeffery
7a9786a146 Fix index.html location 2022-06-06 19:35:50 +01:00
Andrew Jeffery
82fe420a10 Use cmocka dev instead of lib 2022-06-06 19:11:07 +01:00
Andrew Jeffery
7d2be219ac Update cmocka to be libcmocka0 for install 2022-06-06 19:05:02 +01:00
Andrew Jeffery
00ab853813 Add cmake docs deps 2022-06-06 18:40:25 +01:00
Andrew Jeffery
97ef4fe7cd
Merge pull request #384 from jeffa5/serve-c-docs
Build c docs in CI
2022-06-06 18:31:48 +01:00
Andrew Jeffery
5c1cbc8eeb Build c docs in CI 2022-06-06 18:21:14 +01:00
Orion Henry
cf264f3bf4
Merge pull request #382 from jkankiewicz/obfuscate_iterator_fields
Remove artificial iteration from the C API
2022-06-06 06:41:45 -07:00
Jason Kankiewicz
8222ec1705 Move the AMsyncHaves.ptr field into the
`sync::haves::Detail` struct.
Change `AMsyncHavesAdvance()`, `AMsyncHavesNext()` and `AMsyncHavesPrev()`
to interpret their `n` argument relatively instead of absolutely.
Renamed `AMsyncHavesReverse()` to `AMsyncHavesReversed()`.
Updated the C API's documentation for the `AMsyncHaves` struct.
2022-06-05 14:41:48 -07:00
Jason Kankiewicz
74632a0512 Move the AMchanges.ptr field into the
`changes::Detail` struct.
Change `AMchangesAdvance()`, `AMchangesNext()` and `AMchangesPrev()` to
interpret their `n` argument relatively instead of absolutely.
Renamed `AMchangesReverse()` to `AMchangesReversed()`.
Updated the C API's documentation for the `AMchanges` struct.
2022-06-05 14:37:32 -07:00
Jason Kankiewicz
7e1ae60bdc Move the AMchangeHashes.ptr field into the
`change_hashes::Detail` struct.
Change `AMchangeHashesAdvance()`, `AMchangeHashesNext()` and
`AMchangeHashesPrev()` to interpret their `n` argument relatively
instead of absolutely.
Renamed `AMchangeHashesReverse()` to `AMchangeHashesReversed()`.
Updated the C API's documentation for the `AMchangeHashes` struct.
2022-06-05 14:32:55 -07:00
Jason Kankiewicz
92d6fff22f Compensate for the removal of the AMchanges.ptr
member.
2022-06-05 14:28:33 -07:00