@cosmicdrift/kumiko-types 0.197.0 → 0.197.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.197.0",
3
+ "version": "0.197.1",
4
4
  "description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -35,10 +35,12 @@ export type VariantSpec = {
35
35
  //
36
36
  // The renderer must produce `spec.format` when set, and the source's own
37
37
  // format otherwise. It never reports back what it produced: the caller
38
- // derives the output mimeType from the spec alone (see outputMimeType in
39
- // derivatives-context.ts), because a cache hit has no renderer run to read
40
- // a mimeType off, and a spec-derived value is the only one both branches
41
- // can share.
38
+ // derives the output mimeType from the spec plus the source FileRef's
39
+ // mimeType (see outputMimeType in derivatives-context.ts), because a cache
40
+ // hit has no renderer run to read a mimeType off. When `spec.format` is
41
+ // unset, the source mimeType is client-controlled, so outputMimeType
42
+ // allowlists it against known-safe raster types instead of passing it
43
+ // through verbatim (#2021).
42
44
  export type DerivativeRendererPlugin = {
43
45
  readonly render: (
44
46
  input: Uint8Array,