@thi.ng/shader-ast-js 1.2.41 → 1.2.44

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 (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +12 -11
  3. package/target.js +2 -2
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 213 standalone projects, maintained as part
10
+ > This is one of 214 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -87,7 +87,7 @@ For Node.js REPL:
87
87
  const js = await import("@thi.ng/shader-ast-js");
88
88
  ```
89
89
 
90
- Package sizes (brotli'd, pre-treeshake): ESM: 6.73 KB
90
+ Package sizes (brotli'd, pre-treeshake): ESM: 6.72 KB
91
91
 
92
92
  ## Dependencies
93
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/shader-ast-js",
3
- "version": "1.2.41",
3
+ "version": "1.2.44",
4
4
  "description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -8,7 +8,8 @@
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
11
+ "url": "git+https://github.com/thi-ng/umbrella.git",
12
+ "directory": "packages/shader-ast-js"
12
13
  },
13
14
  "homepage": "https://thi.ng/shader-ast-js",
14
15
  "funding": [
@@ -39,14 +40,14 @@
39
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
41
  },
41
42
  "dependencies": {
42
- "@thi.ng/api": "^8.12.13",
43
- "@thi.ng/checks": "^3.8.3",
44
- "@thi.ng/errors": "^2.6.2",
45
- "@thi.ng/math": "^5.15.2",
46
- "@thi.ng/matrices": "^3.0.34",
47
- "@thi.ng/pixel": "^7.5.22",
48
- "@thi.ng/shader-ast": "^1.1.36",
49
- "@thi.ng/vectors": "^8.6.19"
43
+ "@thi.ng/api": "^8.12.15",
44
+ "@thi.ng/checks": "^3.8.5",
45
+ "@thi.ng/errors": "^2.6.4",
46
+ "@thi.ng/math": "^5.15.4",
47
+ "@thi.ng/matrices": "^3.0.36",
48
+ "@thi.ng/pixel": "^7.5.24",
49
+ "@thi.ng/shader-ast": "^1.1.39",
50
+ "@thi.ng/vectors": "^8.6.21"
50
51
  },
51
52
  "devDependencies": {
52
53
  "esbuild": "^0.27.2",
@@ -165,5 +166,5 @@
165
166
  ],
166
167
  "year": 2019
167
168
  },
168
- "gitHead": "828ec2e9ffde7307231b03cff46598c0915b1857\n"
169
+ "gitHead": "8f50352caab9ec7757d645c0afa605dfb5427abe\n"
169
170
  }
package/target.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isBoolean } from "@thi.ng/checks/is-boolean";
2
2
  import { isNumber } from "@thi.ng/checks/is-number";
3
- import { unsupported } from "@thi.ng/errors/unsupported";
3
+ import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
4
4
  import {
5
5
  isBool,
6
6
  isInt,
@@ -165,7 +165,7 @@ function ${t.id}(${$list(
165
165
  case "mat4":
166
166
  return $vec(t);
167
167
  default:
168
- return unsupported(`unknown type: ${t.type}`);
168
+ return illegalArgs(`unknown type: ${t.type}`);
169
169
  }
170
170
  },
171
171
  op1: (t) => {