This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): remove unnecessary nextjs versions
- no longer use next 9 - 11 as dev dependencies - this was an attempt to get better typing on the router - it was removed because it caused added security flagging for code we never used and we casted to the any type anyway as it would be a lot of overhead to make sure that the type of the router matched the type of the router context
- Loading branch information
1 parent
1217c51
commit 9b5d7f2
Showing
5 changed files
with
207 additions
and
3,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
// this file will be aliased by webpack at runtime (this is just for typing) | ||
|
||
import { RouterContext as RouterContextV12 } from 'next/dist/shared/lib/router-context' | ||
import { RouterContext as RouterContextV11 } from 'nextv11/dist/next-server/lib/router-context' | ||
import { RouterContext as RouterContextV10 } from 'nextv10/dist/next-server/lib/router-context' | ||
import { RouterContext as RouterContextV9 } from 'next-server/dist/lib/router-context' | ||
|
||
export const RouterContext: | ||
| typeof RouterContextV12 | ||
| typeof RouterContextV11 | ||
| typeof RouterContextV10 | ||
| typeof RouterContextV9 = RouterContextV12 | ||
export { RouterContext } from 'next/dist/shared/lib/router-context' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.