Add the -DFEATURE_FLAG_STORAGE_V2 CMake option for toggling the "storage-v2" feature flag in a Cargo invocation. Correct the AMunknownValue struct misnomer. Ease the rebasing of changes to the AMvalue struct declaration with pending upstream changes to same.
Jason Kankiewicz
2022-08-07 08:40:06 -0700
Readme updates
Thomas Buckley-Houston
2022-08-10 08:43:26 -0400
bc28faee71Replace NULL with std::ptr::null() within the safety notes for @alexjg in #414.
Jason Kankiewicz
2022-08-07 20:04:49 -0700
50981acc5aReplace to_del!() and to_pos!() with to_index!() for @alexjg in #414.
Jason Kankiewicz
2022-08-07 19:37:48 -0700
7ec17b26a9Replace From<&AMvalue<'_>> for Result< am::ScalarValue, am::AutomergeError> with TryFrom<&AMvalue<'_>> for am::ScalarValue for @alexjg in #414.
Jason Kankiewicz
2022-08-07 19:24:47 -0700
568e08d097Add the -DFEATURE_FLAG_STORAGE_V2 CMake option for toggling the "storage-v2" feature flag in a Cargo invocation. Correct the AMunknownValue struct misnomer. Ease the rebasing of changes to the AMvalue struct declaration with pending upstream changes to same.
Jason Kankiewicz
2022-08-07 08:40:06 -0700
825342cbb1Remove reflexive struct reference from a Doxygen variable declaration.
Jason Kankiewicz
2022-08-07 08:07:00 -0700
04d0175113Add missing past-the-end checks to the unit tests for AMmapRange().
Jason Kankiewicz
2022-08-06 16:20:35 -0700
14bd8fbe97Port 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.
Jason Kankiewicz
2022-08-06 16:18:59 -0700
d48e366272Fix some documentation content bugs. Fix some documentation formatting bugs.
Jason Kankiewicz
2022-08-06 15:56:21 -0700
4217019cbcExpose automerge::AutoCommit::get_all() as AMlistGetAll() and AMmapGetAll(). Add symbolic last index specification to AMlist{Delete,Get,Increment}(). Add symbolic last index specification to AMlistPut{Bool,Bytes,Counter, F64,Int,Null,Object,Str,Timestamp,Uint}(). Prevent doc::utils::to_str(NULL) from segfaulting. Fix some documentation content bugs. Fix some documentation formatting bugs.
Jason Kankiewicz
2022-08-06 15:47:53 -0700
eeb75f74f4Fix AMstrsCmp(). Fix some documentation content bugs. Fix some documentation formatting bugs.
Jason Kankiewicz
2022-08-06 15:07:48 -0700
a22afdd70dExpose automerge::AutoCommit::get_change_by_hash() as AMgetChangeByHash(). Add the AM_CHANGE_HASH_SIZE macro define constant for AMgetChangeByHash(). Replace the literal 32 with the automerge::types::HASH_SIZE constant. Expose automerge::AutoCommit::splice() as AMsplice(). Add the automerge::error::AutomergeError::InvalidValueType variant for AMsplice(). Add push functionality to AMspliceText(). Fix some documentation content bugs. Fix some documentation formatting bugs.
Jason Kankiewicz
2022-08-06 15:04:46 -0700
Merge pull request #410 from jkankiewicz/add_range_functions_to_C_API
Orion Henry
2022-08-03 10:47:44 -0500
3a556c5991Expose Autocommit::fork_at(). Rename AMdup() to AMclone() to match the WASM API. Rename AMgetActor() to AMgetActorId() to match the WASM API. Rename AMsetActor() to AMsetActorId() to match the WASM API.
Jason Kankiewicz
2022-08-01 07:02:30 -0700
Add a storage-v2 feature flag
Alex Good
2022-07-24 22:31:03 +0100
69de8187a5Update the build system with the added and renamed source files. Defer BTreeMap creation until necessary for AMresult::Changes. Add AMvalueEqual() to enable direct comparison of two AMvalue structs regardless of their respective variants.
Jason Kankiewicz
2022-07-25 01:41:52 -0700
877744d40bAdd equality comparison to the AM* types from which it was missing. Add equality comparison to automerge::sync::message. Defer std::ffi::CString creation until necessary.
Jason Kankiewicz
2022-07-25 01:33:50 -0700
14b55c4a73Fix a bug with the iterators when they pass their initial positions in reverse. Rename AMstrings to AMstrs for consistency with the AMvalue.str field.
Jason Kankiewicz
2022-07-25 01:23:26 -0700
23fbb4917aReplace _INCLUDED with _H as the suffix for include guards in C headers like the one generated by cbindgen.
Jason Kankiewicz
2022-07-25 01:04:35 -0700
877dbbfce8Simplify the unit tests with AMresultStack et. al.
Jason Kankiewicz
2022-07-25 01:00:50 -0700
a22bcb916bPromoted ResultStack/StackNode from the quickstart example up to the library as AMresultStack so that it can appear in the README.md and be used to simplify the unit tests. Promoted free_results() to AMfreeStack() and push() to AMpush(). Added AMpop() because no stack should be without one.
Jason Kankiewicz
2022-07-25 00:50:40 -0700
42ab1639dbAdd heads argument to AMmapGet() to expose automerge::AutoCommit::get_at(). Add AMmapRange() to expose automerge::AutoCommit::map_range() and automerge::AutoCommit::map_range_at(). Add AMmapItems for AMlistRange(). Add AMmapItem for AMmapItems.
Jason Kankiewicz
2022-07-25 00:11:00 -0700
eba18d1ad6Add heads argument to AMlistGet() to expose automerge::AutoCommit::get_at(). Add AMlistRange() to expose automerge::AutoCommit::list_range() and automerge::AutoCommit::list_range_at(). Add AMlistItems for AMlistRange(). Add AMlistItem for AMlistItems.
Jason Kankiewicz
2022-07-24 22:41:32 -0700
ee68645f31Add AMfork() to expose automerge::AutoCommit:: fork(). Add AMobjValues() to expose automerge::AutoCommit::values() and automerge::AutoCommit::values_at(). Add AMobjIdActorId(), AMobjIdCounter(), and AMobjIdIndex() to expose automerge::ObjId::Id fields. Change AMactorId to reference an automerge::ActorId instead of owning one for AMobjIdActorId(). Add AMactorIdCmp() for AMobjIdActorId() comparison. Add AMobjItems for AMobjValues(). Add AMobjItem for AMobjItems. Add AMobjIdEqual() for property comparison. Rename to_doc!() to to_doc_mut!() and to_doc_const!() to to_doc!() for consistency with the Rust standard library.
Jason Kankiewicz
2022-07-24 22:23:54 -0700
cc19a37f01Remove the makefile for the original C API to prevent confusion.
Jason Kankiewicz
2022-07-23 08:48:19 -0700
15c9adf965Remove the obsolete test suite for the original C API to prevent confusion.
Jason Kankiewicz
2022-07-23 08:47:21 -0700
52a558ee4dCease writing a pristine copy of the generated header file into the root of the C API's source directory to prevent confusion.
Jason Kankiewicz
2022-07-23 08:44:41 -0700
af76e05ce3Add some basic fuzzing
Andrew Jeffery
2022-03-28 16:23:57 +0100
668b7b86caAdd license for unicode-idents
Alex Good
2022-07-17 12:24:46 +0100