Skip to content

Conversation

@redabacha
Copy link
Contributor

the prerelease version of react-router has a dependency on itself in the package.json which breaks some analysis tools (and also deno apparently 🙈). this pr removes that self-dependency and updates the imports used across the package to point to the same places as before.

@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2024

🦋 Changeset detected

Latest commit: 7a5ed6e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@react-router/dev Patch
react-router Patch
@react-router/fs-routes Patch
@react-router/remix-config-routes-adapter Patch
@react-router/architect Patch
@react-router/cloudflare Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Oct 15, 2024

Hi @redabacha,

Welcome, and thank you for contributing to React Router!

Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once.

You may review the CLA and sign it by adding your name to contributors.yml.

Once the CLA is signed, the CLA Signed label will be added to the pull request.

If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at hello@remix.run.

Thanks!

- The Remix team

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Oct 15, 2024

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

@MichaelDeBoey MichaelDeBoey changed the title Remove self-dependency on react-router fix(react-router): remove self-dependency Oct 15, 2024
@MichaelDeBoey MichaelDeBoey changed the title fix(react-router): remove self-dependency fix(react-router): remove cyclic dependency Oct 15, 2024
@redabacha redabacha marked this pull request as draft October 21, 2024 19:07
@redabacha redabacha marked this pull request as ready for review October 21, 2024 20:26
Comment on lines +21 to +23
"paths": {
"react-router": ["./index.ts"]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is to make the rollup typescript plugin happy

Comment on lines +72 to +74
paths: {
"react-router": "./index.mjs",
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we rewrite the imports of react-router in the dom-export build to the most appropriate react-router entrypoint.

@redabacha redabacha marked this pull request as draft October 21, 2024 20:31
@redabacha redabacha marked this pull request as ready for review October 21, 2024 20:56
// Pre-bundle router dependencies to avoid router duplicates.
// Mismatching routers cause `Error: You must render this element inside a <Remix> element`.
"react-router",
"react-router/dom",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this should've been here already 🤷‍♂️

@redabacha
Copy link
Contributor Author

closed in favor of #12136

@redabacha redabacha closed this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants