@milaboratories/pl-tree 1.4.21 → 1.4.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-tree",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "description": "Reactive pl tree state",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "utility-types": "^3.11.0",
22
22
  "zod": "~3.23.8",
23
23
  "@milaboratories/computable": "^2.3.4",
24
- "@milaboratories/pl-client": "^2.7.2",
24
+ "@milaboratories/pl-client": "^2.7.4",
25
25
  "@milaboratories/ts-helpers": "^1.1.3"
26
26
  },
27
27
  "devDependencies": {
@@ -4,6 +4,7 @@ import { TestStructuralResourceType1 } from './test_utils';
4
4
  import { Computable } from '@milaboratories/computable';
5
5
  import { SynchronizedTreeState } from './synchronized_tree';
6
6
  import { ConsoleLoggerAdapter } from '@milaboratories/ts-helpers';
7
+ import tp from 'timers/promises';
7
8
 
8
9
  test('simple synchronized tree test', async () => {
9
10
  await TestHelpers.withTempRoot(async (pl) => {
@@ -54,6 +55,7 @@ test('simple synchronized tree test', async () => {
54
55
  },
55
56
  { sync: true }
56
57
  );
58
+ await tp.setTimeout(10);
57
59
 
58
60
  await theComputable.refreshState();
59
61
 
@@ -75,6 +77,7 @@ test('simple synchronized tree test', async () => {
75
77
  },
76
78
  { sync: true }
77
79
  );
80
+ await tp.setTimeout(10);
78
81
 
79
82
  await theComputable.refreshState();
80
83
 
@@ -93,6 +96,7 @@ test('simple synchronized tree test', async () => {
93
96
  },
94
97
  { sync: true }
95
98
  );
99
+ await tp.setTimeout(10);
96
100
 
97
101
  await theComputable.refreshState();
98
102
 
@@ -155,6 +159,7 @@ test('synchronized tree test with KV', async () => {
155
159
  },
156
160
  { sync: true }
157
161
  );
162
+ await tp.setTimeout(10);
158
163
 
159
164
  await theComputable.refreshState();
160
165
 
@@ -168,6 +173,7 @@ test('synchronized tree test with KV', async () => {
168
173
  tx.setKValue(r2, 'b', 'hi!');
169
174
  await tx.commit();
170
175
  });
176
+ await tp.setTimeout(10);
171
177
 
172
178
  await theComputable.refreshState();
173
179
 
@@ -195,6 +201,7 @@ test('termination test', async () => {
195
201
  },
196
202
  { sync: true }
197
203
  );
204
+ await tp.setTimeout(10);
198
205
 
199
206
  const treeState = await SynchronizedTreeState.init(
200
207
  pl,