Skip to content

Latest commit

 

History

History
98 lines (76 loc) · 7.84 KB

CHANGELOG.md

File metadata and controls

98 lines (76 loc) · 7.84 KB

Master

Tags:

  • 💥 [Breaking Change]
  • 👓 [Spec Compliance]
  • 🚀 [New Feature]
  • 🐛 [Bug Fix]
  • 📝 [Documentation]
  • 🏠 [Internal]
  • 💅 [Polish]

💥 Breaking Change

🚀 New Feature

  • Add surface syntax for async/await rescript-lang#600

  • Initial support for JSX V4, still work in progress.

    • 💥 when V4 is activated, at most one component is allowed for each module.
  • Add support for empty record literal {} for records with only optional fields, and type definition of empty record (e.g. type empty = {}) rescript-lang#632

  • Support the use of spread anywhere in list creation (e.g. `list{...x, 1, ...y, ...z}). rescript-lang#692

  • Add support for the argument of @react.component to set a props type from the outside. rescript-lang#699

🐛 Bug Fix

  • Fix issue in formatting JSX spread props rescript-lang#644
  • Fix pretty printer where it would print doc comments on the same line as other attributes rescript-lang#642
  • Fix location issue in error messages with JSX V4 where the body of the component is an application rescript-lang#633
  • Fix issue where the printer would omit attributes for -> and |> rescript-lang#629
  • Fix printing of optional fields in records rescript-lang/rescript#5654
  • Fix printing of comments inside empty blocks rescript-lang#647
  • Fix location issue in error messages with JSX V4 where the multiple props types are defined rescript-lang#655
  • Fix location issue in make function in JSX V4 that breaks dead code elimination rescript-lang#660
  • Fix parsing (hence pretty printing) of expressions with underscore _ and comments.
  • Fix printing of comments inside JSX tag rescript-lang#664
  • Fix issue where formatter erases tail comments inside JSX tag rescript-lang#663
  • Fix issue where the JSX prop has type annotation of the first class module rescript-lang#666
  • Fix issue where a spread ...x in non-last position would not be reported as syntax error rescript-lang#673
  • Fix issue where the formatter would delete async in a function with labelled arguments.
  • Fix several printing issues with async including an infinite loop rescript-lang#680
  • Fix issue where certain JSX expressions would be formatted differenctly in compiler 10.1.0-rc.1 rescript-lang#675
  • Fix issue where printing nested pipe discards await rescript-lang#687
  • Fix issue where the JSX key type is not an optional string rescript-lang#693
  • Fix issue where the JSX fragment without children build error rescript-lang#704
  • Fix issue where async as an id cannot be used with application and labelled arguments rescript-lang#707
  • Treat await as almost-unary operator weaker than pipe so await foo->bar means await (foo->bar) rescript-lang#711

👓 Spec Compliance

  • Functions with consecutive dots now print as multiple arrow functions like in JavaScript.

:nail_care Polish

ReScript 10.0

  • Fix printing for inline nullary functor types #477
  • Fix stripping of quotes for empty poly variants #474
  • Implement syntax for arity zero vs arity one in uncurried application in #139
  • Fix parsing of first class module exprs as part of binary/ternary expr in #256
  • Fix formatter hanging on deeply nested function calls #261
  • Remove parsing of "import" and "export" which was never officially supported.

ReScript 9.0.0

ReScript 8.4.2 (December 11, 2020)

Released in https://github.com/rescript-lang/syntax/releases/tag/v8.4.2 as part of https://github.com/rescript-lang/rescript-compiler/releases/tag/8.4.2