@flighthq/types 0.5.1-next.1892.cbd15bd → 0.5.1-next.1903.956d5a5

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/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/types`. The `@flight
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/types@0.5.1-next.1892.cbd15bd](https://github.com/flighthq/flight/tree/cbd15bd13373265e8f6dcf0cb057a16aee812919/packages/types)
17
- - [License](https://github.com/flighthq/flight/blob/cbd15bd13373265e8f6dcf0cb057a16aee812919/LICENSE.md)
16
+ - [Source for @flighthq/types@0.5.1-next.1903.956d5a5](https://github.com/flighthq/flight/tree/956d5a53eb1e420690b274e7c05edca23821d094/packages/types)
17
+ - [License](https://github.com/flighthq/flight/blob/956d5a53eb1e420690b274e7c05edca23821d094/LICENSE.md)
@@ -29,6 +29,41 @@ export interface RequirementCatalogEntry {
29
29
  * default field applies, which is the single-family case every other format uses today.
30
30
  */
31
31
  readonly parserField?: string;
32
+ /**
33
+ * The flat named binding a DIRECT-PARSER row is emitted as, instead of a `parserOptions` field.
34
+ *
35
+ * ★ THIS EXISTS BECAUSE SOME FORMATS HAVE NO HANDLER FAMILY TO SUBSET. Every other parser row spreads its
36
+ * symbol into a field the format's own options type declares — `.dae` into `decoders`, `.swf` into `tags`.
37
+ * A bedrock format has one parser and no family: `TilemapImportOptions` declares only `mapFormats` and
38
+ * `tilesetFormats`, which are DESCRIPTOR LISTS FOR THE DETECTION REGISTRY, and `BitmapFontParseOptions`
39
+ * declares nothing at all. Emitting into either would either install the registry — whose initializer seeds
40
+ * the full preset, measured at 40,377 bytes carrying five codecs against 7,935 for one — or spread into a
41
+ * field the format does not declare, which parses with the full default family while the generated module
42
+ * looks correct.
43
+ *
44
+ * So the row names the parser itself, and the module emits `export const <parserExport> = <symbol>;`. It
45
+ * selects IDENTITY and nothing more: the parser keeps its own signature, and no adapter or registry is
46
+ * invented to make several of them interchangeable. A row carrying this never enters `parserOptions`.
47
+ */
48
+ readonly parserExport?: string;
49
+ /**
50
+ * Whether the direct parser this row names takes DECODED TEXT or the RAW BYTES as its first argument.
51
+ *
52
+ * ★ IT IS STATED, NOT SNIFFED, BECAUSE THE EMITTER CANNOT ASK THE FUNCTION. A generated `contentParser` has one
53
+ * contract — `contentParser(bytes, ...rest)` — so that an application reads a file and calls it without knowing
54
+ * which format the build selected. The parsers themselves disagree: `parseBitmapFontBinary` wants the bytes,
55
+ * while `parseTiledTmx` and the rest want a string. Nothing about a symbol name or its module says which, and
56
+ * guessing by extension would be exactly the content-vs-suffix mistake `.fnt` already taught. So the catalog
57
+ * carries the fact, and a row whose parser changes shape changes its row.
58
+ *
59
+ * A `bytes` row is emitted as the direct binding. A `string` row is emitted as a wrapper that decodes and
60
+ * forwards every remaining argument in order, so options, diagnostics and the parser's own return and sentinel
61
+ * behavior are untouched.
62
+ *
63
+ * Meaningful only alongside `parserExport`; a handler row spreads into an options field and never becomes a
64
+ * callable of its own.
65
+ */
66
+ readonly contentParserInputKind?: 'bytes' | 'string';
32
67
  /**
33
68
  * The `register*` that binds the implementation, for a backend that HAS one. Absent for an
34
69
  * options-driven lane: a SWF tag family is named in `SwfParseOptions.tags` and an AWD2 handler in
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementCatalog.d.ts","sourceRoot":"","sources":["../src/RequirementCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ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M,WAAW,kBAAkB;IACjC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC5C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAClD;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC1D,sGAAsG;IACtG,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/types",
3
- "version": "0.5.1-next.1892.cbd15bd",
3
+ "version": "0.5.1-next.1903.956d5a5",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {