10.1.0-alpha.2
Pre-release
Pre-release
cknitt
released this
23 Sep 18:08
·
1226 commits
to master
since this release
🚀 New Feature
- Fix pretty printer where it would print doc comments on the same line as other attributes rescript-lang/syntax#642
- Propagte
"jsx"
configuration to dependencies #5661 - Add support for empty record literal
{}
for records where all fields are optional #5658 - Add support for empty record type (e.g.
type empty = {}
) #5658
🐛 Bug Fix
- Fix issue in formatting JSX spread props rescript-lang/syntax#644
- Fix location issue in error messages with JSX V4 where the body of the component is an application rescript-lang/syntax#633
- Fix printing of type declarations in error message where they would be considered recursive by default
- Fix issue where the printer would omit attributes for
->
and|>
rescript-lang/syntax#629 - Fix printing of optional fields in records #5654
💅 Polish
- Improvements and fixes for JSX V4. See guide https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md
- Mention all missing fields in error message for records, not just one #5657