rsnext/packages
JJ Kasper 122899bd37
Add hard navigation guard and fix middleware rewrite cases (#37815)
This adds a guard for whenever we do a hard navigation over a client-navigation to ensure we aren't redirecting to the same URL that we are currently on as this can cause infinite redirecting. This also fixes some cases with middleware rewrites without i18n enabled and expands our middleware suite to test both with i18n and without. 

This also fixes a race condition with the query updating where a user could attempt a route transition and it then gets overridden by the query updating and prevents firing router events during the query updating as these can be false signals of a transition.

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

Fixes: https://github.com/vercel/next.js/issues/37804
2022-06-20 11:31:19 +00:00
..
create-next-app v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
eslint-config-next v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
eslint-plugin-next v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next Add hard navigation guard and fix middleware rewrite cases (#37815) 2022-06-20 11:31:19 +00:00
next-bundle-analyzer v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-codemod v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-env v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-mdx v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-plugin-storybook v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-polyfill-module v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-polyfill-nomodule v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
next-swc v12.1.7-canary.41 2022-06-17 10:44:25 -05:00
react-dev-overlay Display full refresh warning even when error has occurred (#37425) 2022-06-19 00:00:14 +00:00
react-refresh-utils v12.1.7-canary.41 2022-06-17 10:44:25 -05:00