Skip to content

Commit e8192a0

Browse files
Changelog
1 parent 4fec6f1 commit e8192a0

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

CHANGELOG.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616

1717
- OCaml compatibility in the stdlib and primitives are dropped/deprecated. https://github.com/rescript-lang/rescript-compiler/pull/6984
1818
- Remove the JSX v3. https://github.com/rescript-lang/rescript-compiler/pull/7072
19+
- Remove js_cast.res. https://github.com/rescript-lang/rescript-compiler/pull/7075
1920

2021
#### :rocket: New Feature
2122

2223
- Use FORCE_COLOR environmental variable to force colorized output https://github.com/rescript-lang/rescript-compiler/pull/7033
2324
- Allow spreads of variants in patterns (`| ...someVariant as v => `) when the variant spread is a subtype of the variant matched on. https://github.com/rescript-lang/rescript-compiler/pull/6721
24-
- Fix the issue where dynamic imports are not working for function-defined externals. https://github.com/rescript-lang/rescript-compiler/pull/7060
25+
- Fix the issue where dynamic imports are not working for function-defined externals. https://github.com/rescript-lang/rescript-compiler/pull/7060
2526
- Allow pattern matching on dicts. `switch someDict { | dict{"one": 1} => Js.log("one is one") }` https://github.com/rescript-lang/rescript-compiler/pull/7059
2627

2728
#### :bug: Bug fix
@@ -320,7 +321,7 @@
320321

321322
#### :rocket: New Feature
322323

323-
- Experimental support of tagged template literals, e.g. ```sql`select * from ${table}```. https://github.com/rescript-lang/rescript-compiler/pull/6250
324+
- Experimental support of tagged template literals, e.g. `` sql`select * from ${table} ``. https://github.com/rescript-lang/rescript-compiler/pull/6250
324325
- Experimental support for generic/custom JSX transforms. https://github.com/rescript-lang/rescript-compiler/pull/6565
325326
- `dict` is now a builtin type. https://github.com/rescript-lang/rescript-compiler/pull/6590
326327

@@ -500,7 +501,7 @@ No changes compared to rc.9.
500501

501502
#### :boom: Breaking Change
502503

503-
- 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
504+
- 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
504505

505506
#### :bug: Bug Fix
506507

@@ -555,7 +556,7 @@ No changes compared to rc.9.
555556

556557
#### :rocket: New Feature
557558

558-
- 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
559+
- 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
559560
- Extended untagged variants with function types. https://github.com/rescript-lang/rescript-compiler/pull/6279
560561

561562
#### :boom: Breaking Change
@@ -633,14 +634,14 @@ No changes compared to rc.9.
633634

634635
#### :bug: Bug Fix
635636

636-
- Fix broken formatting in uncurried mode for functions with _ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
637+
- Fix broken formatting in uncurried mode for functions with \_ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
637638
- 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
638639
- 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
639640
- Disable warning on `@inline` attibute on uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6152
640641
- Support doc comments on arguments of function types. https://github.com/rescript-lang/rescript-compiler/pull/6161
641642
- Fix issue with record type coercion and unboxed. https://github.com/rescript-lang/rescript-compiler/issues/6158
642643
- 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.
643-
https://github.com/rescript-lang/rescript-compiler/issues/6158
644+
https://github.com/rescript-lang/rescript-compiler/issues/6158
644645
- Emit directive above header comment. https://github.com/rescript-lang/rescript-compiler/pull/6172
645646
- Add error message to private extension. https://github.com/rescript-lang/rescript-compiler/pull/6175
646647

@@ -669,7 +670,6 @@ No changes compared to rc.9.
669670

670671
- 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
671672

672-
673673
# 11.0.0-alpha.1
674674

675675
#### :rocket: Main New Feature
@@ -680,16 +680,16 @@ No changes compared to rc.9.
680680
#### :rocket: New Feature
681681

682682
- 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.
683-
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.
684-
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
685-
The `make` function of components is generated as an uncurried function.
686-
Use best effort to determine the config when formatting a file.
687-
https://github.com/rescript-lang/rescript-compiler/pull/5968 https://github.com/rescript-lang/rescript-compiler/pull/6080 https://github.com/rescript-lang/rescript-compiler/pull/6086 https://github.com/rescript-lang/rescript-compiler/pull/6087
683+
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.
684+
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
685+
The `make` function of components is generated as an uncurried function.
686+
Use best effort to determine the config when formatting a file.
687+
https://github.com/rescript-lang/rescript-compiler/pull/5968 https://github.com/rescript-lang/rescript-compiler/pull/6080 https://github.com/rescript-lang/rescript-compiler/pull/6086 https://github.com/rescript-lang/rescript-compiler/pull/6087
688688
- 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
689689
- Introduce untagged variants https://github.com/rescript-lang/rescript-compiler/pull/6103
690690
- Add support for unary uncurried pipe in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/5804
691691
- Add support for partial application of uncurried functions: with uncurried application one can provide a
692-
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
692+
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
693693
- Add support for uncurried externals https://github.com/rescript-lang/rescript-compiler/pull/5815 https://github.com/rescript-lang/rescript-compiler/pull/5819 https://github.com/rescript-lang/rescript-compiler/pull/5830 https://github.com/rescript-lang/rescript-compiler/pull/5894
694694
- 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
695695
- Add support for default arguments in uncurried functions https://github.com/rescript-lang/rescript-compiler/pull/5835
@@ -711,12 +711,12 @@ subset of the arguments, and return a curried type with the remaining ones https
711711
- `rescript convert <reason files>`
712712
- 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.
713713
- Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
714-
- 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.
714+
- 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.
715715
- 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 }`.
716-
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
717-
These are only breaking changes for unformatted code.
716+
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
717+
These are only breaking changes for unformatted code.
718718
- 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.
719-
- Remove unsafe ``` j`$(a)$(b)` ``` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
719+
- Remove unsafe `` j`$(a)$(b)` `` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
720720
- Remove deprecated module `Printexc`
721721
- `@deriving(jsConverter)` not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
722722
- New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
@@ -765,19 +765,21 @@ These are only breaking changes for unformatted code.
765765
# 10.1.4
766766

767767
#### :bug: Bug Fix
768+
768769
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
769770
- Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
770771
- Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
771772
- Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
772773

773774
#### :rocket: New Feature
775+
774776
- Add support for toplevel `await` https://github.com/rescript-lang/rescript-compiler/pull/6054
775777

776778
#### :nail_care: Polish
777779

778780
- Better error message for extension point https://github.com/rescript-lang/rescript-compiler/pull/6057
779781
- Improve format check help https://github.com/rescript-lang/rescript-compiler/pull/6056
780-
- Deprecate unsafe ``` j`$(a)$(b)` ``` interpolation: use string templates ``` `${a}${b}` ``` instead https://github.com/rescript-lang/rescript-compiler/pull/6067
782+
- Deprecate unsafe `` j`$(a)$(b)` `` interpolation: use string templates `` `${a}${b}` `` instead https://github.com/rescript-lang/rescript-compiler/pull/6067
781783

782784
# 10.1.3
783785

0 commit comments

Comments
 (0)