Skip to content

fix(wit): replace position tuple with record, remove deprecated raw-text-component type - #21

Open
AmmarDeeper34 wants to merge 6 commits into
Pumpkin-MC:masterfrom
AmmarDeeper34:main
Open

fix(wit): replace position tuple with record, remove deprecated raw-text-component type#21
AmmarDeeper34 wants to merge 6 commits into
Pumpkin-MC:masterfrom
AmmarDeeper34:main

Conversation

@AmmarDeeper34

Copy link
Copy Markdown

Summary

Part of Pumpkin #2507 — Pumpkin 1.0.0 Roadmap (Issue #449).

Changes

  1. Replace position tuple with record in v0.1/common.wit:

    • Before: type position = tuple<f64, f64, f64>;
    • After: record position { x: f64, y: f64, z: f64 }
  2. Remove deprecated raw-text-component type (unused type alias).

Rationale

  • Named record fields provide better documentation and IDE support
  • Record layout is guaranteed stable across WASM Component Model versions
  • The raw-text-component type was unused (replaced by text-component resource)

Breaking Change

Existing WASM plugins using Position as a tuple will need to switch to field access (.x, .y, .z).

aure31 and others added 6 commits June 27, 2026 20:57
…ext-component type

- Change position from tuple<f64,f64,f64> to record with named x,y,z fields
- Remove deprecated raw-text-component type alias
- Breaking ABI change: plugins must recompile against new WIT definitions

Refs: #449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants