You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.