@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.
- package/README.md +3 -2
- package/dist/allocated-memory.js +1 -2
- package/dist/cached-item-list.js +1 -2
- package/dist/constant-string.js +13 -14
- package/dist/local-pool.js +5 -6
- package/dist/lock/read-write-lock.js +0 -1
- package/dist/lock/simple-lock.js +0 -1
- package/dist/memory-buffer.js +1 -2
- package/dist/memory-heap.js +24 -25
- package/dist/serialize-object.js +4 -5
- package/dist/shared-list.js +43 -44
- package/dist/shared-map.js +74 -75
- package/dist/shared-pointer-list.js +15 -16
- package/dist/shared-pool.d.ts +1 -0
- package/dist/shared-pool.js +36 -32
- package/dist/shared-pool.js.map +1 -1
- package/dist/shared-stack.js +33 -34
- package/dist/shared-string.js +19 -20
- package/dist/shared-vector.js +23 -24
- package/dist/spatial/shared-quadtree.js +81 -82
- package/dist/spatial/shared-quadtree.js.map +1 -1
- package/dist/spatial/shared-spatial-grid.js +104 -110
- package/dist/spatial/shared-spatial-grid.js.map +1 -1
- package/dist/spatial/shared-spatial-map.d.ts +2 -0
- package/dist/spatial/shared-spatial-map.js +205 -202
- package/dist/spatial/shared-spatial-map.js.map +1 -1
- package/dist/spatial/spatial-entity.js +1 -2
- package/dist/spatial/spatial-neighbors.js +1 -2
- package/dist/utils/16-from-32-array.js +1 -2
- package/dist/utils/16-from-32-float.js +1 -2
- package/dist/utils/16-from-32-int.js +1 -2
- package/dist/utils/16-from-32-uint.js +1 -2
- package/dist/utils/16-from-64-array.js +1 -2
- package/dist/utils/16-from-64-float.js +1 -2
- package/dist/utils/16-from-64-int.js +1 -2
- package/dist/utils/16-from-64-uint.js +1 -2
- package/dist/utils/32-from-64-float.js +1 -2
- package/dist/utils/32-from-64-int.js +1 -2
- package/dist/utils/32-from-64-uint.js +1 -2
- package/dist/utils/array-type.js +1 -2
- package/dist/utils/atomic-math.js +1 -2
- package/dist/utils/float32-atomics.js +1 -2
- package/dist/utils/float64-atomics.js +1 -2
- package/dist/utils/hash.js +1 -2
- package/dist/utils/pointer.js +1 -2
- package/dist/utils/typedarray.js +1 -2
- package/package.json +11 -11
package/dist/utils/hash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
package/dist/utils/pointer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
package/dist/utils/typedarray.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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.
|
|
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.
|
|
58
|
-
"@vitest/coverage-v8": "^5.0.
|
|
59
|
-
"@vitest/ui": "^5.0.
|
|
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.
|
|
61
|
+
"flatbush": "^4.7.0",
|
|
62
62
|
"husky": "^9.1.7",
|
|
63
|
-
"lint-staged": "^17.
|
|
64
|
-
"oxlint": "^1.
|
|
65
|
-
"oxlint-tsgolint": "^7.0.
|
|
66
|
-
"pretty-bytes": "^7.
|
|
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.
|
|
70
|
-
"vitest": "^5.0.
|
|
69
|
+
"vite": "^8.3.5",
|
|
70
|
+
"vitest": "^5.0.5"
|
|
71
71
|
}
|
|
72
72
|
}
|