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
@@ -11381,21 +11381,17 @@ function unsafeStringify(arr, offset = 0) {
11381
11381
  byteToHex[arr[offset + 15]]).toLowerCase();
11382
11382
  }
11383
11383
 
11384
- let getRandomValues;
11385
11384
  const rnds8 = new Uint8Array(16);
11386
11385
  function rng() {
11387
- if (!getRandomValues) {
11388
- if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
11389
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
11390
- }
11391
- getRandomValues = crypto.getRandomValues.bind(crypto);
11392
- }
11393
- return getRandomValues(rnds8);
11386
+ return crypto.getRandomValues(rnds8);
11394
11387
  }
11395
11388
 
11396
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
11397
- var native = { randomUUID };
11398
-
11389
+ function v4(options, buf, offset) {
11390
+ if (crypto.randomUUID) {
11391
+ return crypto.randomUUID();
11392
+ }
11393
+ return _v4(options);
11394
+ }
11399
11395
  function _v4(options, buf, offset) {
11400
11396
  options = options || {};
11401
11397
  const rnds = options.random ?? options.rng?.() ?? rng();
@@ -11406,12 +11402,6 @@ function _v4(options, buf, offset) {
11406
11402
  rnds[8] = (rnds[8] & 0x3f) | 0x80;
11407
11403
  return unsafeStringify(rnds);
11408
11404
  }
11409
- function v4(options, buf, offset) {
11410
- if (native.randomUUID && true && !options) {
11411
- return native.randomUUID();
11412
- }
11413
- return _v4(options);
11414
- }
11415
11405
 
11416
11406
  /**
11417
11407
  * Determine whether a value can be used as an id.
@@ -11640,10 +11630,6 @@ class DataSetPart {
11640
11630
  var _context2;
11641
11631
  this._subscribers[event] = _filterInstanceProperty(_context2 = this._subscribers[event]).call(_context2, subscriber => subscriber !== callback);
11642
11632
  }
11643
- /* develblock:start */
11644
- get testLeakSubscribers() {
11645
- return this._subscribers;
11646
- }
11647
11633
  }
11648
11634
 
11649
11635
  var es_set = {};
@@ -13515,22 +13501,6 @@ class DataSet extends DataSetPart {
13515
13501
  });
13516
13502
  }
13517
13503
  }
13518
- /* develblock:start */
13519
- get testLeakData() {
13520
- return this._data;
13521
- }
13522
- get testLeakIdProp() {
13523
- return this._idProp;
13524
- }
13525
- get testLeakOptions() {
13526
- return this._options;
13527
- }
13528
- get testLeakQueue() {
13529
- return this._queue;
13530
- }
13531
- set testLeakQueue(v) {
13532
- this._queue = v;
13533
- }
13534
13504
  }
13535
13505
 
13536
13506
  /**
@@ -13952,8 +13922,5 @@ function isDataViewLike(idProp, v) {
13952
13922
  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());
13953
13923
  }
13954
13924
 
13955
- /* develblock:start */
13956
- console.warn("You're running a development build.");
13957
-
13958
13925
  export { DELETE, DataSet, DataStream, DataView, Queue, createNewDataPipeFrom, isDataSetLike, isDataViewLike };
13959
13926
  //# sourceMappingURL=vis-data.mjs.map