@thi.ng/wasm-api-webgl 1.0.20 → 1.0.23

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/gl.js +2 -2
  3. package/package.json +10 -9
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
  >
@@ -60,7 +60,7 @@ Browser ESM import:
60
60
 
61
61
  [JSDelivr documentation](https://www.jsdelivr.com/)
62
62
 
63
- Package sizes (brotli'd, pre-treeshake): ESM: 2.27 KB
63
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.29 KB
64
64
 
65
65
  ## Dependencies
66
66
 
package/gl.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GLType } from "@thi.ng/api/typedarray";
2
2
  import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
3
- import { unsupported } from "@thi.ng/errors/unsupported";
3
+ import { unsupportedOp } from "@thi.ng/errors/unsupported";
4
4
  import { WasmDomModule } from "@thi.ng/wasm-api-dom";
5
5
  import { ObjectIndex } from "@thi.ng/wasm-api/object-index";
6
6
  import { compileModel } from "@thi.ng/webgl/buffer";
@@ -68,7 +68,7 @@ class WasmWebGL {
68
68
  preserveDrawingBuffer: !!opts.preserveDrawingBuffer,
69
69
  stencil: !!opts.stencil
70
70
  });
71
- if (!ctx) unsupported("WebGL2 not supported");
71
+ if (!ctx) unsupportedOp("WebGL2 not supported");
72
72
  return this.contexts.addUnique(ctx);
73
73
  },
74
74
  createShader: (ctxID, addr) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api-webgl",
3
- "version": "1.0.20",
3
+ "version": "1.0.23",
4
4
  "description": "WebGL bridge API for hybrid TypeScript & WASM (Zig) applications",
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/wasm-api-webgl"
12
13
  },
13
14
  "homepage": "https://thi.ng/wasm-api-webgl",
14
15
  "funding": [
@@ -40,14 +41,14 @@
40
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
42
  },
42
43
  "dependencies": {
43
- "@thi.ng/api": "^8.12.13",
44
- "@thi.ng/errors": "^2.6.2",
45
- "@thi.ng/wasm-api": "^2.4.15",
46
- "@thi.ng/wasm-api-dom": "^2.0.17",
47
- "@thi.ng/webgl": "^6.9.94"
44
+ "@thi.ng/api": "^8.12.15",
45
+ "@thi.ng/errors": "^2.6.4",
46
+ "@thi.ng/wasm-api": "^2.4.18",
47
+ "@thi.ng/wasm-api-dom": "^2.0.20",
48
+ "@thi.ng/webgl": "^6.9.97"
48
49
  },
49
50
  "devDependencies": {
50
- "@thi.ng/wasm-api-bindgen": "^1.2.61",
51
+ "@thi.ng/wasm-api-bindgen": "^1.2.64",
51
52
  "esbuild": "^0.27.2",
52
53
  "typedoc": "^0.28.16",
53
54
  "typescript": "^5.9.3"
@@ -99,5 +100,5 @@
99
100
  "tag": "wasm",
100
101
  "year": 2024
101
102
  },
102
- "gitHead": "828ec2e9ffde7307231b03cff46598c0915b1857\n"
103
+ "gitHead": "8f50352caab9ec7757d645c0afa605dfb5427abe\n"
103
104
  }