Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move @uirouter/angularjs and @uirouter/react to peerDependencies #5

Closed
wants to merge 2 commits into from

Conversation

alexgerv
Copy link

Since @uirouter/core is stateful, having a different version of @uirouter/angularjs or
@uirouter/react in the user project would cause some very hard to debug issues. Moving them to peer dependencies instead forces the versions to be the same. Also, the interfaces to the core API are now safely available in the user project.

Fixes #4.

Alex Gervais added 2 commits October 28, 2017 22:02
…er dependencies

Since @uirouter/core is stateful, having a different version of @uirouter/angularjs or
@uirouter/react in the user project would cause some very hard to debug issues. Moving them to peer
dependencies instead forces the versions to be the same. Also, the interfaces to the core API are
now safely available in the user project. Fixes ui-router#4.
@christopherthielen
Copy link
Member

@alexgerv thanks for the PR! I'm happy other people are getting use out of this project.

The way the hybrid project is supposed to work is that you replace @uirouter/angularjs with @uirouter/react-hybrid (and do not reference @uirouter/core at all). This project should be locked to a specific version of @uirouter/angularjs and @uirouter/react and those two versions must be locked to the same version of @uirouter/core.

I'm not keen to move these to peer dependencies because I don't want users to have to explicitly depend on specific versions of multiple packages.

Because of this, I'm probably going to close this PR. However, I'd like to understand how the dependencies currently in @uirouter/react-hybrid are causing you problems.

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.

2 participants