-
Notifications
You must be signed in to change notification settings - Fork 89
chore(deps): upgrade everything to latest Next and React #1775
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
Conversation
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-edge-middleware ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for nextjs-plugin-custom-routes-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
❌ Deploy Preview for nextjs-plugin-next-11-demo failed.
|
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Something is up with the API route dependency resolution |
62e70b6
to
0e5e578
Compare
1600ce7
to
568145b
Compare
568145b
to
a46fe05
Compare
@@ -5,7 +5,6 @@ ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff | |||
|
|||
[build.environment] | |||
TERM = "xterm" | |||
NODE_VERSION = "17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this safe to remove? I can't remember why we had this set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was for Cypress. It caused breakages with this update, as there are packages with engines
fields that don't like it. It didn't seem to be needed anymore, and the tests still pass.
@@ -5,7 +5,6 @@ ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff | |||
|
|||
[build.environment] | |||
NETLIFY_NEXT_PLUGIN_SKIP = "true" | |||
NODE_VERSION = "17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -1,6 +1,6 @@ | |||
import Chance from 'chance' | |||
import { NextURL } from 'next/dist/server/web/next-url' | |||
import { NextCookies } from 'next/dist/server/web/spec-extension/cookies' | |||
import { RequestCookies } from 'next/dist/server/web/spec-extension/cookies' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to fixe the RespsonseCookies.getAll()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickytonline No, this is related to changes in Next 13, where they switched from a single NextCookies
class into separate RequestCookies
and ResponseCookies
classes
@@ -356,7 +356,7 @@ export const getDependenciesOfFile = async (file: string) => { | |||
return [] | |||
} | |||
const dependencies = await readJson(nft, 'utf8') | |||
return dependencies.files.map((dep) => resolve(file, dep)) | |||
return dependencies.files.map((dep) => resolve(dirname(file), dep)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the tests, i.e. snapshots below, but do we have something in place to test this aside from the snapshot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickytonline I added tests in #1780, which is a more comprehensive fix
Summary
Manually upgrades demo sites and packages to Next 13.0.3 and React 18.2.0. Fixes a unit test broken by this.
Test plan
Check it all builds ok
Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was published correctly.