Skip to content

Take over changes from 10.1 release into master #5771

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 81 commits into from
Nov 1, 2022

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Nov 1, 2022

This takes over all changes from the 10.1_release branch into master.

I tested the resulting package against our latest project including JSX 4. Looks good.

cknitt and others added 30 commits September 24, 2022 11:18
- `.bs.mjs`, `.bs.cjs` to fill the gap between `.bs.js` and `.mjs`
- `.res.js`, `.res.mjs`, `.res.cjs` to assist BS → ReScript rebranding
* Alllow .res files in stdlib

Files in stdlib use ocamldep to figure out dependencies.
Allow .res files and temporarily convert them to .ml to feed them to ocamldep

* The dependencies in others/ were processed twice in parallel...

* format

* Dedicated bsc option to stop after parsing.

So one can convert to .ml without ovewrtiting ".cm*" files.

* Use a temporary dir to avoid touching the jscomp/others dir.

* Remove the async changes.

No need to protect now that a temporary dir is used for temporary .ml files.
Of course, it would be nice to clean up the build, separately.

* Update scripts/ninja.js

more idiomatic path parse

Co-authored-by: woonki <woonki.moon@gmail.com>

* small clean up refactor

* temp dir

* Clean up ninja as per the review comments.

* Remove example files from stdlib.

* deep clean

* shell and format

Co-authored-by: woonki <woonki.moon@gmail.com>
Introduce safe promises, based on rescript-lang#5707

- Add t-first Js.Promise2 with safe bindings
- Remove type check for nested promises
- Add example illustrating a typical example of nested promises, and how it goes away with Js.Promise2
bobzhang and others added 26 commits October 24, 2022 10:04
…char_exhaustiveness_check

Revert "Fix issue where exhaustiveness check for pattern matching char was no…"
* Prevent inlining of async functions

Fixes rescript-lang#5754

* Update CHANGELOG.md

* Refactor logic to disable inlining of async functions.

* Prevent all async function beta reductions.
`make test-gentype`
* change Pconst_char payload (WIP)

* tweak

* tweak

* representation of char for lambda

* lib

* bugfix: replace wrong pp

* libs

* bugfix: replace wrong print

* use unsafe_chr to handle possible overflow char

* safe print int as char

* reduce duplication

* (re)use encodeCodepoint to support string_of_int_as_char

* some refactor

* libs

* changelog
@cknitt cknitt requested a review from cristianoc November 1, 2022 10:34
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great thanks!

@cristianoc cristianoc merged commit 5da6c88 into rescript-lang:master Nov 1, 2022
@cknitt cknitt deleted the changes-from-10.1 branch January 29, 2023 17:59
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.

8 participants