@thi.ng/shader-ast-optimize 0.4.10 → 0.4.12

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**: 2024-04-08T14:59:30Z
3
+ - **Last updated**: 2024-04-20T14:42:45Z
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
+ ### [0.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.4.12) (2024-04-20)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update type usage ([8504f58](https://github.com/thi-ng/umbrella/commit/8504f58))
17
+
12
18
  ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-optimize@0.4.0) (2024-03-07)
13
19
 
14
20
  #### 🚀 Features
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 191 standalone projects, maintained as part
10
+ > This is one of 192 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
  >
@@ -127,10 +127,10 @@ import * as opt from "@thi.ng/shader-ast-optimize";
127
127
  Browser ESM import:
128
128
 
129
129
  ```html
130
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/shader-ast-optimize"></script>
130
+ <script type="module" src="https://esm.run/@thi.ng/shader-ast-optimize"></script>
131
131
  ```
132
132
 
133
- [Skypack documentation](https://docs.skypack.dev/)
133
+ [JSDelivr documentation](https://www.jsdelivr.com/)
134
134
 
135
135
  For Node.js REPL:
136
136
 
@@ -1,6 +1,7 @@
1
+ import type { Maybe } from "@thi.ng/api";
1
2
  import { type FnCall, type Term } from "@thi.ng/shader-ast";
2
3
  /** @internal */
3
- export declare const foldNode: import("@thi.ng/defmulti/api").MultiFn1<Term<any>, boolean | undefined>;
4
+ export declare const foldNode: import("@thi.ng/defmulti/api").MultiFn1<Term<any>, Maybe<boolean>>;
4
5
  /**
5
6
  * Similar to {@link foldNode}, but specialized for function calls of builtin's
6
7
  * (aka `call_i` AST nodes).
@@ -17,7 +18,7 @@ export declare const foldNode: import("@thi.ng/defmulti/api").MultiFn1<Term<any>
17
18
  *
18
19
  * @internal
19
20
  */
20
- export declare const foldBuiltin: import("@thi.ng/defmulti/api").MultiFn1<FnCall<any>, boolean | undefined>;
21
+ export declare const foldBuiltin: import("@thi.ng/defmulti/api").MultiFn1<FnCall<any>, Maybe<boolean>>;
21
22
  /**
22
23
  * Traverses given AST (potentially several times) and applies constant folding
23
24
  * optimizations where possible. Returns possibly updated tree (mutates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/shader-ast-optimize",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "Shader AST code optimization passes/strategies",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,12 +36,12 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.10.0",
40
- "@thi.ng/defmulti": "^3.0.35",
41
- "@thi.ng/errors": "^2.5.3",
42
- "@thi.ng/logger": "^3.0.8",
43
- "@thi.ng/math": "^5.10.9",
44
- "@thi.ng/shader-ast": "^0.15.10"
39
+ "@thi.ng/api": "^8.11.0",
40
+ "@thi.ng/defmulti": "^3.0.37",
41
+ "@thi.ng/errors": "^2.5.5",
42
+ "@thi.ng/logger": "^3.0.10",
43
+ "@thi.ng/math": "^5.10.11",
44
+ "@thi.ng/shader-ast": "^0.15.12"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@microsoft/api-extractor": "^7.43.0",
@@ -83,5 +83,5 @@
83
83
  "parent": "@thi.ng/shader-ast",
84
84
  "year": 2019
85
85
  },
86
- "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
86
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
87
87
  }