loro-crdt 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/base64/index.d.ts +72 -0
- package/base64/index.js +6406 -0
- package/base64/loro_wasm.d.ts +3253 -0
- package/base64/loro_wasm_bg-4a32f96e.js +64 -0
- package/bundler/loro_wasm.d.ts +10 -0
- package/bundler/loro_wasm_bg.js +18 -2
- package/bundler/loro_wasm_bg.wasm +0 -0
- package/bundler/loro_wasm_bg.wasm.d.ts +2 -0
- package/nodejs/loro_wasm.d.ts +10 -0
- package/nodejs/loro_wasm.js +18 -2
- package/nodejs/loro_wasm_bg.wasm +0 -0
- package/nodejs/loro_wasm_bg.wasm.d.ts +2 -0
- package/package.json +9 -7
- package/web/loro_wasm.d.ts +12 -0
- package/web/loro_wasm.js +18 -2
- package/web/loro_wasm_bg.wasm +0 -0
- package/web/loro_wasm_bg.wasm.d.ts +2 -0
- package/bundler/vite.config.d.ts +0 -2
- package/nodejs/vite.config.d.ts +0 -2
- package/web/vite.config.d.ts +0 -2
package/bundler/loro_wasm.d.ts
CHANGED
|
@@ -1929,6 +1929,16 @@ export class LoroDoc {
|
|
|
1929
1929
|
*/
|
|
1930
1930
|
debugHistory(): void;
|
|
1931
1931
|
/**
|
|
1932
|
+
* Get the number of changes in the oplog.
|
|
1933
|
+
* @returns {number}
|
|
1934
|
+
*/
|
|
1935
|
+
changeCount(): number;
|
|
1936
|
+
/**
|
|
1937
|
+
* Get the number of ops in the oplog.
|
|
1938
|
+
* @returns {number}
|
|
1939
|
+
*/
|
|
1940
|
+
opCount(): number;
|
|
1941
|
+
/**
|
|
1932
1942
|
* Get all of changes in the oplog.
|
|
1933
1943
|
*
|
|
1934
1944
|
* Note: this method is expensive when the oplog is large. O(n)
|
package/bundler/loro_wasm_bg.js
CHANGED
|
@@ -2139,6 +2139,22 @@ export class LoroDoc {
|
|
|
2139
2139
|
wasm.lorodoc_debugHistory(this.__wbg_ptr);
|
|
2140
2140
|
}
|
|
2141
2141
|
/**
|
|
2142
|
+
* Get the number of changes in the oplog.
|
|
2143
|
+
* @returns {number}
|
|
2144
|
+
*/
|
|
2145
|
+
changeCount() {
|
|
2146
|
+
const ret = wasm.lorodoc_changeCount(this.__wbg_ptr);
|
|
2147
|
+
return ret >>> 0;
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* Get the number of ops in the oplog.
|
|
2151
|
+
* @returns {number}
|
|
2152
|
+
*/
|
|
2153
|
+
opCount() {
|
|
2154
|
+
const ret = wasm.lorodoc_opCount(this.__wbg_ptr);
|
|
2155
|
+
return ret >>> 0;
|
|
2156
|
+
}
|
|
2157
|
+
/**
|
|
2142
2158
|
* Get all of changes in the oplog.
|
|
2143
2159
|
*
|
|
2144
2160
|
* Note: this method is expensive when the oplog is large. O(n)
|
|
@@ -6191,12 +6207,12 @@ export function __wbindgen_memory() {
|
|
|
6191
6207
|
return addHeapObject(ret);
|
|
6192
6208
|
};
|
|
6193
6209
|
|
|
6194
|
-
export function
|
|
6210
|
+
export function __wbindgen_closure_wrapper487(arg0, arg1, arg2) {
|
|
6195
6211
|
const ret = makeMutClosure(arg0, arg1, 11, __wbg_adapter_58);
|
|
6196
6212
|
return addHeapObject(ret);
|
|
6197
6213
|
};
|
|
6198
6214
|
|
|
6199
|
-
export function
|
|
6215
|
+
export function __wbindgen_closure_wrapper490(arg0, arg1, arg2) {
|
|
6200
6216
|
const ret = makeMutClosure(arg0, arg1, 9, __wbg_adapter_61);
|
|
6201
6217
|
return addHeapObject(ret);
|
|
6202
6218
|
};
|
|
Binary file
|
|
@@ -81,6 +81,8 @@ export function lorodoc_toJSON(a: number, b: number): void;
|
|
|
81
81
|
export function lorodoc_subscribe(a: number, b: number): number;
|
|
82
82
|
export function lorodoc_subscribeLocalUpdates(a: number, b: number): number;
|
|
83
83
|
export function lorodoc_debugHistory(a: number): void;
|
|
84
|
+
export function lorodoc_changeCount(a: number): number;
|
|
85
|
+
export function lorodoc_opCount(a: number): number;
|
|
84
86
|
export function lorodoc_getAllChanges(a: number): number;
|
|
85
87
|
export function lorodoc_getChangeAt(a: number, b: number, c: number): void;
|
|
86
88
|
export function lorodoc_getChangeAtLamport(a: number, b: number, c: number, d: number, e: number): void;
|
package/nodejs/loro_wasm.d.ts
CHANGED
|
@@ -1929,6 +1929,16 @@ export class LoroDoc {
|
|
|
1929
1929
|
*/
|
|
1930
1930
|
debugHistory(): void;
|
|
1931
1931
|
/**
|
|
1932
|
+
* Get the number of changes in the oplog.
|
|
1933
|
+
* @returns {number}
|
|
1934
|
+
*/
|
|
1935
|
+
changeCount(): number;
|
|
1936
|
+
/**
|
|
1937
|
+
* Get the number of ops in the oplog.
|
|
1938
|
+
* @returns {number}
|
|
1939
|
+
*/
|
|
1940
|
+
opCount(): number;
|
|
1941
|
+
/**
|
|
1932
1942
|
* Get all of changes in the oplog.
|
|
1933
1943
|
*
|
|
1934
1944
|
* Note: this method is expensive when the oplog is large. O(n)
|
package/nodejs/loro_wasm.js
CHANGED
|
@@ -2137,6 +2137,22 @@ class LoroDoc {
|
|
|
2137
2137
|
wasm.lorodoc_debugHistory(this.__wbg_ptr);
|
|
2138
2138
|
}
|
|
2139
2139
|
/**
|
|
2140
|
+
* Get the number of changes in the oplog.
|
|
2141
|
+
* @returns {number}
|
|
2142
|
+
*/
|
|
2143
|
+
changeCount() {
|
|
2144
|
+
const ret = wasm.lorodoc_changeCount(this.__wbg_ptr);
|
|
2145
|
+
return ret >>> 0;
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* Get the number of ops in the oplog.
|
|
2149
|
+
* @returns {number}
|
|
2150
|
+
*/
|
|
2151
|
+
opCount() {
|
|
2152
|
+
const ret = wasm.lorodoc_opCount(this.__wbg_ptr);
|
|
2153
|
+
return ret >>> 0;
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2140
2156
|
* Get all of changes in the oplog.
|
|
2141
2157
|
*
|
|
2142
2158
|
* Note: this method is expensive when the oplog is large. O(n)
|
|
@@ -6198,12 +6214,12 @@ module.exports.__wbindgen_memory = function() {
|
|
|
6198
6214
|
return addHeapObject(ret);
|
|
6199
6215
|
};
|
|
6200
6216
|
|
|
6201
|
-
module.exports.
|
|
6217
|
+
module.exports.__wbindgen_closure_wrapper487 = function(arg0, arg1, arg2) {
|
|
6202
6218
|
const ret = makeMutClosure(arg0, arg1, 11, __wbg_adapter_58);
|
|
6203
6219
|
return addHeapObject(ret);
|
|
6204
6220
|
};
|
|
6205
6221
|
|
|
6206
|
-
module.exports.
|
|
6222
|
+
module.exports.__wbindgen_closure_wrapper490 = function(arg0, arg1, arg2) {
|
|
6207
6223
|
const ret = makeMutClosure(arg0, arg1, 9, __wbg_adapter_61);
|
|
6208
6224
|
return addHeapObject(ret);
|
|
6209
6225
|
};
|
package/nodejs/loro_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -81,6 +81,8 @@ export function lorodoc_toJSON(a: number, b: number): void;
|
|
|
81
81
|
export function lorodoc_subscribe(a: number, b: number): number;
|
|
82
82
|
export function lorodoc_subscribeLocalUpdates(a: number, b: number): number;
|
|
83
83
|
export function lorodoc_debugHistory(a: number): void;
|
|
84
|
+
export function lorodoc_changeCount(a: number): number;
|
|
85
|
+
export function lorodoc_opCount(a: number): number;
|
|
84
86
|
export function lorodoc_getAllChanges(a: number): number;
|
|
85
87
|
export function lorodoc_getChangeAt(a: number, b: number, c: number): void;
|
|
86
88
|
export function lorodoc_getChangeAtLamport(a: number, b: number, c: number, d: number, e: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loro-crdt",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crdt",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"./bundler",
|
|
22
22
|
"./nodejs",
|
|
23
23
|
"./web",
|
|
24
|
+
"./base64",
|
|
24
25
|
"CHANGELOG.md",
|
|
25
26
|
"README.md",
|
|
26
27
|
"LICENSE",
|
|
@@ -33,21 +34,22 @@
|
|
|
33
34
|
"@rollup/plugin-alias": "^5.1.1",
|
|
34
35
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
35
36
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
36
|
-
"rollup": "^
|
|
37
|
-
"tslib": "^2.8.0",
|
|
38
|
-
"typescript": "^5.6.3",
|
|
39
|
-
"vite-plugin-top-level-await": "^1.2.2",
|
|
40
|
-
"vite-plugin-wasm": "^3.1.0",
|
|
37
|
+
"@rollup/plugin-wasm": "^6.2.2",
|
|
41
38
|
"@typescript-eslint/parser": "^6.2.0",
|
|
42
39
|
"@vitest/ui": "^1.0.4",
|
|
43
40
|
"esbuild": "^0.18.20",
|
|
44
41
|
"eslint": "^8.46.0",
|
|
45
|
-
"loro-crdt-old": "npm:loro-crdt@=0.16.0",
|
|
46
42
|
"loro-crdt-alpha-4": "npm:loro-crdt@=1.0.0-alpha.4",
|
|
43
|
+
"loro-crdt-old": "npm:loro-crdt@=0.16.0",
|
|
47
44
|
"prettier": "^3.0.0",
|
|
45
|
+
"rollup": "^3.20.1",
|
|
48
46
|
"rollup-plugin-dts": "^5.3.0",
|
|
49
47
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
48
|
+
"tslib": "^2.8.0",
|
|
49
|
+
"typescript": "^5.6.3",
|
|
50
50
|
"vite": "^4.2.1",
|
|
51
|
+
"vite-plugin-top-level-await": "^1.2.2",
|
|
52
|
+
"vite-plugin-wasm": "^3.1.0",
|
|
51
53
|
"vitest": "^1.4.0"
|
|
52
54
|
},
|
|
53
55
|
"scripts": {
|
package/web/loro_wasm.d.ts
CHANGED
|
@@ -1929,6 +1929,16 @@ export class LoroDoc {
|
|
|
1929
1929
|
*/
|
|
1930
1930
|
debugHistory(): void;
|
|
1931
1931
|
/**
|
|
1932
|
+
* Get the number of changes in the oplog.
|
|
1933
|
+
* @returns {number}
|
|
1934
|
+
*/
|
|
1935
|
+
changeCount(): number;
|
|
1936
|
+
/**
|
|
1937
|
+
* Get the number of ops in the oplog.
|
|
1938
|
+
* @returns {number}
|
|
1939
|
+
*/
|
|
1940
|
+
opCount(): number;
|
|
1941
|
+
/**
|
|
1932
1942
|
* Get all of changes in the oplog.
|
|
1933
1943
|
*
|
|
1934
1944
|
* Note: this method is expensive when the oplog is large. O(n)
|
|
@@ -3326,6 +3336,8 @@ export interface InitOutput {
|
|
|
3326
3336
|
readonly lorodoc_subscribe: (a: number, b: number) => number;
|
|
3327
3337
|
readonly lorodoc_subscribeLocalUpdates: (a: number, b: number) => number;
|
|
3328
3338
|
readonly lorodoc_debugHistory: (a: number) => void;
|
|
3339
|
+
readonly lorodoc_changeCount: (a: number) => number;
|
|
3340
|
+
readonly lorodoc_opCount: (a: number) => number;
|
|
3329
3341
|
readonly lorodoc_getAllChanges: (a: number) => number;
|
|
3330
3342
|
readonly lorodoc_getChangeAt: (a: number, b: number, c: number) => void;
|
|
3331
3343
|
readonly lorodoc_getChangeAtLamport: (a: number, b: number, c: number, d: number, e: number) => void;
|
package/web/loro_wasm.js
CHANGED
|
@@ -2131,6 +2131,22 @@ export class LoroDoc {
|
|
|
2131
2131
|
wasm.lorodoc_debugHistory(this.__wbg_ptr);
|
|
2132
2132
|
}
|
|
2133
2133
|
/**
|
|
2134
|
+
* Get the number of changes in the oplog.
|
|
2135
|
+
* @returns {number}
|
|
2136
|
+
*/
|
|
2137
|
+
changeCount() {
|
|
2138
|
+
const ret = wasm.lorodoc_changeCount(this.__wbg_ptr);
|
|
2139
|
+
return ret >>> 0;
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Get the number of ops in the oplog.
|
|
2143
|
+
* @returns {number}
|
|
2144
|
+
*/
|
|
2145
|
+
opCount() {
|
|
2146
|
+
const ret = wasm.lorodoc_opCount(this.__wbg_ptr);
|
|
2147
|
+
return ret >>> 0;
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2134
2150
|
* Get all of changes in the oplog.
|
|
2135
2151
|
*
|
|
2136
2152
|
* Note: this method is expensive when the oplog is large. O(n)
|
|
@@ -6113,11 +6129,11 @@ function __wbg_get_imports() {
|
|
|
6113
6129
|
const ret = wasm.memory;
|
|
6114
6130
|
return addHeapObject(ret);
|
|
6115
6131
|
};
|
|
6116
|
-
imports.wbg.
|
|
6132
|
+
imports.wbg.__wbindgen_closure_wrapper487 = function(arg0, arg1, arg2) {
|
|
6117
6133
|
const ret = makeMutClosure(arg0, arg1, 11, __wbg_adapter_58);
|
|
6118
6134
|
return addHeapObject(ret);
|
|
6119
6135
|
};
|
|
6120
|
-
imports.wbg.
|
|
6136
|
+
imports.wbg.__wbindgen_closure_wrapper490 = function(arg0, arg1, arg2) {
|
|
6121
6137
|
const ret = makeMutClosure(arg0, arg1, 9, __wbg_adapter_61);
|
|
6122
6138
|
return addHeapObject(ret);
|
|
6123
6139
|
};
|
package/web/loro_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -81,6 +81,8 @@ export function lorodoc_toJSON(a: number, b: number): void;
|
|
|
81
81
|
export function lorodoc_subscribe(a: number, b: number): number;
|
|
82
82
|
export function lorodoc_subscribeLocalUpdates(a: number, b: number): number;
|
|
83
83
|
export function lorodoc_debugHistory(a: number): void;
|
|
84
|
+
export function lorodoc_changeCount(a: number): number;
|
|
85
|
+
export function lorodoc_opCount(a: number): number;
|
|
84
86
|
export function lorodoc_getAllChanges(a: number): number;
|
|
85
87
|
export function lorodoc_getChangeAt(a: number, b: number, c: number): void;
|
|
86
88
|
export function lorodoc_getChangeAtLamport(a: number, b: number, c: number, d: number, e: number): void;
|
package/bundler/vite.config.d.ts
DELETED
package/nodejs/vite.config.d.ts
DELETED
package/web/vite.config.d.ts
DELETED