v2.0.0
Release to fix limitations I faced developing rescript-envsafe. Shouldn't be breaking for most users.
- Add
S.Int.portbuilt-in refinement - Rename
actiontype tomigration. 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 byS.Error.toString - Remove custom error
RescriptStructErrorfor panic and throw normalErrors with[rescript-struct]prefix in message - Fix matching of
Literalin thetaggedtype. I mentioned the problem in the form post - Fix
DefaultedandJsonstructs withparseAsyncInStepsWith. They will synchronously return error that happened before asynchronous operation - The
Jsonstruct factory is more performant and creates structs withJsonname instead ofString - 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