12.0.0-alpha.15
Pre-release
Pre-release
·
284 commits
to master
since this release
💥 Breaking Change
- New
rewatchbased build system. #7551 #7593- The new
rewatchbased build system is now the default and is exposed through therescriptcommand. Therewatchcommand has been removed. - The previous Ninja-based build system is now available via the
rescript legacysubcommand. - Argument
--compiler-argsis now a subcommandcompiler-args.
- The new
- Remove
String.getSymbol,String.getSymbolUnsafe,String.setSymbolfrom standard library. #7571
🐛 Bug fix
- Ignore inferred arity in functions inside
%rawfunctions, leaving to%ffithe responsibility to check the arity since it gives an error in case of mismatch. #7542 - Pass the rewatch exit code through in wrapper script. #7565
- Prop punning when types don't match results in
I/O error: _none_: No such file or directory. #7533 - Pass location to children prop in jsx ppx. #7540
- Fix crash when
-bs-gis used with untagged variants. #7575 - Fix issue with preserve mode where
jsxis declared as an external without a@moduleattribute. #7591 - Rewatch: don't add deps to modules that are in packages that are not a dependency. #7612
- Rewatch: fix non-unicode stderr. #7613
- Fix rewatch considering warning configs of non-local dependencies. #7614
- Rewatch: fix panic if package.json name different from module name. #7616
- Fix finding the standard library for pnpm. #7615
💅 Polish
- Better error message for when trying to await something that is not a promise. #7561
- Better error messages for object field missing and object field type mismatches. #7580
- Better error messages for when polymorphic variants does not match for various reasons. #7596
- Improved completions for inline records. #7601
- Add
OrThrowaliases forBeltfunctions ending withExn. #7581, #7590 The following aliases have been added:Belt.Array.getOrThrowBelt.Array.setOrThrowBelt.Map.getOrThrowBelt.MutableMap.getOrThrowBelt.Set.getOrThrowBelt.MutableSet.getOrThrowBelt.List.getOrThrowBelt.List.tailOrThrowBelt.List.headOrThrowBelt.MutableQueue.peekOrThrowBelt.MutableQueue.popOrThrowBelt.Option.getOrThrowBelt.Result.getOrThrow