Skip to content

10.0.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@cknitt cknitt released this 14 Jul 07:57
· 1798 commits to master since this release

Beta 3

🐛 Bug Fix

  • Fix issue with compiler log not terminated that causes problems with editor extension not clearing issues when fixed #5545

Beta 2

💅 Polish
  • Changed Linux build to depend on GLIBC 2.28 again for compatibility with Debian 10.

Beta 1

🐛 Bug Fix

  • Fixed crash in rescript build on Windows #5516
  • Fixed rescript init command not working #5526

💥 Breaking Change

  • bsconfig.json does not support // line comments anymore
  • Externals without @val annotations do not work anymore, and externals with = "" give an error.
  • Regular expressions don't need escaping. E.g. let blockCommentsRe = %re("/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*+\\//g") is now let blockCommentsRe = %re("/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g").

Alpha 1

Compiler

🚀 New Feature

  • Add support for @new @variadic (see #5364)
  • New records with @optional fields #5423 #5452

🐛 Bug Fix

  • Classify bigint correctly #5351

💥 Breaking Change

🏠 [Internal]

  • Proper M1 support (CI now supports M1 native builds)

Syntax

🚀 New Feature

  • Doc comments /** ... */ are now supported. Inernally, they are attributes, so are only valid at positions where @foo is allowed, or a syntax error is given. Similarly for module-level /*** comments */ that can go where @@attributes go.

🐛 Bug Fix

  • 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

💥 Breaking Change

  • Remove parsing of "import" and "export" which was never officially supported.

Libraries

💥 Breaking Change

  • Removed printing modules (Printf, Format etc) and related functions. Details of files added/removed: 0fd8bb0.
  • There could be issues with rescript-relay. See #5493.

💅 Polish

  • Several Belt / Js libraries are now converted to ReScript syntax, with corresponding comments in Markdown format suitable for hovering. See #5361.

Playground

🏠 Internal

  • Added jsoo_playground_main.ml as the rescript-lang.org playground bundle entrypoint

💥 Breaking Change

  • * Removed Reason syntax support for the playground experience. See #5375