Skip to content

Commit 06b2654

Browse files
committed
changelog
1 parent 12b7391 commit 06b2654

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
@@ -406,7 +410,7 @@
406410

407411
#### :rocket: New Feature
408412

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

@@ -586,7 +590,7 @@ No changes compared to rc.9.
586590

587591
#### :boom: Breaking Change
588592

589-
- 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
593+
- 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
590594

591595
#### :bug: Bug Fix
592596

@@ -641,7 +645,7 @@ No changes compared to rc.9.
641645

642646
#### :rocket: New Feature
643647

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

647651
#### :boom: Breaking Change
@@ -719,14 +723,14 @@ No changes compared to rc.9.
719723

720724
#### :bug: Bug Fix
721725

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

@@ -755,7 +759,6 @@ No changes compared to rc.9.
755759

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

758-
759762
# 11.0.0-alpha.1
760763

761764
#### :rocket: Main New Feature
@@ -766,16 +769,16 @@ No changes compared to rc.9.
766769
#### :rocket: New Feature
767770

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

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

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

862867
#### :nail_care: Polish
863868

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

868873
# 10.1.3
869874

@@ -1172,6 +1177,6 @@ These are only breaking changes for unformatted code.
11721177

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

1175-
----
1180+
---
11761181

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

0 commit comments

Comments
 (0)