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

Release 5.0.1 #6739

Closed
StringEpsilon opened this issue May 11, 2019 · 16 comments
Closed

Release 5.0.1 #6739

StringEpsilon opened this issue May 11, 2019 · 16 comments

Comments

@StringEpsilon
Copy link
Contributor

StringEpsilon commented May 11, 2019

Can we release 5.0.1 soon-ish?

I ask because the license issue of react-react-context is blocking the upgrade for me.

But also because bug reports have slowed down a lot lately. This is probably as stable as it gets until new features get introduced.

The changelog so far would be:

Bugfixes:

  • Fixed display name for router context consumer and provider (6a99c93)
  • Fixed infinite loop caused by Redirect in some scenarios (017f692 and 2ce1d32)
  • Fixed license issue for react context polyfill (f9849c8, then 992af48)
  • Fixed Redirect throwing an exception in StaticRouter without context (3ccbd19)
  • Fixed regression in matchPath that caused an exception for empty paths (7bd1407)
  • Fixed page reload when an exception was thrown in Link onClick (82ce94c)
  • Fixed warning about createRef or useRef values in wrappedComponentRef when using withRouter() (56c829b)
  • Fixed withRouter() wrapped component inside NavLink not working properly (a38ef04)
  • Fixed CJS build - previously, incorrect exports were emitted (caa9950)

Changes:

  • Reduced component depth in withRouter() HOC. (10d78bb)
  • Changed misleading warning when withRouter is used outside a Router (10d78bb)
  • Reduced install size and bundle size by switching to mini-create-react-context (992af48)

P.S.: Sorry for not using the issue template.

@StringEpsilon
Copy link
Contributor Author

StringEpsilon commented May 15, 2019

The following PRs could probably get merged too. I don't see any open review comments on them. The first isn't likely to break things and the latter is just a doc update.

All other PRs I checked are either new features or have unresolved comments.

@timdorr
Copy link
Member

timdorr commented May 15, 2019

@mjackson Is the release script all good? If so, I can make sure it happens.

@timdorr
Copy link
Member

timdorr commented May 15, 2019

BTW, docs fixes don't depend on a release. They go out as soon as they're merged into the website branch.

@wldcordeiro
Copy link

The fixes here would be so nice. That one with the Redirect is completely blocking me from being able to update because of the loop. 😦

@wldcordeiro
Copy link

Sorry for additional noise, this really would be extremely beneficial to get the patches out. We bit the bullet and made the jump to 5.0 for the redirect bug to bite us only after bumping in a couple layers of dependencies and now we're in a bind waiting for either the patches or to do another set of version changes to revert across the dependency chain.

@StringEpsilon
Copy link
Contributor Author

StringEpsilon commented May 28, 2019

We also had only 19 issues. 17 of them closed as support requests, duplicates and so on. The remaining two are 1 discussion / feature request and 1 that's probably an upstream bug to history.

And with the pending overhaul of the roadmap announced in Ryans blogpost, there isn't much in terms of feature development going on (here) either. The only big development was the overhaul of the <Link to={function}> PR by smashercosmo.

@mjackson @timdorr Is there any block we can do something about / help with?

@timdorr
Copy link
Member

timdorr commented May 29, 2019

I just need confirmation the automated release scripts will work. I don't want to screw up and cause a false alarm 😬

@creekdrops
Copy link

Ditto on the <Redirect /> bug. I spent way to much time trying to figure out what I was doing wrong, only to learn that it was a reported bug. :(

@wldcordeiro
Copy link

@timdorr I'm assuming you're deferring to @mjackson or @ryanflorence

@timdorr
Copy link
Member

timdorr commented Jun 3, 2019

Yep, I need to know from either of them.

@mjackson
Copy link
Member

mjackson commented Jun 4, 2019

Yes, I believe the release script is solid. I used it to release 5.0. I'll cut the release now just in case there's a problem, but it should be good to go.

@mjackson
Copy link
Member

mjackson commented Jun 4, 2019

Looks like the react-router-native tests are broken on master?

Edit: Nevermind, I forgot to build.

@mjackson
Copy link
Member

mjackson commented Jun 4, 2019

OK, this should be good to go in 0c9a10d

Will release as 5.0.1 as soon as https://travis-ci.org/ReactTraining/react-router/builds/541475597 finishes

For the record @timdorr , the process I used was this:

  • lerna version --exact --no-push patch
  • manually inspect the commit to make sure everything is good
  • git push origin master --tags

That's all any of us should have to do now that the release process is fully automated.

@mjackson
Copy link
Member

mjackson commented Jun 4, 2019

All done! I'll update the release notes.

@mjackson mjackson closed this as completed Jun 4, 2019
@timdorr
Copy link
Member

timdorr commented Jun 4, 2019

Cool, thanks for confirming!

@travisdahl
Copy link

Not sure if anyone else has seen this issue with 5.0.1 but for me, the dependency mini-create-react-context wasn't being installed. I tried deleting packages and reinstalling etc. Strange though because i see the dependency in the router project here...
https://github.com/ReactTraining/react-router/blob/master/packages/react-router/package.json#L46

and i saw that project get added to my yarn lock BUT it didnt show up in the node modules for some strange reason. When i ran my tests I was seeing...
Cannot find module 'mini-create-react-context' from 'react-router.js'

installed 'mini-create-react-context' manually and everything worked, but i dont think i should need to do that right?

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants