Skip to content

Commit

Permalink
automerge-js v0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
orionz committed Aug 22, 2022
1 parent 88f8976 commit d28767e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion automerge-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function free<T>(doc: Doc<T>): void;
export function from<T>(initialState: T | Doc<T>, actor?: ActorId): Doc<T>;
export function change<T>(doc: Doc<T>, options: string | ChangeOptions | ChangeFn<T>, callback?: ChangeFn<T>): Doc<T>;
export function emptyChange<T>(doc: Doc<T>, options: ChangeOptions): unknown;
export function load<T>(data: Uint8Array, actor: ActorId): Doc<T>;
export function load<T>(data: Uint8Array, actor?: ActorId): Doc<T>;
export function save<T>(doc: Doc<T>): Uint8Array;
export function merge<T>(local: Doc<T>, remote: Doc<T>): Doc<T>;
export function getActorId<T>(doc: Doc<T>): ActorId;
Expand Down
2 changes: 1 addition & 1 deletion automerge-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Orion Henry <orion@inkandswitch.com>",
"Martin Kleppmann"
],
"version": "0.1.9",
"version": "0.1.10",
"description": "Reimplementation of `automerge` on top of the automerge-wasm backend",
"homepage": "https://github.com/automerge/automerge-rs/tree/main/automerge-js",
"repository": "github:automerge/automerge-rs",
Expand Down
2 changes: 1 addition & 1 deletion automerge-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function emptyChange<T>(doc: Doc<T>, options: ChangeOptions) {
return rootProxy(state, true);
}

export function load<T>(data: Uint8Array, actor: ActorId) : Doc<T> {
export function load<T>(data: Uint8Array, actor?: ActorId) : Doc<T> {
const state = ApiHandler.load(data, actor)
return rootProxy(state, true);
}
Expand Down

0 comments on commit d28767e

Please sign in to comment.