-
Notifications
You must be signed in to change notification settings - Fork 387
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-useeffect
- Loading branch information
Showing
46 changed files
with
493 additions
and
390 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] | ||
|
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 |
---|---|---|
|
@@ -11,14 +11,14 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
|
||
name: Lint on node 12.x and ubuntu-latest | ||
name: Lint on node 20.x and ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 12.x | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
node-version: 20.x | ||
|
||
- name: Install deps and build (with cache) | ||
uses: bahmutov/[email protected] | ||
|
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
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.