Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fab5728e03
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8554 +/- ##
==========================================
+ Coverage 75.54% 75.79% +0.24%
==========================================
Files 476 476
Lines 62710 62680 -30
==========================================
+ Hits 47374 47506 +132
+ Misses 15336 15174 -162
🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-8554 |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60b8ecb78b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
|
Tested successfully against a large project of ours. Fallout (regarding 3rd party deps needing patching) was much less than for the |
* Extract Belt into a separate @rescript/belt package Signed-off-by: Christoph Knittel <ck@cca.io> * Use runtime primitives for collection spreads Signed-off-by: Christoph Knittel <ck@cca.io> * Remove Belt-specific compiler handling Signed-off-by: Christoph Knittel <ck@cca.io> * Move Belt-specific collection tests into a dedicated suite Signed-off-by: Christoph Knittel <ck@cca.io> * Separate Belt tests from the compiler test suite Signed-off-by: Christoph Knittel <ck@cca.io> * Keep Belt available in the playground Signed-off-by: Christoph Knittel <ck@cca.io> * Fix Belt runtime and tooling integration Signed-off-by: Christoph Knittel <ck@cca.io> * Work around stale Belt artifacts in analysis tests Signed-off-by: Christoph Knittel <ck@cca.io> * Fix Belt resolution in Rewatch test repository Signed-off-by: Christoph Knittel <ck@cca.io> * Preserve GenType translation for Belt.Result.t Signed-off-by: Christoph Knittel <ck@cca.io> * Use portals for Rewatch workspace dependencies Signed-off-by: Christoph Knittel <ck@cca.io> * Declare the ReScript runtime as a Belt peer Signed-off-by: Christoph Knittel <ck@cca.io> * Satisfy the Belt runtime peer in Rewatch tests Signed-off-by: Christoph Knittel <ck@cca.io> * Rebuild playground cmijs after Belt changes Signed-off-by: Christoph Knittel <ck@cca.io> --------- Signed-off-by: Christoph Knittel <ck@cca.io> Signed-off-by: Pedro Castro <aspeddro@gmail.com>
Summary
Extract Belt from
@rescript/runtimeinto a separately installed, source-distributed@rescript/beltpackage.Belt.*.concatManyBreaking change
Belt is no longer bundled with the ReScript runtime. Projects that use Belt must install it:
They must also list it in
rescript.json:{ "dependencies": ["@rescript/belt"] }Existing
Belt.*APIs remain available after adding the dependency.Rewatch note
The compiler repository builds the Belt source dependency through test projects with different package output settings. Rewatch can currently reuse stale dependency artifacts when switching between those settings.
This PR explicitly cleans and rebuilds Belt where required as a temporary workaround. The underlying invalidation problem is tracked separately in #8539 and is not fixed by this PR.
Testing
make testmake test-syntaxmake test-gentypemake test-analysisCloses #8050
Related to #8539