Skip to content

v0.1.1

Choose a tag to compare

@markmals markmals released this 22 Apr 15:28
· 65 commits to main since this release

Fixes

  • reference() now composes inside @remix-run/data-schema's nested combinators (s.object, s.array, s.lazy, etc.). Previously it only exposed Standard Schema v1's ~standard.validate, but data-schema's combinators walk children via a ~run method (a Valibot/data-schema convention that sits alongside Standard Schema). The helper now exposes both interfaces, so schema: s.object({ author: reference("authors") }) works as expected. Nested validation errors carry the correct path.

Compatibility

This release is backward compatible. Consumers using Zod, Valibot, ArkType, or any other Standard Schema library remain unaffected.