Skip to content

Commit 8569ffe

Browse files
zthcknitt
authored andcommitted
changelog
1 parent cc6fbae commit 8569ffe

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

CHANGELOG.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
# 12.0.0-alpha.7 (Unreleased)
1414

15+
#### :bug: Bug fix
16+
17+
- Editor: Fix issue where completions would stop working in some scenarios with inline records. https://github.com/rescript-lang/rescript/pull/7227
18+
1519
#### :house: Internal
1620

1721
- AST cleanup: use inline record for Pexp_fun. https://github.com/rescript-lang/rescript/pull/7213
@@ -407,7 +411,7 @@
407411

408412
#### :rocket: New Feature
409413

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

@@ -587,7 +591,7 @@ No changes compared to rc.9.
587591

588592
#### :boom: Breaking Change
589593

590-
- 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
594+
- 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
591595

592596
#### :bug: Bug Fix
593597

@@ -642,7 +646,7 @@ No changes compared to rc.9.
642646

643647
#### :rocket: New Feature
644648

645-
- 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
649+
- 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
646650
- Extended untagged variants with function types. https://github.com/rescript-lang/rescript-compiler/pull/6279
647651

648652
#### :boom: Breaking Change
@@ -720,14 +724,14 @@ No changes compared to rc.9.
720724

721725
#### :bug: Bug Fix
722726

723-
- Fix broken formatting in uncurried mode for functions with _ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
727+
- Fix broken formatting in uncurried mode for functions with \_ placeholder args. https://github.com/rescript-lang/rescript-compiler/pull/6148
724728
- 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
725729
- 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
726730
- Disable warning on `@inline` attibute on uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6152
727731
- Support doc comments on arguments of function types. https://github.com/rescript-lang/rescript-compiler/pull/6161
728732
- Fix issue with record type coercion and unboxed. https://github.com/rescript-lang/rescript-compiler/issues/6158
729733
- 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.
730-
https://github.com/rescript-lang/rescript-compiler/issues/6158
734+
https://github.com/rescript-lang/rescript-compiler/issues/6158
731735
- Emit directive above header comment. https://github.com/rescript-lang/rescript-compiler/pull/6172
732736
- Add error message to private extension. https://github.com/rescript-lang/rescript-compiler/pull/6175
733737

@@ -756,7 +760,6 @@ No changes compared to rc.9.
756760

757761
- 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
758762

759-
760763
# 11.0.0-alpha.1
761764

762765
#### :rocket: Main New Feature
@@ -767,16 +770,16 @@ No changes compared to rc.9.
767770
#### :rocket: New Feature
768771

769772
- 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.
770-
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.
771-
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
772-
The `make` function of components is generated as an uncurried function.
773-
Use best effort to determine the config when formatting a file.
774-
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
773+
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.
774+
Make uncurried functions a subtype of curried functions, and allow application for uncurried functions.
775+
The `make` function of components is generated as an uncurried function.
776+
Use best effort to determine the config when formatting a file.
777+
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
775778
- 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
776779
- Introduce untagged variants https://github.com/rescript-lang/rescript-compiler/pull/6103
777780
- Add support for unary uncurried pipe in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/5804
778781
- Add support for partial application of uncurried functions: with uncurried application one can provide a
779-
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
782+
subset of the arguments, and return a curried type with the remaining ones https://github.com/rescript-lang/rescript-compiler/pull/5805
780783
- 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
781784
- 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
782785
- Add support for default arguments in uncurried functions https://github.com/rescript-lang/rescript-compiler/pull/5835
@@ -798,12 +801,12 @@ subset of the arguments, and return a curried type with the remaining ones https
798801
- `rescript convert <reason files>`
799802
- 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.
800803
- Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
801-
- 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.
804+
- 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.
802805
- 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 }`.
803-
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
804-
These are only breaking changes for unformatted code.
806+
Also, `(. int) => string => bool` is not equivalen to `(. int, string) => bool` anymore.
807+
These are only breaking changes for unformatted code.
805808
- 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.
806-
- Remove unsafe ``` j`$(a)$(b)` ``` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
809+
- Remove unsafe `` j`$(a)$(b)` `` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
807810
- Remove deprecated module `Printexc`
808811
- `@deriving(jsConverter)` not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
809812
- New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
@@ -852,19 +855,21 @@ These are only breaking changes for unformatted code.
852855
# 10.1.4
853856

854857
#### :bug: Bug Fix
858+
855859
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
856860
- Fix issue if the `lib` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
857861
- Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
858862
- Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
859863

860864
#### :rocket: New Feature
865+
861866
- Add support for toplevel `await` https://github.com/rescript-lang/rescript-compiler/pull/6054
862867

863868
#### :nail_care: Polish
864869

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

869874
# 10.1.3
870875

@@ -1173,6 +1178,6 @@ These are only breaking changes for unformatted code.
11731178

11741179
- Removed Reason syntax support for the playground experience. See https://github.com/rescript-lang/rescript-compiler/pull/5375
11751180

1176-
----
1181+
---
11771182

11781183
You can find more old changelog from [docs/changelog](docs/changelog)

0 commit comments

Comments
 (0)