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

Fix Router Push / Replace with URL Object #54

Merged
merged 3 commits into from
Nov 14, 2020
Merged

Fix Router Push / Replace with URL Object #54

merged 3 commits into from
Nov 14, 2020

Conversation

laooola
Copy link

@laooola laooola commented Oct 13, 2020

I encountered some issues with Router.push and Router.replace in combination with url objects after updating to [email protected]. Turned out that the internal router api has been changed in 9.5.0 (see vercel/next.js#14827). This PR accounts for these changes.

@danielr18
Copy link
Owner

@laooola Thank you for the PR! I'll try to get it merged within the next 2 days.

@laooola
Copy link
Author

laooola commented Oct 15, 2020

@danielr18 I'd probably do a new major release as this change won't work for next < 9.5.0. Users on next >= 9.5.0 should use the new package version while users on next < 9.5.0 should stick with the previous one. This should also be documented somewhere e.g. in the readme?

@danielr18
Copy link
Owner

@danielr18 I'd probably do a new major release as this change won't work for next < 9.5.0. Users on next >= 9.5.0 should use the new package version while users on next < 9.5.0 should stick with the previous one. This should also be documented somewhere e.g. in the readme?

Right, it'll be documented in the top section of the readme. Similar to how it was done for v3.0.0.

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