-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[added] Peer dependency on history package #2258
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
Conversation
@mjackson some tests are failing |
ya, i'll look into it @knowbody. Maybe history 1.12.5 broke something... |
Just need to also add it to Should change README from
to
ETA: Plus maybe add a line or two of copy explaining why the |
I think the |
oh, cool! what was the fix in the end @mjackson? I thought that was something to do with how npm deals with it |
Yeah it's a weird NPM quirk. Despite |
121ff94
to
3cc7d6d
Compare
Bah, still failing. I'll have to look into it later. |
Ah, it's because of this. |
👍 I think this should clarify things a lot. Maybe I'd write the copy as something like
|
@mjackson That commit should fix it. We should probably add a |
Thanks, @timdorr! :D
I don't understand that part. Travis already does an |
[added] Peer dependency on history package
@taion would be great if you add this line to the docs :) (maybe just add the line that there is no need for it if someone is using hash history) |
Shouldn't the peer dep track the minor version of [1] https://github.com/rackt/react-router/blob/master/modules/useRoutes.js#L2 |
It shouldn't necessarily track what's in |
FWIW, tested this locally and plays out in practice: with [email protected] and react-router@master (built with
with [email protected] and react-router@master (built with I can provide the full source of react-app-handler if it's useful, but those lines in the stack are just taken straight from the server rendering docs (but promisified): const matchAsPromised = Promise.promisify(match);
....
let location = req.url;
return matchAsPromised({routes, location})
.spread((redirectLocation, renderProps) => {
.... |
Ya, we should prob include minor version as well for new features that we Thanks for bringing it up
|
* Set `history` peer dep to minor version needed by react-router core See also: remix-run#2258 (comment)
magic words 🐰 #2268 |
Since we don't plan on making any breaking changes in the history package without a major version bump, we should be able to just have a peer dep on history
~1
. Please review and merge if it looks good to you, @taion.Fixes #2211
Fixes #2252