DZakh / rescript-schema

🧬 The fastest parser in the entire JavaScript ecosystem with a focus on small bundle size and top-notch DX
MIT License
160 stars 7 forks source link

Upgrade to rescript 11-beta.2 #57

Closed JasoonS closed 1 year ago

JasoonS commented 1 year ago

Nothing major here - I was just fiddling around because I was experimenting with the latest v11 candidate on another repo. I thought there was an issue with rescript-struct from the error messages I got, but turns out I was just being silly. :grimacing:

Anyway, I thought this update would maybe be appreciated.

Summary:

  1. Upgraded to the latest beta.
  2. Fix issues that arose in the code (uncurried by default struggled with the type annotations for Obj.magic for some reason)
  3. Ran pnpm rescript format -all

In hindsight I think keeping the bsconfig to have "uncurried": false probably makes sense to make sure nothing breaks. Making another PR with that too