@thi.ng/shader-ast-js 1.0.19 → 1.0.22
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/CHANGELOG.md +7 -1
- package/README.md +1 -1
- package/package.json +15 -16
- package/pool.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-
|
|
3
|
+
- **Last updated**: 2023-11-09T10:28:19Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.0.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.0.21) (2023-11-09)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
17
|
+
|
|
12
18
|
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.0.0) (2023-08-14)
|
|
13
19
|
|
|
14
20
|
#### 🛑 Breaking changes
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/shader-ast-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -28,27 +28,26 @@
|
|
|
28
28
|
"clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc env",
|
|
29
29
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
30
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
-
"doc:readme": "
|
|
32
|
-
"doc:stats": "tools:module-stats",
|
|
31
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
33
32
|
"pub": "yarn npm publish --access public",
|
|
34
|
-
"test": "
|
|
33
|
+
"test": "bun test"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.9.
|
|
38
|
-
"@thi.ng/checks": "^3.4.
|
|
39
|
-
"@thi.ng/errors": "^2.4.
|
|
40
|
-
"@thi.ng/math": "^5.7.
|
|
41
|
-
"@thi.ng/matrices": "^2.2.
|
|
42
|
-
"@thi.ng/pixel": "^4.3.
|
|
43
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
44
|
-
"@thi.ng/vectors": "^7.8.
|
|
36
|
+
"@thi.ng/api": "^8.9.8",
|
|
37
|
+
"@thi.ng/checks": "^3.4.8",
|
|
38
|
+
"@thi.ng/errors": "^2.4.2",
|
|
39
|
+
"@thi.ng/math": "^5.7.3",
|
|
40
|
+
"@thi.ng/matrices": "^2.2.8",
|
|
41
|
+
"@thi.ng/pixel": "^4.3.4",
|
|
42
|
+
"@thi.ng/shader-ast": "^0.12.80",
|
|
43
|
+
"@thi.ng/vectors": "^7.8.4"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.38.
|
|
48
|
-
"@thi.ng/testament": "^0.
|
|
46
|
+
"@microsoft/api-extractor": "^7.38.2",
|
|
47
|
+
"@thi.ng/testament": "^0.4.1",
|
|
49
48
|
"rimraf": "^5.0.5",
|
|
50
49
|
"tools": "^0.0.1",
|
|
51
|
-
"typedoc": "^0.25.
|
|
50
|
+
"typedoc": "^0.25.3",
|
|
52
51
|
"typescript": "^5.2.2"
|
|
53
52
|
},
|
|
54
53
|
"keywords": [
|
|
@@ -162,5 +161,5 @@
|
|
|
162
161
|
],
|
|
163
162
|
"year": 2019
|
|
164
163
|
},
|
|
165
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "669a3151e4302480244fe3e60eff5e732ea5b7a7\n"
|
|
166
165
|
}
|
package/pool.js
CHANGED
|
@@ -17,10 +17,17 @@ import { setN, setN2, setN3, setN4 } from "@thi.ng/vectors/setn";
|
|
|
17
17
|
* an issue and explain your use case. Thanks!
|
|
18
18
|
*/
|
|
19
19
|
export class Pool {
|
|
20
|
+
size;
|
|
21
|
+
cap;
|
|
22
|
+
mem;
|
|
23
|
+
items;
|
|
24
|
+
index = 0;
|
|
25
|
+
next;
|
|
26
|
+
from;
|
|
27
|
+
uniform;
|
|
20
28
|
constructor(type, size, cap) {
|
|
21
29
|
this.size = size;
|
|
22
30
|
this.cap = cap;
|
|
23
|
-
this.index = 0;
|
|
24
31
|
this.mem = typedArray(type, cap * size);
|
|
25
32
|
this.items = new Array(cap);
|
|
26
33
|
for (let i = 0; i < cap; i++) {
|