Skip to content

Use a single vendored @rescript/react package across the repo#7525

Merged
cknitt merged 3 commits intorescript-lang:masterfrom
cknitt:packages-react
Apr 28, 2026
Merged

Use a single vendored @rescript/react package across the repo#7525
cknitt merged 3 commits intorescript-lang:masterfrom
cknitt:packages-react

Conversation

@cknitt
Copy link
Copy Markdown
Member

@cknitt cknitt commented May 26, 2025

Add latest @rescript/react to tests/dependencies/rescript-react and the yarn workspace and use it in tests, analysis tests, tools_tests, gentype_tests.

  • Reduces the number of copies of @rescript/react in the repo
  • Allows us to more easily evolve @rescript/react, e.g., move DOM props from runtime into @rescript/react in the future

This is not meant to replace the separate repo https://github.com/rescript-lang/rescript-react though, we'd still do @rescript/react releases from there to be able to release versions independently from compiler versions.

There was already a copy in tests/dependencies, too, but I think the location under packages is more prominent.

@cknitt cknitt changed the title Add latest @rescript/react to packages Update @rescript/react dependency in workspace and use it for more tests May 27, 2025
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 27, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@7525

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@7525

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@7525

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@7525

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@7525

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@7525

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@7525

commit: d54305a

@cknitt
Copy link
Copy Markdown
Member Author

cknitt commented May 27, 2025

@zth Do you have any idea what may be causing the changes in the analysis test output?

@cknitt cknitt force-pushed the packages-react branch 3 times, most recently from 830b759 to ab2bca5 Compare June 19, 2025 19:32
@cknitt cknitt force-pushed the packages-react branch 2 times, most recently from 355099a to c710b5f Compare July 17, 2025 15:34
@cknitt cknitt force-pushed the packages-react branch 2 times, most recently from c928dc0 to 955c01a Compare August 30, 2025 11:04
@cknitt cknitt force-pushed the packages-react branch 3 times, most recently from c57fe8b to 37478e5 Compare November 30, 2025 17:08
@cknitt cknitt changed the title Update @rescript/react dependency in workspace and use it for more tests Use a single vendored @rescript/react package across the repo Apr 28, 2026
@cknitt cknitt marked this pull request as ready for review April 28, 2026 14:16
@cknitt
Copy link
Copy Markdown
Member Author

cknitt commented Apr 28, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3bbc3a70a0

ℹ️ 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".

Comment thread tests/dependencies/rescript-react/src/React.res
Comment thread tests/dependencies/rescript-react/src/ReactDOM.res
Comment thread tests/dependencies/rescript-react/src/ReactDOMServer.res
Comment thread analysis/examples/larger-project/package.json Outdated
@cknitt cknitt merged commit b304b9a into rescript-lang:master Apr 28, 2026
25 checks passed
@cknitt cknitt deleted the packages-react branch April 28, 2026 17:34
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.

3 participants