Skip to content

Commit 75a616e

Browse files
committed
Update changelog
1 parent de469bf commit 75a616e

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

CHANGELOG.md

+22-17
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
# 12.0.0-alpha.2 (Unreleased)
1414

15+
#### :rocket: New Feature
16+
17+
- Updated `==` to improve performance and start supporting comparison of `Error` instances. Also, it stopped raising error on comparison of two different functions. https://github.com/rescript-lang/rescript-compiler/pull/6937
18+
1519
#### :nail_care: Polish
1620

1721
- Improve formatting in the generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6932
@@ -245,7 +249,7 @@
245249

246250
#### :rocket: New Feature
247251

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

@@ -425,7 +429,7 @@ No changes compared to rc.9.
425429

426430
#### :boom: Breaking Change
427431

428-
- 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
432+
- 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
429433

430434
#### :bug: Bug Fix
431435

@@ -480,7 +484,7 @@ No changes compared to rc.9.
480484

481485
#### :rocket: New Feature
482486

483-
- 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
487+
- 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
484488
- Extended untagged variants with function types. https://github.com/rescript-lang/rescript-compiler/pull/6279
485489

486490
#### :boom: Breaking Change
@@ -558,14 +562,14 @@ No changes compared to rc.9.
558562

559563
#### :bug: Bug Fix
560564

561-
- Fix broken formatting in uncurried mode for functions with _ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
565+
- Fix broken formatting in uncurried mode for functions with \_ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
562566
- 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
563567
- 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
564568
- Disable warning on `@inline` attibute on uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6152
565569
- Support doc comments on arguments of function types. https://github.com/rescript-lang/rescript-compiler/pull/6161
566570
- Fix issue with record type coercion and unboxed. https://github.com/rescript-lang/rescript-compiler/issues/6158
567571
- 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.
568-
https://github.com/rescript-lang/rescript-compiler/issues/6158
572+
https://github.com/rescript-lang/rescript-compiler/issues/6158
569573
- Emit directive above header comment. https://github.com/rescript-lang/rescript-compiler/pull/6172
570574
- Add error message to private extension. https://github.com/rescript-lang/rescript-compiler/pull/6175
571575

@@ -594,7 +598,6 @@ No changes compared to rc.9.
594598

595599
- 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
596600

597-
598601
# 11.0.0-alpha.1
599602

600603
#### :rocket: Main New Feature
@@ -605,16 +608,16 @@ No changes compared to rc.9.
605608
#### :rocket: New Feature
606609

607610
- 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.
608-
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.
609-
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
610-
The `make` function of components is generated as an uncurried function.
611-
Use best effort to determine the config when formatting a file.
612-
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
611+
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.
612+
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
613+
The `make` function of components is generated as an uncurried function.
614+
Use best effort to determine the config when formatting a file.
615+
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
613616
- 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
614617
- Introduce untagged variants https://github.com/rescript-lang/rescript-compiler/pull/6103
615618
- Add support for unary uncurried pipe in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/5804
616619
- Add support for partial application of uncurried functions: with uncurried application one can provide a
617-
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
620+
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
618621
- 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
619622
- 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
620623
- Add support for default arguments in uncurried functions https://github.com/rescript-lang/rescript-compiler/pull/5835
@@ -636,12 +639,12 @@ subset of the arguments, and return a curried type with the remaining ones https
636639
- `rescript convert <reason files>`
637640
- 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.
638641
- Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
639-
- 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.
642+
- 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.
640643
- 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 }`.
641-
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
642-
These are only breaking changes for unformatted code.
644+
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
645+
These are only breaking changes for unformatted code.
643646
- 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.
644-
- Remove unsafe ``` j`$(a)$(b)` ``` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
647+
- Remove unsafe `` j`$(a)$(b)` `` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
645648
- Remove deprecated module `Printexc`
646649
- `@deriving(jsConverter)` not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
647650
- New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
@@ -690,19 +693,21 @@ These are only breaking changes for unformatted code.
690693
# 10.1.4
691694

692695
#### :bug: Bug Fix
696+
693697
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
694698
- Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
695699
- Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
696700
- Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
697701

698702
#### :rocket: New Feature
703+
699704
- Add support for toplevel `await` https://github.com/rescript-lang/rescript-compiler/pull/6054
700705

701706
#### :nail_care: Polish
702707

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

707712
# 10.1.3
708713

0 commit comments

Comments
 (0)