loro-crdt 1.1.2 → 1.1.3

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.
@@ -2953,8 +2953,11 @@ export class LoroTree {
2953
2953
  */
2954
2954
  enableFractionalIndex(jitter: number): void;
2955
2955
  /**
2956
- * Disable the fractional index generation for Tree Position when
2957
- * you don't need the Tree's siblings to be sorted. The fractional index will always be set to default.
2956
+ * Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
2957
+ * The fractional index will always be set to the same default value 0.
2958
+ *
2959
+ * After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
2960
+ * and `tree.createAt()`.
2958
2961
  */
2959
2962
  disableFractionalIndex(): void;
2960
2963
  /**
@@ -4852,8 +4852,11 @@ export class LoroTree {
4852
4852
  wasm.lorotree_enableFractionalIndex(this.__wbg_ptr, jitter);
4853
4853
  }
4854
4854
  /**
4855
- * Disable the fractional index generation for Tree Position when
4856
- * you don't need the Tree's siblings to be sorted. The fractional index will always be set to default.
4855
+ * Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
4856
+ * The fractional index will always be set to the same default value 0.
4857
+ *
4858
+ * After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
4859
+ * and `tree.createAt()`.
4857
4860
  */
4858
4861
  disableFractionalIndex() {
4859
4862
  wasm.lorotree_disableFractionalIndex(this.__wbg_ptr);
Binary file
@@ -2953,8 +2953,11 @@ export class LoroTree {
2953
2953
  */
2954
2954
  enableFractionalIndex(jitter: number): void;
2955
2955
  /**
2956
- * Disable the fractional index generation for Tree Position when
2957
- * you don't need the Tree's siblings to be sorted. The fractional index will always be set to default.
2956
+ * Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
2957
+ * The fractional index will always be set to the same default value 0.
2958
+ *
2959
+ * After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
2960
+ * and `tree.createAt()`.
2958
2961
  */
2959
2962
  disableFractionalIndex(): void;
2960
2963
  /**
@@ -4855,8 +4855,11 @@ class LoroTree {
4855
4855
  wasm.lorotree_enableFractionalIndex(this.__wbg_ptr, jitter);
4856
4856
  }
4857
4857
  /**
4858
- * Disable the fractional index generation for Tree Position when
4859
- * you don't need the Tree's siblings to be sorted. The fractional index will always be set to default.
4858
+ * Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
4859
+ * The fractional index will always be set to the same default value 0.
4860
+ *
4861
+ * After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
4862
+ * and `tree.createAt()`.
4860
4863
  */
4861
4864
  disableFractionalIndex() {
4862
4865
  wasm.lorotree_disableFractionalIndex(this.__wbg_ptr);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loro-crdt",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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",
@@ -27,6 +27,11 @@
27
27
  "LICENSE",
28
28
  "package.json"
29
29
  ],
30
+ "scripts": {
31
+ "build-dev": "deno run -A ./scripts/build.ts dev && rollup -c && deno run -A ./scripts/post-rollup.ts && npm run test",
32
+ "build-release": "deno run -A ./scripts/build.ts release && rollup -c && deno run -A ./scripts/post-rollup.ts && npm run test",
33
+ "test": "node --expose-gc ./node_modules/vitest/vitest.mjs run && npx tsc --noEmit && cd ./deno_tests && deno test -A"
34
+ },
30
35
  "homepage": "https://loro.dev",
31
36
  "author": "",
32
37
  "license": "MIT",
@@ -51,10 +56,5 @@
51
56
  "vite-plugin-top-level-await": "^1.2.2",
52
57
  "vite-plugin-wasm": "^3.1.0",
53
58
  "vitest": "^1.4.0"
54
- },
55
- "scripts": {
56
- "build-dev": "deno run -A ./scripts/build.ts dev && rollup -c && deno run -A ./scripts/post-rollup.ts && npm run test",
57
- "build-release": "deno run -A ./scripts/build.ts release && rollup -c && deno run -A ./scripts/post-rollup.ts && npm run test",
58
- "test": "node --expose-gc ./node_modules/vitest/vitest.mjs run && npx tsc --noEmit && cd ./deno_tests && deno test -A"
59
59
  }
60
- }
60
+ }
@@ -2953,8 +2953,11 @@ export class LoroTree {
2953
2953
  */
2954
2954
  enableFractionalIndex(jitter: number): void;
2955
2955
  /**
2956
- * Disable the fractional index generation for Tree Position when
2957
- * you don't need the Tree's siblings to be sorted. The fractional index will always be set to default.
2956
+ * Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
2957
+ * The fractional index will always be set to the same default value 0.
2958
+ *
2959
+ * After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
2960
+ * and `tree.createAt()`.
2958
2961
  */
2959
2962
  disableFractionalIndex(): void;
2960
2963
  /**
package/web/loro_wasm.js CHANGED
@@ -4844,8 +4844,11 @@ export class LoroTree {
4844
4844
  wasm.lorotree_enableFractionalIndex(this.__wbg_ptr, jitter);
4845
4845
  }
4846
4846
  /**
4847
- * Disable the fractional index generation for Tree Position when
4848
- * you don't need the Tree's siblings to be sorted. The fractional index will always be set to default.
4847
+ * Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
4848
+ * The fractional index will always be set to the same default value 0.
4849
+ *
4850
+ * After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
4851
+ * and `tree.createAt()`.
4849
4852
  */
4850
4853
  disableFractionalIndex() {
4851
4854
  wasm.lorotree_disableFractionalIndex(this.__wbg_ptr);
Binary file