Skip to content

Releases: rescript-lang/rescript

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

11.0.0

11 Jan 20:55
1bb386d
Compare
Choose a tag to compare

ReScript's second major community-driven release is out and comes packed with new features and improvements! 🎉

🚀 Highlights

📋 More Information

11.0.0-rc.9

09 Jan 17:20
bc22eb9
Compare
Choose a tag to compare
11.0.0-rc.9 Pre-release
Pre-release

🚀 New Feature

  • GenType: support @deriving(accessors) outputs. #6537
  • Allow coercing ints and floats to unboxed variants that have a catch-all unboxed int or float case. #6540
  • Allow tuples in untagged variants. #6550

🐛 Bug Fix

  • GenType: now emits full suffix on JS import path to be compatible with .res.js. #6541

💅 Polish

  • Format docstrings. #6417
  • JSX v4: make automatic mode the default. #6552

11.0.0-rc.8

19 Dec 12:58
Compare
Choose a tag to compare
11.0.0-rc.8 Pre-release
Pre-release

🚀 New Feature

  • Add support for type coercion for invariant type arguments such as array payloads. #6518
  • Start treating rescript command the same as the rescript build command, so now you can do rescript -w. #6524

🐛 Bug Fix

  • Fix accidental removal of Belt.Result.Ok and Belt.Result.Error constructors in rc.5. #6514
  • Add missing check that the runtime representation of variants matches implementation and interface. https://github.com/rescript-lang/rescript-compiler/pull/6513/files
  • GenType: only export types (not values) from module types. #6516
  • Fix compiler crash with unboxed variant definition with only 1 constructor. #6523
  • GenType: support mutual recursive types inside modules. #6528
  • Workaround for @as in labels in uncurried externals, which was broken. #6527

💅 Polish

  • GenType: make outputs DCE-friendly. #6508

11.0.0-rc.7

07 Dec 08:32
9711589
Compare
Choose a tag to compare
11.0.0-rc.7 Pre-release
Pre-release

🚀 New Feature

  • Allow empty inline records in variants. #6494
  • Allow empty record patterns in pattern matching. #6494

🐛 Bug Fix

  • Fix issue where an inline record with attributes did not parse. #6499
  • Fix issue with uncurried function with 1 arg being a variable where an undefined variable could be emitted. #6507
  • Fix runtime errors on @genType.as("alias") output. #6509

11.0.0-rc.6

22 Nov 15:54
31ac6ab
Compare
Choose a tag to compare
11.0.0-rc.6 Pre-release
Pre-release

🚀 New Feature

  • Freely configurable suffix for generated .js files. #6472

🐛 Bug Fix

  • Fix issue with GenType and result introduced in rc.5. #6464
  • Fix compiler crash when inlining complex constants in pattern matching. #6471
  • Fix issue with generating async functions inside loops. #6479
  • Fix issue with Gentype and string annotations with numbers such as @as("0"). #6487
  • Fix error message on curried/uncurried signature mismatch. #6414

💅 Polish

  • Improve some error messages in rescript.conf parsing. #6469