@thi.ng/shader-ast-js 1.0.20 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-30T14:31:56Z
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
@@ -77,7 +77,7 @@ For Node.js REPL:
77
77
  const shaderAstJs = await import("@thi.ng/shader-ast-js");
78
78
  ```
79
79
 
80
- Package sizes (brotli'd, pre-treeshake): ESM: 6.44 KB
80
+ Package sizes (brotli'd, pre-treeshake): ESM: 6.50 KB
81
81
 
82
82
  ## Dependencies
83
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/shader-ast-js",
3
- "version": "1.0.20",
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": "yarn doc:stats && tools: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": "testament test"
33
+ "test": "bun test"
35
34
  },
36
35
  "dependencies": {
37
- "@thi.ng/api": "^8.9.6",
38
- "@thi.ng/checks": "^3.4.6",
39
- "@thi.ng/errors": "^2.4.0",
40
- "@thi.ng/math": "^5.7.1",
41
- "@thi.ng/matrices": "^2.2.6",
42
- "@thi.ng/pixel": "^4.3.2",
43
- "@thi.ng/shader-ast": "^0.12.78",
44
- "@thi.ng/vectors": "^7.8.2"
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.0",
48
- "@thi.ng/testament": "^0.3.24",
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.2",
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": "336bd1bf95825b3c318a3ab49c54451c94aaa883\n"
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++) {