Skip to content

Cherry pick fixes for 11.1.3 #6913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 26, 2024
Merged

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Jul 26, 2024

Cherry picked fixes for 11.1.3 which I would like to release before 12.0.0-alpha.1.

This includes some of @cristianoc's uncurried cleanup work.

@cristianoc Could you have a look to see if these commits are ok to include (and if there are any additional ones that I should include)?

@cknitt cknitt changed the title Cherry fixes for 11.1.3 Cherry pick fixes for 11.1.3 Jul 26, 2024
@cknitt cknitt requested review from cristianoc and zth July 26, 2024 09:27
@cknitt cknitt marked this pull request as ready for review July 26, 2024 09:28
@zth
Copy link
Collaborator

zth commented Jul 26, 2024

Is this one out of the question? #6907

cknitt and others added 11 commits July 26, 2024 15:29
Turns out that `@uncurry` attribute even in uncurried mode can produce js code that used`Curry`.
The `@uncurry` attribute will be deprecated.
For now, this PR ignores it.
…unctions.

A function such as this one:
```
let t4 = ({contents: x0}, {contents: x1}, {contents: x2}, {contents: x3}) => (x0, x1, x2, x3)
```

is 4 nested functions each one extracting the `contents` field.
In uncurried mode, the arity is adjusted to be 4, by putting a wrapper on top.
The wrapper was added by applying all the new args at once, which requires `Curry` runtime.
* force regenerate build.ninja

* fix bin path

* Update CHANGELOG.md

* force regenerate when `warn-error` argument change

* restore `-regen` argument

* regenerate if previous warn error != 0
# Conflicts:
#	CHANGELOG.md
@cknitt
Copy link
Member Author

cknitt commented Jul 26, 2024

Will not include the JSBigInt payload type change as it breaks third party packages (e.g. rescript-schema 6).

@cknitt cknitt merged commit a4465d4 into rescript-lang:11.0_release Jul 26, 2024
14 checks passed
@cknitt cknitt deleted the version-11.1.3 branch July 26, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants