vis-data 8.0.2 → 8.0.4

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 (58) hide show
  1. package/declarations/data-set-part.d.ts +0 -1
  2. package/declarations/data-set-part.d.ts.map +1 -1
  3. package/declarations/data-set.d.ts +0 -5
  4. package/declarations/data-set.d.ts.map +1 -1
  5. package/declarations/entry-esnext.d.ts.map +1 -1
  6. package/dist/esm.js +9 -42
  7. package/dist/esm.js.map +1 -1
  8. package/dist/umd.js +9 -42
  9. package/dist/umd.js.map +1 -1
  10. package/esnext/esm/vis-data.js +2 -25
  11. package/esnext/esm/vis-data.js.map +1 -1
  12. package/esnext/esm/vis-data.min.js +3 -3
  13. package/esnext/esm/vis-data.min.js.map +1 -1
  14. package/esnext/esm/vis-data.min.mjs +3 -3
  15. package/esnext/esm/vis-data.min.mjs.map +1 -1
  16. package/esnext/esm/vis-data.mjs +2 -25
  17. package/esnext/esm/vis-data.mjs.map +1 -1
  18. package/esnext/umd/vis-data.cjs +2 -25
  19. package/esnext/umd/vis-data.cjs.map +1 -1
  20. package/esnext/umd/vis-data.js +2 -25
  21. package/esnext/umd/vis-data.js.map +1 -1
  22. package/esnext/umd/vis-data.min.cjs +3 -3
  23. package/esnext/umd/vis-data.min.cjs.map +1 -1
  24. package/esnext/umd/vis-data.min.js +3 -3
  25. package/esnext/umd/vis-data.min.js.map +1 -1
  26. package/package.json +13 -14
  27. package/peer/esm/vis-data.js +9 -42
  28. package/peer/esm/vis-data.js.map +1 -1
  29. package/peer/esm/vis-data.min.js +4 -4
  30. package/peer/esm/vis-data.min.js.map +1 -1
  31. package/peer/esm/vis-data.min.mjs +4 -4
  32. package/peer/esm/vis-data.min.mjs.map +1 -1
  33. package/peer/esm/vis-data.mjs +9 -42
  34. package/peer/esm/vis-data.mjs.map +1 -1
  35. package/peer/umd/vis-data.cjs +9 -42
  36. package/peer/umd/vis-data.cjs.map +1 -1
  37. package/peer/umd/vis-data.js +9 -42
  38. package/peer/umd/vis-data.js.map +1 -1
  39. package/peer/umd/vis-data.min.cjs +4 -4
  40. package/peer/umd/vis-data.min.cjs.map +1 -1
  41. package/peer/umd/vis-data.min.js +4 -4
  42. package/peer/umd/vis-data.min.js.map +1 -1
  43. package/standalone/esm/vis-data.js +9 -42
  44. package/standalone/esm/vis-data.js.map +1 -1
  45. package/standalone/esm/vis-data.min.js +4 -4
  46. package/standalone/esm/vis-data.min.js.map +1 -1
  47. package/standalone/esm/vis-data.min.mjs +4 -4
  48. package/standalone/esm/vis-data.min.mjs.map +1 -1
  49. package/standalone/esm/vis-data.mjs +9 -42
  50. package/standalone/esm/vis-data.mjs.map +1 -1
  51. package/standalone/umd/vis-data.cjs +9 -42
  52. package/standalone/umd/vis-data.cjs.map +1 -1
  53. package/standalone/umd/vis-data.js +9 -42
  54. package/standalone/umd/vis-data.js.map +1 -1
  55. package/standalone/umd/vis-data.min.cjs +4 -4
  56. package/standalone/umd/vis-data.min.cjs.map +1 -1
  57. package/standalone/umd/vis-data.min.js +4 -4
  58. package/standalone/umd/vis-data.min.js.map +1 -1
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
6
6
  *
7
- * @version 8.0.2
8
- * @date 2025-09-10T15:16:41.798Z
7
+ * @version 8.0.4
8
+ * @date 2026-05-07T14:01:00.852Z
9
9
  *
10
10
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11
11
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -11386,21 +11386,17 @@
11386
11386
  byteToHex[arr[offset + 15]]).toLowerCase();
11387
11387
  }
11388
11388
 
11389
- let getRandomValues;
11390
11389
  const rnds8 = new Uint8Array(16);
11391
11390
  function rng() {
11392
- if (!getRandomValues) {
11393
- if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
11394
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
11395
- }
11396
- getRandomValues = crypto.getRandomValues.bind(crypto);
11397
- }
11398
- return getRandomValues(rnds8);
11391
+ return crypto.getRandomValues(rnds8);
11399
11392
  }
11400
11393
 
11401
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
11402
- var native = { randomUUID };
11403
-
11394
+ function v4(options, buf, offset) {
11395
+ if (crypto.randomUUID) {
11396
+ return crypto.randomUUID();
11397
+ }
11398
+ return _v4(options);
11399
+ }
11404
11400
  function _v4(options, buf, offset) {
11405
11401
  options = options || {};
11406
11402
  const rnds = options.random ?? options.rng?.() ?? rng();
@@ -11411,12 +11407,6 @@
11411
11407
  rnds[8] = (rnds[8] & 0x3f) | 0x80;
11412
11408
  return unsafeStringify(rnds);
11413
11409
  }
11414
- function v4(options, buf, offset) {
11415
- if (native.randomUUID && true && !options) {
11416
- return native.randomUUID();
11417
- }
11418
- return _v4(options);
11419
- }
11420
11410
 
11421
11411
  /**
11422
11412
  * Determine whether a value can be used as an id.
@@ -11645,10 +11635,6 @@
11645
11635
  var _context2;
11646
11636
  this._subscribers[event] = _filterInstanceProperty(_context2 = this._subscribers[event]).call(_context2, subscriber => subscriber !== callback);
11647
11637
  }
11648
- /* develblock:start */
11649
- get testLeakSubscribers() {
11650
- return this._subscribers;
11651
- }
11652
11638
  }
11653
11639
 
11654
11640
  var es_set = {};
@@ -13520,22 +13506,6 @@
13520
13506
  });
13521
13507
  }
13522
13508
  }
13523
- /* develblock:start */
13524
- get testLeakData() {
13525
- return this._data;
13526
- }
13527
- get testLeakIdProp() {
13528
- return this._idProp;
13529
- }
13530
- get testLeakOptions() {
13531
- return this._options;
13532
- }
13533
- get testLeakQueue() {
13534
- return this._queue;
13535
- }
13536
- set testLeakQueue(v) {
13537
- this._queue = v;
13538
- }
13539
13509
  }
13540
13510
 
13541
13511
  /**
@@ -13957,9 +13927,6 @@
13957
13927
  return typeof v === "object" && v !== null && idProp === v.idProp && typeof _forEachInstanceProperty(v) === "function" && typeof v.get === "function" && typeof v.getDataSet === "function" && typeof v.getIds === "function" && typeof v.length === "number" && typeof _mapInstanceProperty(v) === "function" && typeof v.off === "function" && typeof v.on === "function" && typeof v.stream === "function" && isDataSetLike(idProp, v.getDataSet());
13958
13928
  }
13959
13929
 
13960
- /* develblock:start */
13961
- console.warn("You're running a development build.");
13962
-
13963
13930
  exports.DELETE = DELETE;
13964
13931
  exports.DataSet = DataSet;
13965
13932
  exports.DataStream = DataStream;