Skip to content

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 05 Dec 10:46
· 52 commits to main since this release
47d5091

Patch Changes

  • 78ff0fc: Fix type inference for schema validation methods

    • formatWithSchema() now properly infers input type from schema instead of accepting unknown
    • formatWithSchemaAsync() now properly infers input type from schema
    • tryFormatWithSchema() now properly infers input type from schema
    • PromptWeaver.composeAndCreate() now preserves schema type parameter
    • PromptBuilder.toPromptWeaver() now preserves schema type parameter

    This enables full compile-time type safety when using Standard Schema validators (Zod, Valibot, ArkType, etc.)