-
Notifications
You must be signed in to change notification settings - Fork 960
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
[meta] Ship v2 #172
Comments
These two need to be fixed: https://github.com/rackt/history/blob/master/modules/useQueries.js#L107-L113 And dropping |
Oh, and #163 - if we want to change the default for |
We're also in a bit of an odd spot right now w/r/t the deprecations, because we haven't updated React Router's internals yet to switch to the new APIs (e.g. on Especially if we think we'll ship history v2.x before we ship React Router v1.1.x, then we might want to put out a stopgap release of React Router that doesn't change its APIs, but updates to use the new history APIs. |
We can just delay the deprecations until after we land and release those other issues you've mentioned. |
👍 |
Or unwind them anyway. |
I'd like to get history v2 out the door ASAP just so I can check something off my TODO list. Too many loose ends makes it easy for me to forget something :) I don't actually consider #163 a breaking change. Everything should work as before after that change, including URLs with the hash. Also, I'm not 100% sure what the implementation is going to look like there, so I'm happy to move forward with history v2 without it. Now that #173 is merged, I think we're ready to cut a 1.15 release. v2 after that will just be removing a bunch of deprecated stuff. |
What do you think about shipping a React Router release that uses the new API, minus the Router-side API changes? I definitely want these API cleanups, but I also want our users to be able to use them. As-is, Router users won't be able to use history v2 at all until we ship something semi-updated (mostly just remix-run/react-router#2659) on the Router side. |
Agreed. Let's ship a router 1.1 release that uses history v2. We can put the changes that are specific to remix-run/react-router#2646 in a separate branch to be merged back into master after the 1.1 release. |
I'm in agreement about a v1.15.0 release here. We should use that version in router 1.1, which will remove usage of any deprecated APIs. Then we can go 2.0 on router and history in lockstep, easing the transition path, since they won't have to update things twice. |
ok, so are we ready for a 1.15 release? Looks to me like we are. |
Yep, you can cut that right now. |
With the A little unfortunate to have to move some code out of the way for a bit. I didn't realize we'd get these changes on the history side ready so quickly. That's a very good problem to have though! (: |
Yep. It's mostly minor stuff. I was planning on getting all of that alongside updating things to use |
Yeah, I think we want to move the |
OK. I'll cut a 1.15 history release and we can remove the last remaining bits from the router that use pushState/replaceState. |
I'll dig in here and try to get a PR up by EOD that removes all deprecations for v2. I'm sure I'll miss a few things, but hopefully you guys will be able to catch me :) If either of you would like to take a stab at a PR on the router that makes the changes we discussed above that would be great. |
Also, update createLocation signature and remove it from top-level exports. Closes #172
ok, now that we've shipped 1.16 that should fix everyone's builds and stop the flow of issues in the router. If, at this point, we ship a version 1.17 with the warnings back in, we'll just break everyone's build again. So, I propose that we ship what we currently have on master as history v2. It's full of deprecation warnings, but the recommended API is pretty much exactly what we want it to be and people won't get auto-upgraded to it. In a few weeks, we can ship history v3 that removes all the deprecated code. In the mean time, we can ship bug fixes and features on the 2.x line. |
Agreed. @ryanflorence's logic for doing a major version deprecation schedule on router would apply well here too. I can get a 1.0.3 of router together so people get upgraded without confusion over peerDeps or warnings. Can you publish that? |
@timdorr yep, that'd be great. Thank you :) |
Ready in remix-run/react-router#2702. It'll all be ready in the |
So, we've removed all the relevant deprecation warnings. Are we going to ship 2.0 with them added back in or just not ship a warning version? |
We need a version with both the new API and the deprecations to give users a good upgrade path. From Discord, it sounds like it'd be better to make that 2.0.0 rather than 1.18.0. |
Yes, 2.0 with warnings, then in no less than 3 months, release 3.0 w/o them. |
I'm planning on shipping 2.0 w warnings tonight. If anyone has any last-minute input, please speak up! |
What do you think of shipping this as an RC just in case we missed something? We caught a few things over the last few days in the Router that we missed before cutting the initial RC. It'd be awkward to have to do another major version bump or something just in case we need to change some API we didn't notice. |
Sure. I'll cut 2.0.0-rc1 tonight then. Thanks for the suggestion. On Sat, Jan 2, 2016 at 8:06 PM Jimmy Jia [email protected] wrote:
|
ok, 2.0.0-rc1 is out. Please kick the tires. |
Our dist-tags look a bit weird on npm: jjia@jjia-mbp:~/vendor/react-router (upgrade-history-dep)$ npm dist-tag ls history
latest: 2.0.0-rc1
jjia@jjia-mbp:~/vendor/react-router (upgrade-history-dep)$ npm dist-tag ls react-router
beta: 2.0.0-rc4
latest: 2.0.0-rc4 Probably we should still have respectively 1.17.0 and 1.0.3 on |
Good catch, @taion. Though I think it's a bit weird to use the |
Just an update here: I'd like to use the
|
James was doing the same thing on redux-simple-router too. I'm all for it! |
Sorry for the silence everyone. Been traveling a lot lately. I'll cut 2.0.0-rc3 today. Edit: done! |
Great, thanks! Let me fix #221 real quick. |
Sorry, finger slipped. |
Awesome, thanks @taion. Anything else you'd like to do before we cut version 2? We can always do minor/patch releases for new API and/or bugs afterward. |
Nope, this should be it – just want to get this in because it's a pretty trivial fix. |
Fix is on #222. |
OK, looks like we're good to go ahead and cut v2. |
👍 |
@mjackson Can you fix the npm tags? This doesn't look right:
|
@taion Fixed dist-tags and cut v2.0.0 release today 🎉 Thanks everyone for your help! |
I think the only thing that's left to ship v2 is to remove all the deprecated/weird code and release. Any objections?
/cc @rackt/routing
The text was updated successfully, but these errors were encountered: