@daneren2005/shared-memory-objects 1.6.1 → 1.6.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.
Files changed (47) hide show
  1. package/README.md +3 -2
  2. package/dist/allocated-memory.js +1 -2
  3. package/dist/cached-item-list.js +1 -2
  4. package/dist/constant-string.js +13 -14
  5. package/dist/local-pool.js +5 -6
  6. package/dist/lock/read-write-lock.js +0 -1
  7. package/dist/lock/simple-lock.js +0 -1
  8. package/dist/memory-buffer.js +1 -2
  9. package/dist/memory-heap.js +24 -25
  10. package/dist/serialize-object.js +4 -5
  11. package/dist/shared-list.js +43 -44
  12. package/dist/shared-map.js +74 -75
  13. package/dist/shared-pointer-list.js +15 -16
  14. package/dist/shared-pool.d.ts +1 -0
  15. package/dist/shared-pool.js +36 -32
  16. package/dist/shared-pool.js.map +1 -1
  17. package/dist/shared-stack.js +33 -34
  18. package/dist/shared-string.js +19 -20
  19. package/dist/shared-vector.js +23 -24
  20. package/dist/spatial/shared-quadtree.js +81 -82
  21. package/dist/spatial/shared-quadtree.js.map +1 -1
  22. package/dist/spatial/shared-spatial-grid.js +104 -110
  23. package/dist/spatial/shared-spatial-grid.js.map +1 -1
  24. package/dist/spatial/shared-spatial-map.d.ts +2 -0
  25. package/dist/spatial/shared-spatial-map.js +205 -202
  26. package/dist/spatial/shared-spatial-map.js.map +1 -1
  27. package/dist/spatial/spatial-entity.js +1 -2
  28. package/dist/spatial/spatial-neighbors.js +1 -2
  29. package/dist/utils/16-from-32-array.js +1 -2
  30. package/dist/utils/16-from-32-float.js +1 -2
  31. package/dist/utils/16-from-32-int.js +1 -2
  32. package/dist/utils/16-from-32-uint.js +1 -2
  33. package/dist/utils/16-from-64-array.js +1 -2
  34. package/dist/utils/16-from-64-float.js +1 -2
  35. package/dist/utils/16-from-64-int.js +1 -2
  36. package/dist/utils/16-from-64-uint.js +1 -2
  37. package/dist/utils/32-from-64-float.js +1 -2
  38. package/dist/utils/32-from-64-int.js +1 -2
  39. package/dist/utils/32-from-64-uint.js +1 -2
  40. package/dist/utils/array-type.js +1 -2
  41. package/dist/utils/atomic-math.js +1 -2
  42. package/dist/utils/float32-atomics.js +1 -2
  43. package/dist/utils/float64-atomics.js +1 -2
  44. package/dist/utils/hash.js +1 -2
  45. package/dist/utils/pointer.js +1 -2
  46. package/dist/utils/typedarray.js +1 -2
  47. package/package.json +11 -11
@@ -1,4 +1,4 @@
1
- //#region src/utils/hash.ts
1
+ // src/utils/hash.ts
2
2
  function e(e) {
3
3
  return typeof e == "number" ? e : typeof e == "string" ? t(e) : e;
4
4
  }
@@ -15,7 +15,6 @@ function t(e) {
15
15
  function n(e) {
16
16
  return e = Math.imul(e ^ e >>> 16, 73244475), e = Math.imul(e ^ e >>> 16, 73244475), e = (e ^ e >>> 16) >>> 0, e;
17
17
  }
18
- //#endregion
19
18
  export { e as get32BitHash, t as hashString, n as mix32 };
20
19
 
21
20
  //# sourceMappingURL=hash.js.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/pointer.ts
1
+ // src/utils/pointer.ts
2
2
  var e = 20, t = 12, n = 12, r = 2 ** 20, i = 4096;
3
3
  function a(e) {
4
4
  let t = 32 - (e <= 1 ? 0 : 32 - Math.clz32(e - 1));
@@ -33,7 +33,6 @@ function f(e, t = 12) {
33
33
  function p(e, t, n = 12) {
34
34
  return e + (t << n);
35
35
  }
36
- //#endregion
37
36
  export { e as BYTE_OFFSET_BIT_COUNT, n as DEFAULT_POSITION_BITS, r as MAX_BYTE_OFFSET_LENGTH, i as MAX_POSITION_LENGTH, t as POSITION_BIT_COUNT, p as createPointer, f as getPointer, o as loadPointer, s as loadRawPointer, a as positionBitsForBufferSize, u as replacePointer, d as replaceRawPointer, c as storePointer, l as storeRawPointer };
38
37
 
39
38
  //# sourceMappingURL=pointer.js.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/typedarray.js
1
+ // src/utils/typedarray.js
2
2
  var e = {
3
3
  5120: "i8",
4
4
  5121: "u8",
@@ -33,7 +33,6 @@ var e = {
33
33
  function s(e, ...t) {
34
34
  return new (i[e] || a[o(e)])(...t);
35
35
  }
36
- //#endregion
37
36
  export { i as BIGINT_ARRAY_CTORS, t as FLOAT_ARRAY_CTORS, e as GL2TYPE, n as INT_ARRAY_CTORS, a as TYPEDARRAY_CTORS, r as UINT_ARRAY_CTORS, o as asNativeType, s as typedArray };
38
37
 
39
38
  //# sourceMappingURL=typedarray.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daneren2005/shared-memory-objects",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "author": "daneren2005@gmail.com",
5
5
  "description": "Creating objects with a SharedArrayBuffer",
6
6
  "homepage": "https://github.com/daneren2005/shared-memory-objects#readme",
@@ -54,19 +54,19 @@
54
54
  "@semantic-release/git": "^11.0.1",
55
55
  "@stylistic/eslint-plugin": "^5.10.0",
56
56
  "@timohausmann/quadtree-ts": "^2.3.0",
57
- "@types/node": "^26.6.2",
58
- "@vitest/coverage-v8": "^5.0.1",
59
- "@vitest/ui": "^5.0.1",
57
+ "@types/node": "^26.6.6",
58
+ "@vitest/coverage-v8": "^5.0.5",
59
+ "@vitest/ui": "^5.0.5",
60
60
  "cross-env": "^10.1.0",
61
- "flatbush": "^4.6.2",
61
+ "flatbush": "^4.7.0",
62
62
  "husky": "^9.1.7",
63
- "lint-staged": "^17.5.1",
64
- "oxlint": "^1.85.0",
65
- "oxlint-tsgolint": "^7.0.2003",
66
- "pretty-bytes": "^7.1.3",
63
+ "lint-staged": "^17.6.0",
64
+ "oxlint": "^1.90.0",
65
+ "oxlint-tsgolint": "^7.0.2005",
66
+ "pretty-bytes": "^7.2.0",
67
67
  "semantic-release": "^25.0.9",
68
68
  "typescript": "^7.0.2",
69
- "vite": "^8.3.1",
70
- "vitest": "^5.0.1"
69
+ "vite": "^8.3.5",
70
+ "vitest": "^5.0.5"
71
71
  }
72
72
  }