Skip to content

Commit 8a5deab

Browse files
committed
changelog
1 parent 5b68db0 commit 8a5deab

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

CHANGELOG.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
- Improve bigint literal comparison. https://github.com/rescript-lang/rescript-compiler/pull/7029
2222

23+
#### :rocket: New Feature
24+
25+
- 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
26+
2327
# 12.0.0-alpha.3
2428

2529
#### :bug: Bug fix
@@ -294,7 +298,7 @@
294298

295299
#### :rocket: New Feature
296300

297-
- 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
298302
- Experimental support for generic/custom JSX transforms. https://github.com/rescript-lang/rescript-compiler/pull/6565
299303
- `dict` is now a builtin type. https://github.com/rescript-lang/rescript-compiler/pull/6590
300304

@@ -474,7 +478,7 @@ No changes compared to rc.9.
474478

475479
#### :boom: Breaking Change
476480

477-
- 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
478482

479483
#### :bug: Bug Fix
480484

@@ -529,7 +533,7 @@ No changes compared to rc.9.
529533

530534
#### :rocket: New Feature
531535

532-
- 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
533537
- Extended untagged variants with function types. https://github.com/rescript-lang/rescript-compiler/pull/6279
534538

535539
#### :boom: Breaking Change
@@ -607,14 +611,14 @@ No changes compared to rc.9.
607611

608612
#### :bug: Bug Fix
609613

610-
- 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
611615
- 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
612616
- 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
613617
- Disable warning on `@inline` attibute on uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6152
614618
- Support doc comments on arguments of function types. https://github.com/rescript-lang/rescript-compiler/pull/6161
615619
- Fix issue with record type coercion and unboxed. https://github.com/rescript-lang/rescript-compiler/issues/6158
616620
- 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.
617-
https://github.com/rescript-lang/rescript-compiler/issues/6158
621+
https://github.com/rescript-lang/rescript-compiler/issues/6158
618622
- Emit directive above header comment. https://github.com/rescript-lang/rescript-compiler/pull/6172
619623
- Add error message to private extension. https://github.com/rescript-lang/rescript-compiler/pull/6175
620624

@@ -643,7 +647,6 @@ No changes compared to rc.9.
643647

644648
- 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
645649

646-
647650
# 11.0.0-alpha.1
648651

649652
#### :rocket: Main New Feature
@@ -654,16 +657,16 @@ No changes compared to rc.9.
654657
#### :rocket: New Feature
655658

656659
- 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.
657-
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.
658-
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
659-
The `make` function of components is generated as an uncurried function.
660-
Use best effort to determine the config when formatting a file.
661-
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
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.
664+
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
662665
- 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
663666
- Introduce untagged variants https://github.com/rescript-lang/rescript-compiler/pull/6103
664667
- Add support for unary uncurried pipe in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/5804
665668
- Add support for partial application of uncurried functions: with uncurried application one can provide a
666-
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
669+
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
667670
- 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
668671
- 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
669672
- Add support for default arguments in uncurried functions https://github.com/rescript-lang/rescript-compiler/pull/5835
@@ -685,12 +688,12 @@ subset of the arguments, and return a curried type with the remaining ones https
685688
- `rescript convert <reason files>`
686689
- 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.
687690
- Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
688-
- 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.
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.
689692
- 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 }`.
690-
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
691-
These are only breaking changes for unformatted code.
693+
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
694+
These are only breaking changes for unformatted code.
692695
- 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.
693-
- Remove unsafe ``` j`$(a)$(b)` ``` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
696+
- Remove unsafe `` j`$(a)$(b)` `` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
694697
- Remove deprecated module `Printexc`
695698
- `@deriving(jsConverter)` not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
696699
- New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
@@ -739,19 +742,21 @@ These are only breaking changes for unformatted code.
739742
# 10.1.4
740743

741744
#### :bug: Bug Fix
745+
742746
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
743747
- Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
744748
- Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
745749
- Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
746750

747751
#### :rocket: New Feature
752+
748753
- Add support for toplevel `await` https://github.com/rescript-lang/rescript-compiler/pull/6054
749754

750755
#### :nail_care: Polish
751756

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

756761
# 10.1.3
757762

0 commit comments

Comments
 (0)