@keroway/tdsl-wasm 1.16.0 → 1.17.0

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keroway/tdsl-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for the Timeline DSL compiler (static compile + SVG/HTML render)",
5
- "version": "1.16.0",
5
+ "version": "1.17.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/tdsl_wasm.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * Check TDSL source and return diagnostics as JSON.
6
6
  *
7
7
  * Returns a JSON array of diagnostic objects: `[{severity, message, line, col}]`.
8
- * `severity` is `"error"` or `"warning"`.
8
+ * `severity` is `"error"`, `"warning"`, or `"info"`.
9
9
  *
10
10
  * `line`/`col` are **1-based** when a source position is available (parse errors via
11
11
  * `ParseError::source_location`, validation warnings via the item's `source_span`),
@@ -13,10 +13,9 @@
13
13
  * attributes. Diagnostics that carry no position (lowering errors such as unknown-lane
14
14
  * references) report `line: 0, col: 0`; the WebUI treats a `0` line as non-clickable.
15
15
  *
16
- * **Note on `import` blocks**: `import wikidata` blocks are not resolved in the browser
17
- * (no network access). Unresolved imports are **silently skipped** they produce no
18
- * diagnostics, but the resulting IR / SVG will omit those items. Use static `span`,
19
- * `event`, and `event_range` statements for content that must render in the browser.
16
+ * **Note on `import`/`map` blocks**: Wikidata fetch is not available in the browser.
17
+ * Each `import` or `map` block receives an `"info"` diagnostic pointing to its start
18
+ * line so the user knows to run `tdsl build` for full resolution.
20
19
  */
21
20
  export function check_source(source: string): string;
22
21
 
package/tdsl_wasm.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Check TDSL source and return diagnostics as JSON.
5
5
  *
6
6
  * Returns a JSON array of diagnostic objects: `[{severity, message, line, col}]`.
7
- * `severity` is `"error"` or `"warning"`.
7
+ * `severity` is `"error"`, `"warning"`, or `"info"`.
8
8
  *
9
9
  * `line`/`col` are **1-based** when a source position is available (parse errors via
10
10
  * `ParseError::source_location`, validation warnings via the item's `source_span`),
@@ -12,10 +12,9 @@
12
12
  * attributes. Diagnostics that carry no position (lowering errors such as unknown-lane
13
13
  * references) report `line: 0, col: 0`; the WebUI treats a `0` line as non-clickable.
14
14
  *
15
- * **Note on `import` blocks**: `import wikidata` blocks are not resolved in the browser
16
- * (no network access). Unresolved imports are **silently skipped** they produce no
17
- * diagnostics, but the resulting IR / SVG will omit those items. Use static `span`,
18
- * `event`, and `event_range` statements for content that must render in the browser.
15
+ * **Note on `import`/`map` blocks**: Wikidata fetch is not available in the browser.
16
+ * Each `import` or `map` block receives an `"info"` diagnostic pointing to its start
17
+ * line so the user knows to run `tdsl build` for full resolution.
19
18
  * @param {string} source
20
19
  * @returns {string}
21
20
  */
package/tdsl_wasm_bg.wasm CHANGED
Binary file