@thi.ng/shader-ast-js 1.2.26 → 1.2.31
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/package.json +168 -168
- package/CHANGELOG.md +0 -91
package/package.json
CHANGED
|
@@ -1,169 +1,169 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
2
|
+
"name": "@thi.ng/shader-ast-js",
|
|
3
|
+
"version": "1.2.31",
|
|
4
|
+
"description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/shader-ast-js",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts env",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.6",
|
|
43
|
+
"@thi.ng/checks": "^3.7.22",
|
|
44
|
+
"@thi.ng/errors": "^2.5.46",
|
|
45
|
+
"@thi.ng/math": "^5.13.3",
|
|
46
|
+
"@thi.ng/matrices": "^3.0.25",
|
|
47
|
+
"@thi.ng/pixel": "^7.5.14",
|
|
48
|
+
"@thi.ng/shader-ast": "^1.1.27",
|
|
49
|
+
"@thi.ng/vectors": "^8.6.10"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"esbuild": "^0.25.11",
|
|
53
|
+
"typedoc": "^0.28.14",
|
|
54
|
+
"typescript": "^5.9.3"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"2d",
|
|
58
|
+
"3d",
|
|
59
|
+
"4d",
|
|
60
|
+
"ast",
|
|
61
|
+
"canvas",
|
|
62
|
+
"codegen",
|
|
63
|
+
"compiler",
|
|
64
|
+
"dsl",
|
|
65
|
+
"emulator",
|
|
66
|
+
"glsl",
|
|
67
|
+
"headless",
|
|
68
|
+
"pixel",
|
|
69
|
+
"render",
|
|
70
|
+
"rgb565",
|
|
71
|
+
"runtime",
|
|
72
|
+
"shader",
|
|
73
|
+
"shader-ast",
|
|
74
|
+
"texture",
|
|
75
|
+
"transpiler",
|
|
76
|
+
"typescript",
|
|
77
|
+
"webgl"
|
|
78
|
+
],
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"access": "public"
|
|
81
|
+
},
|
|
82
|
+
"engines": {
|
|
83
|
+
"node": ">=18"
|
|
84
|
+
},
|
|
85
|
+
"files": [
|
|
86
|
+
"./*.js",
|
|
87
|
+
"./*.d.ts",
|
|
88
|
+
"env"
|
|
89
|
+
],
|
|
90
|
+
"exports": {
|
|
91
|
+
".": {
|
|
92
|
+
"default": "./index.js"
|
|
93
|
+
},
|
|
94
|
+
"./api": {
|
|
95
|
+
"default": "./api.js"
|
|
96
|
+
},
|
|
97
|
+
"./env/bvec": {
|
|
98
|
+
"default": "./env/bvec.js"
|
|
99
|
+
},
|
|
100
|
+
"./env/float": {
|
|
101
|
+
"default": "./env/float.js"
|
|
102
|
+
},
|
|
103
|
+
"./env/int": {
|
|
104
|
+
"default": "./env/int.js"
|
|
105
|
+
},
|
|
106
|
+
"./env/ivec2": {
|
|
107
|
+
"default": "./env/ivec2.js"
|
|
108
|
+
},
|
|
109
|
+
"./env/ivec3": {
|
|
110
|
+
"default": "./env/ivec3.js"
|
|
111
|
+
},
|
|
112
|
+
"./env/ivec4": {
|
|
113
|
+
"default": "./env/ivec4.js"
|
|
114
|
+
},
|
|
115
|
+
"./env/mat2": {
|
|
116
|
+
"default": "./env/mat2.js"
|
|
117
|
+
},
|
|
118
|
+
"./env/mat3": {
|
|
119
|
+
"default": "./env/mat3.js"
|
|
120
|
+
},
|
|
121
|
+
"./env/mat4": {
|
|
122
|
+
"default": "./env/mat4.js"
|
|
123
|
+
},
|
|
124
|
+
"./env/uint": {
|
|
125
|
+
"default": "./env/uint.js"
|
|
126
|
+
},
|
|
127
|
+
"./env/uvec2": {
|
|
128
|
+
"default": "./env/uvec2.js"
|
|
129
|
+
},
|
|
130
|
+
"./env/uvec3": {
|
|
131
|
+
"default": "./env/uvec3.js"
|
|
132
|
+
},
|
|
133
|
+
"./env/uvec4": {
|
|
134
|
+
"default": "./env/uvec4.js"
|
|
135
|
+
},
|
|
136
|
+
"./env/vec2": {
|
|
137
|
+
"default": "./env/vec2.js"
|
|
138
|
+
},
|
|
139
|
+
"./env/vec3": {
|
|
140
|
+
"default": "./env/vec3.js"
|
|
141
|
+
},
|
|
142
|
+
"./env/vec4": {
|
|
143
|
+
"default": "./env/vec4.js"
|
|
144
|
+
},
|
|
145
|
+
"./env": {
|
|
146
|
+
"default": "./env.js"
|
|
147
|
+
},
|
|
148
|
+
"./pool": {
|
|
149
|
+
"default": "./pool.js"
|
|
150
|
+
},
|
|
151
|
+
"./runtime": {
|
|
152
|
+
"default": "./runtime.js"
|
|
153
|
+
},
|
|
154
|
+
"./target": {
|
|
155
|
+
"default": "./target.js"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"thi.ng": {
|
|
159
|
+
"alias": "js",
|
|
160
|
+
"parent": "@thi.ng/shader-ast",
|
|
161
|
+
"related": [
|
|
162
|
+
"pixel",
|
|
163
|
+
"shader-ast-glsl",
|
|
164
|
+
"shader-ast-stdlib"
|
|
165
|
+
],
|
|
166
|
+
"year": 2019
|
|
167
|
+
},
|
|
168
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
169
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.2.0) (2025-05-18)
|
|
15
|
-
|
|
16
|
-
#### 🚀 Features
|
|
17
|
-
|
|
18
|
-
- add trigonometry builtins ([1653e4f](https://github.com/thi-ng/umbrella/commit/1653e4f))
|
|
19
|
-
|
|
20
|
-
### [1.1.84](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.1.84) (2025-04-16)
|
|
21
|
-
|
|
22
|
-
#### ♻️ Refactoring
|
|
23
|
-
|
|
24
|
-
- internal updates (imports & renames) ([e8f49ca](https://github.com/thi-ng/umbrella/commit/e8f49ca))
|
|
25
|
-
- minor internal optimizations (vector ops) ([696578e](https://github.com/thi-ng/umbrella/commit/696578e))
|
|
26
|
-
|
|
27
|
-
### [1.1.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.1.36) (2024-06-21)
|
|
28
|
-
|
|
29
|
-
#### ♻️ Refactoring
|
|
30
|
-
|
|
31
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
32
|
-
|
|
33
|
-
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.1.0) (2023-12-31)
|
|
34
|
-
|
|
35
|
-
#### 🚀 Features
|
|
36
|
-
|
|
37
|
-
- fix [#435](https://github.com/thi-ng/umbrella/issues/435), add new lshift/rshift ops/variations ([a78d313](https://github.com/thi-ng/umbrella/commit/a78d313))
|
|
38
|
-
|
|
39
|
-
### [1.0.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.0.21) (2023-11-09)
|
|
40
|
-
|
|
41
|
-
#### ♻️ Refactoring
|
|
42
|
-
|
|
43
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
44
|
-
|
|
45
|
-
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.0.0) (2023-08-14)
|
|
46
|
-
|
|
47
|
-
#### 🛑 Breaking changes
|
|
48
|
-
|
|
49
|
-
- update renderPixels(), renderBuffer() ([5b2fe9d](https://github.com/thi-ng/umbrella/commit/5b2fe9d))
|
|
50
|
-
- BREAKING CHANGES: replace render functions args with options object
|
|
51
|
-
- add RenderPixelOpts
|
|
52
|
-
- update renderPixels()/renderBuffer() to support arbitrary integer pixel formats
|
|
53
|
-
- add/expose color conversion fns:
|
|
54
|
-
- rgbaBgra8888() for 32bit targets
|
|
55
|
-
- rgbaRgb565() for 16bit targets
|
|
56
|
-
|
|
57
|
-
#### 🚀 Features
|
|
58
|
-
|
|
59
|
-
- add vector pools for all vector ops ([31271e7](https://github.com/thi-ng/umbrella/commit/31271e7))
|
|
60
|
-
- add Pool class and impls for [iu]vec2/3/4
|
|
61
|
-
- update all vector ops to re-use memory from pools
|
|
62
|
-
- add CompileResult interface w/ `__reset()` and `__stats()` methods
|
|
63
|
-
- update targetJS() codegens
|
|
64
|
-
|
|
65
|
-
#### ♻️ Refactoring
|
|
66
|
-
|
|
67
|
-
- update/extend vector pool handling ([1c22d0c](https://github.com/thi-ng/umbrella/commit/1c22d0c))
|
|
68
|
-
|
|
69
|
-
### [0.7.64](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.64) (2023-08-04)
|
|
70
|
-
|
|
71
|
-
#### ♻️ Refactoring
|
|
72
|
-
|
|
73
|
-
- update `identity` usage in various pkgs ([b6db053](https://github.com/thi-ng/umbrella/commit/b6db053))
|
|
74
|
-
|
|
75
|
-
### [0.7.53](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.53) (2023-03-27)
|
|
76
|
-
|
|
77
|
-
#### ♻️ Refactoring
|
|
78
|
-
|
|
79
|
-
- update remaining type imports (TS5.0) in various pkgs ([e0edf26](https://github.com/thi-ng/umbrella/commit/e0edf26))
|
|
80
|
-
|
|
81
|
-
### [0.7.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.26) (2022-09-27)
|
|
82
|
-
|
|
83
|
-
#### ⏱ Performance improvements
|
|
84
|
-
|
|
85
|
-
- pre-cache ImageData in canvasRenderer() ([ff0018f](https://github.com/thi-ng/umbrella/commit/ff0018f))
|
|
86
|
-
|
|
87
|
-
### [0.7.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.20) (2022-08-06)
|
|
88
|
-
|
|
89
|
-
#### ⏱ Performance improvements
|
|
90
|
-
|
|
91
|
-
- update vector fns ([45699e1](https://github.com/thi-ng/umbrella/commit/45699e1))
|