Skip to content

v0.1.2

Choose a tag to compare

@markmals markmals released this 22 Apr 16:03
· 55 commits to main since this release

Fixes

  • reference() now type-checks when used inside @remix-run/data-schema's s.object({ ... }), s.array(...), and other nested combinators. The return type has been tightened from StandardSchemaV1<string, Reference> (async-allowed) to a sync-only variant, and structural stubs for pipe/refine have been added so the helper is assignable to data-schema's Schema<any, any> shape without taking a runtime dependency on data-schema.

Notes

  • The pipe and refine methods are no-ops at runtime — they're present only for type compatibility. Since reference IDs are strings, additional checks belong on the outer combinator that consumes the resolved entry, not on the reference helper.
  • Runtime behavior of reference() is unchanged from 0.1.1. Consumers using Zod, Valibot, ArkType, or other Standard Schema libraries remain unaffected.