@lossless.org/client 1.16.0 → 1.17.1

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.
Files changed (30) hide show
  1. package/.smartconfig.json +20 -0
  2. package/dist_ts/00_commitinfo_data.js +1 -1
  3. package/dist_ts/nosqldb/classes.collection.d.ts +6 -1
  4. package/dist_ts/nosqldb/classes.collection.js +13 -2
  5. package/dist_ts/nosqldb/classes.distributedcoordinator.js +7 -7
  6. package/dist_ts/nosqldb/classes.doc.d.ts +79 -14
  7. package/dist_ts/nosqldb/classes.doc.js +395 -37
  8. package/dist_ts/nosqldb/classes.easystore.js +2 -2
  9. package/dist_ts/nosqldb/classes.watcher.js +2 -2
  10. package/dist_ts/nosqldb/plugins.d.ts +1 -2
  11. package/dist_ts/nosqldb/plugins.js +2 -3
  12. package/dist_ts/sqldb/clickhouse/smartclickhouse.classes.clickhousetable.js +2 -2
  13. package/dist_ts/sqldb/clickhouse/smartclickhouse.classes.smartclickhouse.js +2 -2
  14. package/dist_ts/sqldb/clickhouse/smartclickhouse.plugins.d.ts +1 -2
  15. package/dist_ts/sqldb/clickhouse/smartclickhouse.plugins.js +2 -3
  16. package/licenses/SOURCES.md +13 -0
  17. package/licenses/aws-sdk-js-v3.txt +201 -0
  18. package/licenses/nodable-entities.txt +21 -0
  19. package/package.json +4 -3
  20. package/readme.md +4 -2
  21. package/ts/00_commitinfo_data.ts +1 -1
  22. package/ts/nosqldb/classes.collection.ts +15 -1
  23. package/ts/nosqldb/classes.distributedcoordinator.ts +7 -7
  24. package/ts/nosqldb/classes.doc.ts +594 -61
  25. package/ts/nosqldb/classes.easystore.ts +1 -1
  26. package/ts/nosqldb/classes.watcher.ts +1 -1
  27. package/ts/nosqldb/plugins.ts +0 -2
  28. package/ts/sqldb/clickhouse/smartclickhouse.classes.clickhousetable.ts +1 -1
  29. package/ts/sqldb/clickhouse/smartclickhouse.classes.smartclickhouse.ts +1 -1
  30. package/ts/sqldb/clickhouse/smartclickhouse.plugins.ts +1 -2
@@ -246,7 +246,7 @@ export class EasyStore<T> {
246
246
  public async cleanUpEphemeral() {
247
247
  // Clean up ephemeral data periodically while connected
248
248
  while (this.smartdataDbRef.status === 'connected') {
249
- await plugins.smartdelay.delayFor(60000); // Check every minute
249
+ await plugins.smartpromise.delayFor(60000); // Check every minute
250
250
  // TODO: Implement actual cleanup logic for ephemeral data
251
251
  // For now, this prevents the infinite CPU loop
252
252
  }
@@ -67,7 +67,7 @@ export class SmartdataDbWatcher<T = any> extends EventEmitter {
67
67
  this.changeStream.on('change', this.onChange);
68
68
  this.changeStream.on('error', this.onStreamError);
69
69
  // Signal readiness after one tick
70
- plugins.smartdelay.delayFor(0).then(() => {
70
+ plugins.smartpromise.delayFor(0).then(() => {
71
71
  this.readyDeferred.resolve();
72
72
  });
73
73
  }
@@ -5,7 +5,6 @@ export { tsclass };
5
5
 
6
6
  // @pushrocks scope
7
7
  import * as lik from '@push.rocks/lik';
8
- import * as smartdelay from '@push.rocks/smartdelay';
9
8
  import * as smartlog from '@push.rocks/smartlog';
10
9
  import * as smartpromise from '@push.rocks/smartpromise';
11
10
  import * as smartrx from '@push.rocks/smartrx';
@@ -21,7 +20,6 @@ import * as nodeNet from 'node:net';
21
20
 
22
21
  export {
23
22
  lik,
24
- smartdelay,
25
23
  smartpromise,
26
24
  smartlog,
27
25
  smartrx,
@@ -301,7 +301,7 @@ export class ClickhouseTable<T extends Record<string, any>> {
301
301
  'SELECT count() AS cnt FROM system.mutations WHERE is_done = 0 AND database = {database:String} AND table = {table:String}',
302
302
  { database: this.options.database, table: this.options.tableName }, { signal: operation.signal });
303
303
  if (BigInt(rows[0]?.cnt ?? 0) === 0n) return;
304
- await plugins.smartdelay.delayFor(100);
304
+ await plugins.smartpromise.delayFor(100);
305
305
  }
306
306
  } finally { operation.dispose(); }
307
307
  }
@@ -83,7 +83,7 @@ export class SmartClickHouseDb {
83
83
  while (true) {
84
84
  operation.check();
85
85
  if (await this.clickhouseHttpClient.ping({ signal: operation.signal })) return;
86
- await plugins.smartdelay.delayFor(100, null, this.options.unref);
86
+ await plugins.smartpromise.delayFor(100, null, this.options.unref);
87
87
  }
88
88
  } finally { operation.dispose(); }
89
89
  }
@@ -1,5 +1,4 @@
1
- import * as smartdelay from '@push.rocks/smartdelay';
2
1
  import * as smartobject from '@push.rocks/smartobject';
3
2
  import * as smartpromise from '@push.rocks/smartpromise';
4
3
  import * as smartrx from '@push.rocks/smartrx';
5
- export { smartdelay, smartobject, smartpromise, smartrx };
4
+ export { smartobject, smartpromise, smartrx };