-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
…-fcd00068
- Loading branch information
Showing
181 changed files
with
6,051 additions
and
2,057 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
SANDPACK_BARE_COMPONENTS=true | ||
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,2 +1 @@ | ||
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4' | ||
SANDPACK_BARE_COMPONENTS=true | ||
NEXT_PUBLIC_GA_TRACKING_ID = 'G-B1E83PJ3RT' |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- name: Set up node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
node-version: '20.x' | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/[email protected] | ||
|
@@ -38,7 +38,7 @@ jobs: | |
# Here's the first place where next-bundle-analysis' own script is used | ||
# This step pulls the raw bundle stats for the current bundle | ||
- name: Analyze bundle | ||
run: npx -p nextjs-bundle-analysis report | ||
run: npx -p nextjs-bundle-analysis@0.5.0 report | ||
|
||
- name: Upload bundle | ||
uses: actions/upload-artifact@v2 | ||
|
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 |
---|---|---|
|
@@ -47,26 +47,9 @@ jobs: | |
pr_number=$(cat pr_number/pr_number) | ||
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT | ||
- name: Find Comment | ||
uses: peter-evans/find-comment@v1 | ||
if: success() | ||
id: fc | ||
with: | ||
issue-number: ${{ steps.get-comment-body.outputs.pr-number }} | ||
body-includes: "<!-- __NEXTJS_BUNDLE -->" | ||
|
||
- name: Create Comment | ||
uses: peter-evans/[email protected] | ||
if: success() && steps.fc.outputs.comment-id == 0 | ||
with: | ||
issue-number: ${{ steps.get-comment-body.outputs.pr-number }} | ||
body: ${{ steps.get-comment-body.outputs.body }} | ||
|
||
- name: Update Comment | ||
uses: peter-evans/[email protected] | ||
if: success() && steps.fc.outputs.comment-id != 0 | ||
- name: Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
issue-number: ${{ steps.get-comment-body.outputs.pr-number }} | ||
body: ${{ steps.get-comment-body.outputs.body }} | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
edit-mode: replace | ||
header: next-bundle-analysis | ||
number: ${{ steps.get-comment-body.outputs.pr-number }} | ||
message: ${{ steps.get-comment-body.outputs.body }} |
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 |
---|---|---|
|
@@ -22,22 +22,21 @@ | |
"check-all": "npm-run-all prettier lint:fix tsc" | ||
}, | ||
"dependencies": { | ||
"@codesandbox/sandpack-react": "1.15.5", | ||
"@codesandbox/sandpack-react": "2.6.0", | ||
"@docsearch/css": "3.0.0-alpha.41", | ||
"@docsearch/react": "3.0.0-alpha.41", | ||
"@headlessui/react": "^1.7.0", | ||
"body-scroll-lock": "^3.1.3", | ||
"classnames": "^2.2.6", | ||
"date-fns": "^2.16.1", | ||
"debounce": "^1.2.1", | ||
"ga-lite": "^2.1.4", | ||
"github-slugger": "^1.3.0", | ||
"next": "12.3.2-canary.7", | ||
"next": "^13.4.1", | ||
"next-remote-watch": "^1.0.0", | ||
"parse-numeric-range": "^1.2.0", | ||
"react": "0.0.0-experimental-cb5084d1c-20220924", | ||
"react-collapsed": "npm:@gaearon/[email protected]", | ||
"react-dom": "0.0.0-experimental-cb5084d1c-20220924", | ||
"react": "^0.0.0-experimental-16d053d59-20230506", | ||
"react-collapsed": "4.0.4", | ||
"react-dom": "^0.0.0-experimental-16d053d59-20230506", | ||
"remark-frontmatter": "^4.0.1", | ||
"remark-gfm": "^3.0.1" | ||
}, | ||
|
@@ -92,13 +91,13 @@ | |
"retext": "^7.0.1", | ||
"retext-smartypants": "^4.0.0", | ||
"rss": "^1.2.2", | ||
"tailwindcss": "^3.0.22", | ||
"tailwindcss": "^3.3.2", | ||
"typescript": "^4.0.2", | ||
"unist-util-visit": "^2.0.3", | ||
"webpack-bundle-analyzer": "^4.5.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.x" | ||
"node": "^16.8.0 || ^18.0.0 || ^19.0.0 || ^20.0.0" | ||
}, | ||
"nextBundleAnalysis": { | ||
"budget": null, | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/node_modules/next/dist/server/render.js b/node_modules/next/dist/server/render.js | ||
index a1f8648..1b3d608 100644 | ||
--- a/node_modules/next/dist/server/render.js | ||
+++ b/node_modules/next/dist/server/render.js | ||
@@ -758,9 +758,14 @@ async function renderToHTML(req, res, pathname, query, renderOpts) { | ||
// Always using react concurrent rendering mode with required react version 18.x | ||
const renderShell = async (EnhancedApp, EnhancedComponent)=>{ | ||
const content = renderContent(EnhancedApp, EnhancedComponent); | ||
- return await (0, _nodewebstreamshelper.renderToInitialStream)({ | ||
- ReactDOMServer: _serverbrowser.default, | ||
- element: content | ||
+ return new Promise((resolve, reject) => { | ||
+ (0, _nodewebstreamshelper.renderToInitialStream)({ | ||
+ ReactDOMServer: _serverbrowser.default, | ||
+ element: content, | ||
+ streamOptions: { | ||
+ onError: reject | ||
+ } | ||
+ }).then(resolve, reject); | ||
}); | ||
}; | ||
const createBodyResult = (0, _tracer.getTracer)().wrap(_constants2.RenderSpan.createBodyResult, (initialStream, suffix)=>{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Oops, something went wrong.