Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
863168d4
Unverified
Commit
863168d4
authored
Oct 14, 2024
by
Mo Beigi
Committed by
GitHub
Oct 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync @next/third-parties with React peer versions (#71261)
parent
b6fa6be4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
package.json
packages/third-parties/package.json
+1
-1
sync-react.js
scripts/sync-react.js
+7
-2
No files found.
packages/third-parties/package.json
View file @
863168d4
...
...
@@ -33,6 +33,6 @@
},
"peerDependencies"
:
{
"next"
:
"^13.0.0 || ^14.0.0 || ^15.0.0"
,
"react"
:
"^18.2.0 || 19.0.0-rc-
70fb1363-20241010
"
"react"
:
"^18.2.0 || 19.0.0-rc-
cd22717c-20241013
"
}
}
scripts/sync-react.js
View file @
863168d4
...
...
@@ -21,6 +21,7 @@ const filesReferencingReactPeerDependencyVersion = [
'test/lib/next-modes/base.ts'
,
]
const
appManifestsInstallingNextjsPeerDependencies
=
[
'packages/third-parties/package.json'
,
'examples/reproduction-template/package.json'
,
'test/.stats-app/package.json'
,
// TODO: These should use the usual test helpers that automatically install the right React version
...
...
@@ -344,8 +345,12 @@ Or, run this command with no arguments to use the most recently published versio
const
packageJsonPath
=
path
.
join
(
cwd
,
fileName
)
const
packageJson
=
await
fsp
.
readFile
(
packageJsonPath
,
'utf-8'
)
const
manifest
=
JSON
.
parse
(
packageJson
)
manifest
.
dependencies
[
'react'
]
=
newVersionStr
manifest
.
dependencies
[
'react-dom'
]
=
newVersionStr
if
(
manifest
.
dependencies
[
'react'
])
{
manifest
.
dependencies
[
'react'
]
=
newVersionStr
}
if
(
manifest
.
dependencies
[
'react-dom'
])
{
manifest
.
dependencies
[
'react-dom'
]
=
newVersionStr
}
await
fsp
.
writeFile
(
packageJsonPath
,
JSON
.
stringify
(
manifest
,
null
,
2
)
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment