This is the latest docs version
Quick Links
  • -Overview
  • -Language Features
  • -JS Interop
  • -Build System
Documentation
Language Manual
Reference for all language features
ReScript & React
First class bindings for ReactJS
GenType
Seamless TypeScript integration
Reanalyze
Dead Code & Termination analysis
Exploration
Packages
Explore third party libraries and bindings
Syntax Lookup
Discover all syntax constructs
APIPlaygroundBlogCommunity
  • Playground
  • Blog
  • Twitter
  • GitHub
  • Forum
Sep 30, 2024

ReScript 11.1.x

ReScript 11.1 bugfix releases and deprecation warnings

ReScript Team
Core Development

In preparation for the next major release of ReScript, we decided to deprecate JSX V3 in ReScript 11.1.5, in order to remove it completely in ReScript 12. During the development of V12, we fixed some parser and formatter issues that got backported to V11 as well. Furthermore, some compiler bugfixes happened as well. And last but not least, we improved Windows support a bit.

Please ensure to be on the latest patch release:

SH
npm install rescript@11.1

All changes can be found in the changelog (11.1.1 - 11.1.5), but the most important ones are:

Deprecation of JSX 3

JSX 3 has been officially deprecated. Moving forward, developers should only use JSX 4 so we can safely remove it from ReScript V12 and also to ensure binding libraries will use it as the blessed path. Read more on the deprecation pull request.

Some parser and formatter fixes

On the way to remove the legacy Pervasives standard library out of the compiler, we adapted a lot of compiler tests and found and fixed some parser and formatter issues, for instance:

  • Trailing Comma Issue Fixed in Partial Applications

  • Unary Operator Function Format Fix

  • Correct printing of module binding with signature

  • Comment Retention in Function Signatures with type

  • Parsing Error Fixed in Type Definitions

Compiler fixes

The compiler also received some improvements, mostly around error reporting, (untagged) variant checks and producing more efficient code in uncurried mode. Furthermore, there were some Windows support improvements. Some notable changes are:

  • Stricter Variant Spreading Rules

  • Improved Error Reporting in Tag Functions

  • Better Handling of @uncurry in Uncurried Mode

  • Untagged Variant Fixes

  • Deno Compatibility on Windows

  • Windows 11 ARM Support

v12 outlook

We are deep in the process of removing a lot of legacy compiler internals as well as support for ml syntax. With v12, ReScript will be a language with just one syntax, targeting one platform and, ideally, one standard library that ships with the compiler directly. We hope it will enable us to tailor ReScript even more to the JS platform.

Acknowledgements

There is a good amount of recurring contributors who deliver some very good work now. So once again we have to thank you all, you are amazing! The most recent patch releases had contributions by:

@aspeddro, @cknitt, @cristianoc, @fhammerschmidt, @rlidwka, @shulhi, @tsnobip, @zth

Want to read more?
Back to Overview

© 2024 The ReScript Project

Software and assets distribution powered by KeyCDN.

About
  • Community
  • ReScript Association
Find us on