-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into translate-usedeferred…
…value
- Loading branch information
Showing
72 changed files
with
1,897 additions
and
1,783 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 |
---|---|---|
|
@@ -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 |
---|---|---|
|
@@ -32,12 +32,12 @@ | |
"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": "^0.0.0-experimental-16d053d59-20230506", | ||
"react-collapsed": "npm:@gaearon/[email protected]", | ||
"react-dom": "0.0.0-experimental-cb5084d1c-20220924", | ||
"react-dom": "^0.0.0-experimental-16d053d59-20230506", | ||
"remark-frontmatter": "^4.0.1", | ||
"remark-gfm": "^3.0.1" | ||
}, | ||
|
@@ -98,7 +98,7 @@ | |
"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 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)=>{ |
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
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.