Repository navigation
Conversation
Support the alpha compiler with compatible React and WebAPI bindings across the docs, guide, playground, and shared workspaces. Replace removed APIs and implicit globals so compilation and browser workflows keep working with the new type definitions. Refresh temporary React bindings in the example checker after dependency upgrades to prevent stale cached packages from masking content errors.
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.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Dependency
Depends on #1470, which upgrades the compiler and application bindings. This branch currently includes that migration commit in addition to the documentation commit. Rebase onto
v13after #1470 lands if needed to leave only the documentation diff.