Skip to content

v2.0.0

Choose a tag to compare

@DZakh DZakh released this 18 Sep 22:11
· 700 commits to main since this release

Release to fix limitations I faced developing rescript-envsafe. Shouldn't be breaking for most users.

  • Add S.Int.port built-in refinement
  • Rename action type to migration. Still don't like the name though 😅
  • Add advanced preprocessing functionality, might be useful when you build sometimes on top of rescript-struct
  • Remove [ReScript Struct] prefix from error message created by S.Error.toString
  • Remove custom error RescriptStructError for panic and throw normal Errors with [rescript-struct] prefix in message
  • Fix matching of Literal in the tagged type. I mentioned the problem in the form post
  • Fix Defaulted and Json structs with parseAsyncInStepsWith. They will synchronously return error that happened before asynchronous operation
  • The Json struct factory is more performant and creates structs with Json name instead of String
  • Creating structs became 20% faster. Now to create a struct and parse is just a little slower than only parsing for zod
  • Add rescript-envsafe to the ecosystem of rescript-struct
  • Update LICENSE copyright