wesl 0.6.32 → 0.6.36
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/dist/index.d.ts +6 -5
- package/package.json +2 -2
- package/src/Linker.ts +1 -1
- package/src/WeslBundle.ts +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -614,13 +614,14 @@ declare function minimallyMangledName(proposedName: string, globalNames: Set<str
|
|
|
614
614
|
//#endregion
|
|
615
615
|
//#region src/WeslBundle.d.ts
|
|
616
616
|
interface WeslBundle {
|
|
617
|
-
/** name
|
|
617
|
+
/** npm package name sanitized to be a valid WESL identifier
|
|
618
|
+
* (@ removed, / ==> __, - ==> _) */
|
|
618
619
|
name: string;
|
|
619
|
-
/**
|
|
620
|
+
/** WESL edition of the code e.g. unstable_2025_1 */
|
|
620
621
|
edition: string;
|
|
621
|
-
/** map of
|
|
622
|
+
/** map of WESL/WGSL modules:
|
|
622
623
|
* keys are file paths, relative to package root (e.g. "./lib.wgsl")
|
|
623
|
-
* values are
|
|
624
|
+
* values are WESL/WGSL code strings
|
|
624
625
|
*/
|
|
625
626
|
modules: Record<string, string>;
|
|
626
627
|
/** packages referenced by this package */
|
|
@@ -734,7 +735,7 @@ interface LinkParams {
|
|
|
734
735
|
virtualLibs?: Record<string, VirtualLibraryFn>;
|
|
735
736
|
/** package name for the local sources (in addition to default "package::").
|
|
736
737
|
* Enables imports like `import mypkg::foo` alongside `import package::foo`.
|
|
737
|
-
*
|
|
738
|
+
* Should be a valid WGSL identifier (use underscores, not hyphens or slashes). */
|
|
738
739
|
packageName?: string;
|
|
739
740
|
/** plugins and other configuration to use while linking */
|
|
740
741
|
config?: LinkConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wesl",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"mini-parse": "0.6.
|
|
18
|
+
"mini-parse": "0.6.36"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/brotli": "^1.3.4",
|
package/src/Linker.ts
CHANGED
|
@@ -75,7 +75,7 @@ export interface LinkParams {
|
|
|
75
75
|
|
|
76
76
|
/** package name for the local sources (in addition to default "package::").
|
|
77
77
|
* Enables imports like `import mypkg::foo` alongside `import package::foo`.
|
|
78
|
-
*
|
|
78
|
+
* Should be a valid WGSL identifier (use underscores, not hyphens or slashes). */
|
|
79
79
|
packageName?: string;
|
|
80
80
|
|
|
81
81
|
/** plugins and other configuration to use while linking */
|
package/src/WeslBundle.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export interface WeslBundle {
|
|
2
|
-
/** name
|
|
2
|
+
/** npm package name sanitized to be a valid WESL identifier
|
|
3
|
+
* (@ removed, / ==> __, - ==> _) */
|
|
3
4
|
name: string;
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
+
/** WESL edition of the code e.g. unstable_2025_1 */
|
|
6
7
|
edition: string;
|
|
7
8
|
|
|
8
|
-
/** map of
|
|
9
|
+
/** map of WESL/WGSL modules:
|
|
9
10
|
* keys are file paths, relative to package root (e.g. "./lib.wgsl")
|
|
10
|
-
* values are
|
|
11
|
+
* values are WESL/WGSL code strings
|
|
11
12
|
*/
|
|
12
13
|
modules: Record<string, string>;
|
|
13
14
|
|