12.0.0-beta.3
Pre-release
Pre-release
💥 Breaking Change
Result.getOrThrownow throws a JS error instead of aNot_foundReScript exception. #7630- Remove
rescript dumpcommand.bsccan be used directly to dump the contents of a.cmifile instead if needed. #7710
🚀 New Feature
- Add optional
messageargument toResult.getOrThrowand improve default error message. #7630 - Add
RegExp.escapebinding. #7695
🐛 Bug fix
- Fix
--create-sourcedirsgeneration 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
@thiswithasynckeyword. #7702
💅 Polish
- Configuration fields
bs-dependencies,bs-dev-dependenciesandbsc-flagsare now deprecated in favor ofdependencies,dev-dependenciesandcompiler-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
@methattribute. #7684