@thi.ng/shader-ast-optimize 1.0.41 → 1.0.46
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 +96 -96
- package/CHANGELOG.md +0 -52
package/package.json
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
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
|
-
}
|
|
2
|
+
"name": "@thi.ng/shader-ast-optimize",
|
|
3
|
+
"version": "1.0.46",
|
|
4
|
+
"description": "Shader AST code/tree optimization passes/strategies",
|
|
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-optimize",
|
|
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",
|
|
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/defmulti": "^3.0.82",
|
|
44
|
+
"@thi.ng/errors": "^2.5.46",
|
|
45
|
+
"@thi.ng/logger": "^3.2.5",
|
|
46
|
+
"@thi.ng/math": "^5.13.3",
|
|
47
|
+
"@thi.ng/shader-ast": "^1.1.27"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"esbuild": "^0.25.11",
|
|
51
|
+
"typedoc": "^0.28.14",
|
|
52
|
+
"typescript": "^5.9.3"
|
|
53
|
+
},
|
|
54
|
+
"keywords": [
|
|
55
|
+
"ast",
|
|
56
|
+
"compiler",
|
|
57
|
+
"constant-folding",
|
|
58
|
+
"optimization",
|
|
59
|
+
"rewrite",
|
|
60
|
+
"shader",
|
|
61
|
+
"shader-ast",
|
|
62
|
+
"tree",
|
|
63
|
+
"typescript",
|
|
64
|
+
"webgl"
|
|
65
|
+
],
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public"
|
|
68
|
+
},
|
|
69
|
+
"browser": {
|
|
70
|
+
"process": false,
|
|
71
|
+
"setTimeout": false
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=18"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"./*.js",
|
|
78
|
+
"./*.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"exports": {
|
|
81
|
+
".": {
|
|
82
|
+
"default": "./index.js"
|
|
83
|
+
},
|
|
84
|
+
"./constant-folding": {
|
|
85
|
+
"default": "./constant-folding.js"
|
|
86
|
+
},
|
|
87
|
+
"./defoptimized": {
|
|
88
|
+
"default": "./defoptimized.js"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"thi.ng": {
|
|
92
|
+
"alias": "opt",
|
|
93
|
+
"parent": "@thi.ng/shader-ast",
|
|
94
|
+
"year": 2019
|
|
95
|
+
},
|
|
96
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
97
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,52 +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
|
-
### [0.4.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.4.16) (2024-06-21)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
19
|
-
|
|
20
|
-
### [0.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.4.12) (2024-04-20)
|
|
21
|
-
|
|
22
|
-
#### ♻️ Refactoring
|
|
23
|
-
|
|
24
|
-
- update type usage ([8504f58](https://github.com/thi-ng/umbrella/commit/8504f58))
|
|
25
|
-
|
|
26
|
-
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.4.0) (2024-03-07)
|
|
27
|
-
|
|
28
|
-
#### 🚀 Features
|
|
29
|
-
|
|
30
|
-
- add defOptimized(), rename source file ([b1dc3c0](https://github.com/thi-ng/umbrella/commit/b1dc3c0))
|
|
31
|
-
- add defOptimized() wrapper fn
|
|
32
|
-
- fix spelling in file name
|
|
33
|
-
- update example in docs
|
|
34
|
-
- expand constantFolding() features, bug fixes ([1350bf7](https://github.com/thi-ng/umbrella/commit/1350bf7))
|
|
35
|
-
- add support scalar comparisons
|
|
36
|
-
- div-by-zero checks
|
|
37
|
-
- fix non-scalar mul & sub handling
|
|
38
|
-
- add support for exp2(), pow()
|
|
39
|
-
- add tests
|
|
40
|
-
|
|
41
|
-
### [0.3.27](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.3.27) (2023-11-09)
|
|
42
|
-
|
|
43
|
-
#### ♻️ Refactoring
|
|
44
|
-
|
|
45
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
46
|
-
|
|
47
|
-
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.3.0) (2023-05-24)
|
|
48
|
-
|
|
49
|
-
#### 🚀 Features
|
|
50
|
-
|
|
51
|
-
- update constant folding ([1bd5fef](https://github.com/thi-ng/umbrella/commit/1bd5fef))
|
|
52
|
-
- add simplifications for 0/1 cases
|