Skip to content

Releases: rescript-lang/rescript-compiler

11.1.0

19 Apr 15:58
aec2b60
Compare
Choose a tag to compare

ReScript 11.1, which builds upon the foundation laid by ReScript 11.0 earlier this year, comes with a host of exciting additions.

πŸš€ Highlights

πŸ“‹ More Information

11.1.0-rc.8

17 Apr 11:27
dc2518a
Compare
Choose a tag to compare
11.1.0-rc.8 Pre-release
Pre-release

πŸš€ New Feature

  • Add %todo extension for leaving implementation for later. #6713
  • Add -warn-error argument for generating errors in CI. Useful for %todo extension. #6717

πŸ› Bug Fix

  • Improve error when using @deriving(accessors) on a variant with record arguments. #6712
  • Stop escaping JSX prop names with hyphens. #6705
  • Fix trailing undefined for optional parameters not omitted with @send and @new. #6716
  • Fix JSX4 adding the incorrect type annotation for the prop ref in React.forwardRef component. #6718
  • Fix description for warning number 110. #6725

πŸ’… Polish

  • Module spec es6 and es6-global is deprecated in favor of esmodule. #6709

11.1.0-rc.7

03 Apr 15:50
5d5440c
Compare
Choose a tag to compare
11.1.0-rc.7 Pre-release
Pre-release

πŸ› Bug Fix

  • Fix variance setting for builtin dict type. Fixes issues around inference. #6707

11.1.0-rc.6

27 Mar 16:46
5b2fcfd
Compare
Choose a tag to compare
11.1.0-rc.6 Pre-release
Pre-release

πŸš€ New Feature

πŸ› Bug Fix

  • Fix mishandling of uncurried functions in super errors. #6694

11.1.0-rc.5

21 Mar 15:05
e6309c7
Compare
Choose a tag to compare
11.1.0-rc.5 Pre-release
Pre-release

πŸ› Bug Fix

  • Fix misparsing in/after JSX. #6686
  • Fix @deriving(accessors) outputting curried functions in uncurried mode. #6687

11.1.0-rc.4

14 Mar 13:37
Compare
Choose a tag to compare
11.1.0-rc.4 Pre-release
Pre-release

πŸ› Bug Fix

  • Fix emitting static import instead of dynamic import. #6664
  • Fix local type variables breaking react components. #6665
  • Fix remove redundant branches in generated switch body. #6672

πŸ’… Polish

  • Omit undefined in external function calls for trailing optional arguments when not supplied. #6653
  • Make pattern match suggestions to be easier to copy-paste. #6656

11.1.0-rc.3

26 Feb 16:50
52e3d29
Compare
Choose a tag to compare
11.1.0-rc.3 Pre-release
Pre-release

πŸ› Bug Fix

  • Fix compiler crash when reexporting tagged template literal externals. #6645

πŸ’… Polish

  • No parens around tagged template literals. #6639
  • Allow identifier with modules in tagged template literals (e.g. Pg.sqlselect * from ${table} where id = ${id}). #6645

11.1.0-rc.2

08 Feb 08:39
Compare
Choose a tag to compare
11.1.0-rc.2 Pre-release
Pre-release

πŸš€ New Feature

πŸ› Bug Fix

  • Fix issue with async and newtype in uncurried mode. #6601
  • Generic JSX transform: Rename expected module name for lowercase JSX to Elements from DOM. #6606
  • Generic JSX transform: Set default config params for jsxConfig. #6606
  • Generic JSX transform: Handle namespaced names. #6606
  • Fix issue with doc comment in recursive module. #6613
  • Fix issue with Exceptions and Extensible types runtime generation. #6570

11.1.0-rc.1

30 Jan 14:27
Compare
Choose a tag to compare
11.1.0-rc.1 Pre-release
Pre-release

πŸš€ New Feature

  • Experimental support of tagged template literals, e.g. sql`select * from ${table}. #6250
  • Experimental support for generic/custom JSX transforms. #6565
  • dict is now a builtin type. #6590

πŸ› Bug Fix

  • GenType: distinguish inline records from unary variant cases of object type. #6586

11.0.1

20 Jan 13:47
f0ef0ef
Compare
Choose a tag to compare

πŸ› Bug Fix

  • Renamed inline record fields: fix renamed field access in inline records. #6551
  • Fixed issue with coercions sometimes raising a Not_found instead of giving a proper error message. #6574
  • Fix issue with recursive modules and uncurried. #6575

πŸ’… Polish

  • Improve error message for missing label(s) in function application. #6576