You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20-17Lines changed: 20 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,11 @@
26
26
- Compact output for anonymous functions. https://github.com/rescript-lang/rescript-compiler/pull/6945
27
27
28
28
#### :bug: Bug Fix
29
+
29
30
- Fix issue where long layout break added a trailing comma in partial application `...`. https://github.com/rescript-lang/rescript-compiler/pull/6949
30
31
- Fix incorrect format of function under unary operator. https://github.com/rescript-lang/rescript-compiler/pull/6953
31
32
- Fix incorrect incorrect printing of module binding with signature. https://github.com/rescript-lang/rescript-compiler/pull/6963
33
+
- Disallow spreading anything but regular variants inside of other variants. https://github.com/rescript-lang/rescript-compiler/pull/6980
32
34
33
35
#### :house: Internal
34
36
@@ -261,7 +263,7 @@
261
263
262
264
#### :rocket: New Feature
263
265
264
-
- Experimental support of tagged template literals, e.g. ```sql`select * from ${table}```. https://github.com/rescript-lang/rescript-compiler/pull/6250
266
+
- Experimental support of tagged template literals, e.g. ``sql`select * from ${table}``. https://github.com/rescript-lang/rescript-compiler/pull/6250
265
267
- Experimental support for generic/custom JSX transforms. https://github.com/rescript-lang/rescript-compiler/pull/6565
266
268
-`dict` is now a builtin type. https://github.com/rescript-lang/rescript-compiler/pull/6590
267
269
@@ -441,7 +443,7 @@ No changes compared to rc.9.
441
443
442
444
#### :boom: Breaking Change
443
445
444
-
- Stop mangling object field names. If you had objects with field names containing "__" or leading "_", they won't be mangled in the compiled JavaScript and represented as it is without changes. https://github.com/rescript-lang/rescript-compiler/pull/6354
446
+
- Stop mangling object field names. If you had objects with field names containing "\__" or leading "_", they won't be mangled in the compiled JavaScript and represented as it is without changes. https://github.com/rescript-lang/rescript-compiler/pull/6354
445
447
446
448
#### :bug: Bug Fix
447
449
@@ -496,7 +498,7 @@ No changes compared to rc.9.
496
498
497
499
#### :rocket: New Feature
498
500
499
-
- Introduced a new `%ffi` extension (*experimental* - not for production use!) that provides a more robust mechanism for JavaScript function interoperation by considering function arity in type constraints. This enhancement improves safety when dealing with JavaScript functions by enforcing type constraints based on the arity of the function. https://github.com/rescript-lang/rescript-compiler/pull/6251
501
+
- Introduced a new `%ffi` extension (_experimental_ - not for production use!) that provides a more robust mechanism for JavaScript function interoperation by considering function arity in type constraints. This enhancement improves safety when dealing with JavaScript functions by enforcing type constraints based on the arity of the function. https://github.com/rescript-lang/rescript-compiler/pull/6251
500
502
- Extended untagged variants with function types. https://github.com/rescript-lang/rescript-compiler/pull/6279
501
503
502
504
#### :boom: Breaking Change
@@ -574,14 +576,14 @@ No changes compared to rc.9.
574
576
575
577
#### :bug: Bug Fix
576
578
577
-
- Fix broken formatting in uncurried mode for functions with _ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
579
+
- Fix broken formatting in uncurried mode for functions with \_ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
578
580
- Fix issue where spreading record types with optional labels would not have their labels preserved as optional. https://github.com/rescript-lang/rescript-compiler/pull/6154
579
581
- Fix error location to be the type with the spreads when spreading record types with duplicate labels. https://github.com/rescript-lang/rescript-compiler/pull/6157
580
582
- Disable warning on `@inline` attibute on uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6152
581
583
- Support doc comments on arguments of function types. https://github.com/rescript-lang/rescript-compiler/pull/6161
582
584
- Fix issue with record type coercion and unboxed. https://github.com/rescript-lang/rescript-compiler/issues/6158
583
585
- Fixed subtype checking for record types with "@as" attributes: The subtype relationship now takes into account the compatibility of "@as" attributes between corresponding fields, ensuring correctness in runtime representation.
- Add error message to private extension. https://github.com/rescript-lang/rescript-compiler/pull/6175
587
589
@@ -610,7 +612,6 @@ No changes compared to rc.9.
610
612
611
613
- Special case generation of uncurried functions with 1 argument of unit type so they don't take a parameter. https://github.com/rescript-lang/rescript-compiler/pull/6131
612
614
613
-
614
615
# 11.0.0-alpha.1
615
616
616
617
#### :rocket: Main New Feature
@@ -621,16 +622,16 @@ No changes compared to rc.9.
621
622
#### :rocket: New Feature
622
623
623
624
- Add support for uncurried mode: a mode where everything is considered uncurried, whether with or without the `.`. This can be turned on with `@@uncurried` locally in a file. For project-level configuration in `bsconfig.json`, there's a boolean config `"uncurried"`, which propagates to dependencies, to turn on uncurried mode.
624
-
Since there's no syntax for partial application in this new mode, introduce `@res.partial foo(x)` to express partial application. This is temporary and will later have some surface syntax.
625
-
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
626
-
The `make` function of components is generated as an uncurried function.
627
-
Use best effort to determine the config when formatting a file.
Since there's no syntax for partial application in this new mode, introduce `@res.partial foo(x)` to express partial application. This is temporary and will later have some surface syntax.
626
+
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
627
+
The `make` function of components is generated as an uncurried function.
628
+
Use best effort to determine the config when formatting a file.
- Customization of runtime representation of variants. This is work in progress. E.g. some restrictions on the input. See comments of the form "TODO: put restriction on the variant definitions allowed, to make sure this never happens". https://github.com/rescript-lang/rescript-compiler/pull/6095
- Add support for unary uncurried pipe in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/5804
632
633
- Add support for partial application of uncurried functions: with uncurried application one can provide a
633
-
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
634
+
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
634
635
- Add support for uncurried externals https://github.com/rescript-lang/rescript-compiler/pull/5815https://github.com/rescript-lang/rescript-compiler/pull/5819https://github.com/rescript-lang/rescript-compiler/pull/5830https://github.com/rescript-lang/rescript-compiler/pull/5894
635
636
- Parser/Printer: unify uncurried functions of arity 0, and of arity 1 taking unit. There's now only arity 1 in the source language. https://github.com/rescript-lang/rescript-compiler/pull/5825
636
637
- Add support for default arguments in uncurried functions https://github.com/rescript-lang/rescript-compiler/pull/5835
@@ -652,12 +653,12 @@ subset of the arguments, and return a curried type with the remaining ones https
652
653
-`rescript convert <reason files>`
653
654
- Remove obsolete built-in project templates and the "rescript init" functionality. This is replaced by [create-rescript-app](https://github.com/rescript-lang/create-rescript-app) which is maintained separately.
654
655
- Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
655
-
- Made pinned dependencies transitive: if *a* is a pinned dependency of *b* and *b* is a pinned dependency of *c*, then *a* is implicitly a pinned dependency of *c*. This change is only breaking if your build process assumes non-transitivity.
656
+
- Made pinned dependencies transitive: if _a_ is a pinned dependency of _b_ and _b_ is a pinned dependency of _c_, then _a_ is implicitly a pinned dependency of _c_. This change is only breaking if your build process assumes non-transitivity.
656
657
- Curried after uncurried is not fused anymore: `(. x) => y => 3` is not equivalent to `(. x, y) => 3` anymore. It's instead equivalent to `(. x) => { y => 3 }`.
657
-
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
658
-
These are only breaking changes for unformatted code.
658
+
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
659
+
These are only breaking changes for unformatted code.
659
660
- Exponentiation operator `**` is now right-associative. `2. ** 3. ** 2.` now compile to `Math.pow(2, Math.pow(3, 2))` and not anymore `Math.pow(Math.pow(2, 3), 2)`. Parentheses can be used to change precedence.
660
-
- Remove unsafe ``` j`$(a)$(b)` ``` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
661
+
- Remove unsafe `` j`$(a)$(b)` `` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
661
662
- Remove deprecated module `Printexc`
662
663
-`@deriving(jsConverter)` not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
663
664
- New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
@@ -706,19 +707,21 @@ These are only breaking changes for unformatted code.
706
707
# 10.1.4
707
708
708
709
#### :bug: Bug Fix
710
+
709
711
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
710
712
- Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
711
713
- Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
712
714
- Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
713
715
714
716
#### :rocket: New Feature
717
+
715
718
- Add support for toplevel `await`https://github.com/rescript-lang/rescript-compiler/pull/6054
716
719
717
720
#### :nail_care: Polish
718
721
719
722
- Better error message for extension point https://github.com/rescript-lang/rescript-compiler/pull/6057
720
723
- Improve format check help https://github.com/rescript-lang/rescript-compiler/pull/6056
0 commit comments