12.0.0-beta.3
Pre-release
Pre-release
💥 Breaking Change
Result.getOrThrow
now throws a JS error instead of aNot_found
ReScript exception. #7630- Remove
rescript dump
command.bsc
can be used directly to dump the contents of a.cmi
file instead if needed. #7710
🚀 New Feature
- Add optional
message
argument toResult.getOrThrow
and improve default error message. #7630 - Add
RegExp.escape
binding. #7695
🐛 Bug fix
- Fix
--create-sourcedirs
generation with for a single project. #7671 - Fix rewatch not recompiling on changes on Windows. #7690
- Fix locations of regex literals. #7683
- Fix async React component compilation. #7704
- Fix
@this
withasync
keyword. #7702
💅 Polish
- Configuration fields
bs-dependencies
,bs-dev-dependencies
andbsc-flags
are now deprecated in favor ofdependencies
,dev-dependencies
andcompiler-flags
. #7658 - Better error message if platform binaries package is not found. #7698
- Hint in error for string constants matching expected variant/polyvariant constructor. #7711
- Polish arity mismatch error message a bit. #7709
- Suggest related functions with the expected arity in errors when it makes sense. #7712
- Improve error when a constructor expects an inline record. #7713
- Remove
@meth
attribute. #7684