@polyengine/translator 0.5.0 → 0.6.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/esm/mod.js CHANGED
@@ -4,7 +4,8 @@
4
4
  // Why a separate package: the translator is a versioned peer of the
5
5
  // runtime (plan-format coupling), so it ships inside the same release —
6
6
  // but embedders that translate at BUILD time (tools/translate,
7
- // embedder-api A4) deploy no translator at all, and keeping the ~1.85 MB
7
+ // contracts/embedder-api.md §"Module wiring and instantiation") deploy no
8
+ // translator at all, and keeping the ~1.85 MB
8
9
  // asset out of @polyengine/runtime keeps their production graphs clean.
9
10
  //
10
11
  // The asset (`translator_shim.wasm`, sibling to this module) is copied
@@ -32,7 +33,8 @@ let singleton;
32
33
  * asset).
33
34
  *
34
35
  * Pass the result to `instantiate({ componentBytes, translator })`
35
- * (embedder-api A3), or call `.translate()` directly.
36
+ * (contracts/embedder-api.md §"Module wiring and instantiation"), or call
37
+ * `.translate()` directly.
36
38
  */
37
39
  export function defaultTranslator() {
38
40
  return singleton ??= load();
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyengine/translator",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "The packaged polyengine translator (wasmtime's translation frontend compiled to wasm) plus its per-platform loader.",
5
5
  "homepage": "https://github.com/polymorph-components/polyengine#readme",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@polyengine/runtime": "0.5.0"
34
+ "@polyengine/runtime": "0.6.0"
35
35
  },
36
36
  "_generatedBy": "dnt@0.43.2"
37
37
  }
package/types/mod.d.ts CHANGED
@@ -18,6 +18,7 @@ import { Translator } from "@polyengine/runtime/shim";
18
18
  * asset).
19
19
  *
20
20
  * Pass the result to `instantiate({ componentBytes, translator })`
21
- * (embedder-api A3), or call `.translate()` directly.
21
+ * (contracts/embedder-api.md §"Module wiring and instantiation"), or call
22
+ * `.translate()` directly.
22
23
  */
23
24
  export declare function defaultTranslator(): Promise<Translator>;