I noticed some code in rescript mui broke when I tried to update to rescript 11.
To reproduce, paste this code and set uncurried to false in bsconfig.json.
it will give this error:
This untagged variant definition is invalid: Case Func has a payload that is not of one of the recognized shapes (object, array, etc). Then it must be the only case with payloads.
@unboxed
type breakpoint =
| Point(float)
| Func(string => string)
let foo = (a: breakpoint) => {
switch a {
| Point(n) => Js.log(n)
| Func(fn) => fn("foo")->Js.log
}
}
Just migrated our project to 11, other than fixing a couple curried functions the biggest change is a removal of the Node. module. Had to go through and rewrite some some bindings.
It also looks like our bundle size dropped a few kb, which is great news for us!