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
+17-18Lines changed: 17 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -298,7 +298,7 @@
298
298
299
299
#### :rocket: New Feature
300
300
301
-
- Experimental support of tagged template literals, e.g. ``sql`select * from ${table}``. https://github.com/rescript-lang/rescript-compiler/pull/6250
301
+
- Experimental support of tagged template literals, e.g. ```sql`select * from ${table}```. https://github.com/rescript-lang/rescript-compiler/pull/6250
302
302
- Experimental support for generic/custom JSX transforms. https://github.com/rescript-lang/rescript-compiler/pull/6565
303
303
-`dict` is now a builtin type. https://github.com/rescript-lang/rescript-compiler/pull/6590
304
304
@@ -478,7 +478,7 @@ No changes compared to rc.9.
478
478
479
479
#### :boom: Breaking Change
480
480
481
-
- 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
481
+
- 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
482
482
483
483
#### :bug: Bug Fix
484
484
@@ -533,7 +533,7 @@ No changes compared to rc.9.
533
533
534
534
#### :rocket: New Feature
535
535
536
-
- 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
536
+
- 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
537
537
- Extended untagged variants with function types. https://github.com/rescript-lang/rescript-compiler/pull/6279
538
538
539
539
#### :boom: Breaking Change
@@ -611,14 +611,14 @@ No changes compared to rc.9.
611
611
612
612
#### :bug: Bug Fix
613
613
614
-
- Fix broken formatting in uncurried mode for functions with \_ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
614
+
- Fix broken formatting in uncurried mode for functions with _ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
615
615
- 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
616
616
- 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
617
617
- Disable warning on `@inline` attibute on uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6152
618
618
- Support doc comments on arguments of function types. https://github.com/rescript-lang/rescript-compiler/pull/6161
619
619
- Fix issue with record type coercion and unboxed. https://github.com/rescript-lang/rescript-compiler/issues/6158
620
620
- 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
624
624
@@ -647,6 +647,7 @@ No changes compared to rc.9.
647
647
648
648
- 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
649
649
650
+
650
651
# 11.0.0-alpha.1
651
652
652
653
#### :rocket: Main New Feature
@@ -657,16 +658,16 @@ No changes compared to rc.9.
657
658
#### :rocket: New Feature
658
659
659
660
- 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.
660
-
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.
661
-
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
662
-
The `make` function of components is generated as an uncurried function.
663
-
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.
662
+
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
663
+
The `make` function of components is generated as an uncurried function.
664
+
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
668
669
- Add support for partial application of uncurried functions: with uncurried application one can provide a
669
-
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
670
+
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
670
671
- 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
671
672
- 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
672
673
- Add support for default arguments in uncurried functions https://github.com/rescript-lang/rescript-compiler/pull/5835
@@ -688,12 +689,12 @@ No changes compared to rc.9.
688
689
-`rescript convert <reason files>`
689
690
- 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.
690
691
- Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
691
-
- 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.
692
+
- 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.
692
693
- 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 }`.
693
-
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
694
-
These are only breaking changes for unformatted code.
694
+
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
695
+
These are only breaking changes for unformatted code.
695
696
- 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.
696
-
- Remove unsafe `` j`$(a)$(b)` `` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
697
+
- Remove unsafe ``` j`$(a)$(b)` ``` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
697
698
- Remove deprecated module `Printexc`
698
699
-`@deriving(jsConverter)` not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
699
700
- New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
@@ -742,21 +743,19 @@ No changes compared to rc.9.
742
743
# 10.1.4
743
744
744
745
#### :bug: Bug Fix
745
-
746
746
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
747
747
- Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
748
748
- Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
749
749
- Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
750
750
751
751
#### :rocket: New Feature
752
-
753
752
- Add support for toplevel `await`https://github.com/rescript-lang/rescript-compiler/pull/6054
754
753
755
754
#### :nail_care: Polish
756
755
757
756
- Better error message for extension point https://github.com/rescript-lang/rescript-compiler/pull/6057
758
757
- Improve format check help https://github.com/rescript-lang/rescript-compiler/pull/6056
0 commit comments