8000 Releases · DZakh/sury · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: DZakh/sury

v10.0.4

21 Jun 20:14
Compare
Choose a tag to compare
8000

Improve infer of S.nullable(S.array(...), [])

Full Changelog: v10.0.3...v10.0.4

v10.0.3

21 Jun 16:57
Compare
Choose a tag to compare

Fix S.void for CommonJS

Full Changelog: v10.0.2...v10.0.3

v10.0.2

05 Jun 06:43
Compare
Choose a tag to compare

Fix array field parsing #131

Full Changelog: v10.0.1...v10.0.2

v10.0.1

24 May 11:30
Compare
Choose a tag to compare

Improve S.union type inference in TS to support Object.keys. #128

Full Changelog: v10.0.0...v10.0.1

v10.0.0

20 May 10:12
Compare
Choose a tag to compare

v10.0.0-rc.7

17 May 16:16
Compare
Choose a tag to compare
  • Improve JSON Schema of S.port to include minimum and maximum
  • Expose port as format field on number schemas
  • (rescript) Deprecate Port refinement metadata in favor of format field on number schemas
  • Fix port refinement not to allow decimal numbers
  • Improved the default error message for S.port
  • (typescript) Add S.void
  • Fix S.union case with a catch all item without transformations and refinements
  • Fix S.union case when there are multiple objects with the identical discriminant literals
  • (rescript) Add OpenAPI module from rescript-openapi

Full Changelog: v10.0.0-rc.6...v10.0.0-rc.7

v10.0.0-rc.6

13 May 17:55
Compare
Choose a tag to compare

What's Changed

  • Add title field to schema and allow to set it via S.meta
  • Fix union bug with S.unknown (#121)
  • (rescript) Renamed S.nullish back to S.nullable
  • (rescript) Added S.nullableAsOption to replace S.nullable from V9
  • (ppx) Returned back @s.nullable attribute
  • (ppx) Added support for Js.nullable type

New Contributors

Full Changelog: v10.0.0-rc.5...v10.0.0-rc.6

v10.0.0-rc.5

05 May 18:26
Compare
Choose a tag to compare
  • Fix S.union for multiple S.instance schemas
  • Add S.fromJSONSchema
  • Rename S.Json type to S.JSON for consistency
  • Include /docs in the JSR release

Full Changelog: v10.0.0-rc.4...v10.0.0-rc.5

v10.0.0-rc.4

04 May 19:11
Compare
Choose a tag to compare
  • Fixed edge-cases with S.union of S.number and NaN schemas together. As well as S.array or S.instance schemas together with object schemas
  • Added S.instance
  • Fixed S.schema for literal instances
  • Added S.symbol
  • Fixed function literal type inference
  • S.custom is removed in favor of S.unknown+S.transform+S.meta. The goal is to try to avoid S.unknown as much as possible. Try to use S.instance or any other built-in schemas as much as possible.

Full Changelog: v10.0.0-rc.3...v10.0.0-rc.4

v10.0.0-rc.3

03 May 15:53
Compare
Choose a tag to compare
  • S.to support from literal to non-literal of the same type
  • Fix the S.union case with parsing schemas of the same type
  • Export UnknownToOutput and UnknownToInput and add GenType support for S.schema type
  • Fixed S.toJSONSchema to error with invalid optional object fields
  • Display expected and received values in the same format
  • Update validation to start by deeply checking the object and literal fields. This might resolve in a less detailed error path, but allows nested literals to act as union discriminators.
  • Stopped validating literals in conversion mode
  • Support reverse parsing for S.object with nested discriminants

Full Changelog: v10.0.0-rc.2...v10.0.0-rc.3

0