Skip to content

v0.62.1

Choose a tag to compare

@github-actions github-actions released this 11 Dec 12:21
· 208 commits to main since this release
348b2f9

Patch Changes

  • #532 8f189aa Thanks @mattiamanzati! - Fix handling of read-only arrays in "Refactor to Schema (Recursive Structural)" code generation.

    The refactor now correctly distinguishes between mutable arrays (Array<T>) and read-only arrays (ReadonlyArray<T> or readonly T[]):

    • Array<T> is now converted to Schema.mutable(Schema.Array(...)) to preserve mutability
    • ReadonlyArray<T> and readonly T[] are converted to Schema.Array(...) (read-only by default)

    This fixes compatibility issues with external libraries (like Stripe, BetterAuth) that expect mutable arrays in their API parameters.

    Fixes #531