Repository navigation
Conversation
Replace removed syntax and legacy APIs in manual, React, and syntax lookup examples so they compile with the v13 alpha. Explain the current tagged template, global binding, record, and React component APIs. Regenerate JS and JSX output tabs with the installed compiler to keep the displayed examples consistent and restore content validation.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
guide | ab22189 | Commit Preview URL Branch Preview URL |
Nov 01 2026, 05:02 PM |
Lighthouse baselineCompared with target branch
Download the full Lighthouse reports and baseline Commit |
|
Reanalyze report wrong dead code. Disable for now in 32bb0cc
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| run: yarn test | ||
| - name: Check unused ReScript values and exports | ||
| run: yarn check:dead-code | ||
| # Disable for now. Reanalyze report wrong dead code. |
There was a problem hiding this comment.
This is fine for the v13 branch for now.
| while !shouldStop.contents { | ||
| if Math.random() > 0.3 { | ||
| break := true | ||
| shouldStop := true |
There was a problem hiding this comment.
We can use the new break keyword here now I guess.
| while !shouldStop.contents { | ||
| if Math.random() > 0.3 { | ||
| break := true | ||
| shouldStop := true |
There was a problem hiding this comment.
Can also use the break keyword here
|
I wonder if we even need deriving(accessors) or should we encourage unboxed more? |
|
I added more four commits:
I’ll leave it at these for now. I’ll move on to other changes in a future PR. |
Context
The compiler upgrade exposed outdated MDX examples and stale JavaScript output tabs, causing
yarn testto fail. This updates the manual, React documentation, and syntax lookup for ReScript 13.0.0-alpha.6.Changes
%externalwith optionalglobalThisbindings,@taggedTemplatewith the built-intaggedTemplatetype, and%rewith regular expression literals.TaggedTemplate.makefor ReScript tag functions, modern standard-library APIs instead of Belt and removed helpers, and a valid loop-control variable instead of the reservedbreakidentifier.@deriving(abstract)example with supported records and accessors, updating the accompanying explanations and links..mjsruntime imports and updated template-literal output.Validation
CI=1 yarn test: 190 pages checked with zero compilation errors, stale outputs, or malformed blocks.git diff --cached --checkpasses.