Skip to content

data-schema v1.0.2

Choose a tag to compare

@github-actions github-actions released this 04 Dec 02:27
83d5fe3

Patch Changes

  • bigint() from remix/data-schema/coerce now rejects strings longer than 4,096 UTF-16 code units, including surrounding whitespace, with an Expected bigint string of at most 4096 characters issue. This bounds the work BigInt() does on untrusted input such as form fields and query parameters. (#12423)

  • Fix TypeScript declaration emit (declaration: true / composite: true) failing with TS2883 and TS4023 when exporting an object() schema without an explicit type annotation. object() no longer leaks the unexported schemaMetadata symbol or SchemaMetadata type into its inferred return type, and Schema is now an interface so emitted declarations reference Schema directly without expanding internal @standard-schema/spec types. (#12501)

  • Fix object() and record() results missing keys that passed validation. Declared fields, passthrough fields, and keys produced by record key transforms are now always own properties of the result. (#12373)