diff --git a/.github/actions/next-stats-action/src/run/index.js b/.github/actions/next-stats-action/src/run/index.js
index 09e5b3761a17d..5e332d4c9f6b2 100644
--- a/.github/actions/next-stats-action/src/run/index.js
+++ b/.github/actions/next-stats-action/src/run/index.js
@@ -253,9 +253,13 @@ async function linkPkgs(pkgDir = '', pkgPaths) {
await fs.writeFile(pkgJsonPath, JSON.stringify(pkgData, null, 2), 'utf8')
await fs.remove(yarnEnvValues.YARN_CACHE_FOLDER)
- await exec(`cd ${pkgDir} && pnpm install`, false, {
- env: yarnEnvValues,
- })
+ await exec(
+ `cd ${pkgDir} && pnpm install --strict-peer-dependencies=false`,
+ false,
+ {
+ env: yarnEnvValues,
+ }
+ )
}
module.exports = runConfigs
diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml
index fe28799b023e8..b50ad040edc54 100644
--- a/.github/workflows/build_test_deploy.yml
+++ b/.github/workflows/build_test_deploy.yml
@@ -9,7 +9,7 @@ name: Build, test, and deploy
env:
NAPI_CLI_VERSION: 2.7.0
TURBO_VERSION: 1.3.2-canary.1
- RUST_TOOLCHAIN: nightly-2022-06-12
+ RUST_TOOLCHAIN: nightly-2022-09-14
PNPM_VERSION: 7.2.1
jobs:
@@ -1008,7 +1008,7 @@ jobs:
- run: npm i -g pnpm@${PNPM_VERSION}
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: ./scripts/publish-native.js $GITHUB_REF
- - run: ./scripts/publish-release.sh
+ - run: ./scripts/publish-release.js
testDeployE2E:
name: E2E (deploy)
diff --git a/docs/advanced-features/error-handling.md b/docs/advanced-features/error-handling.md
index a164c58e48392..f4b8d258e5f07 100644
--- a/docs/advanced-features/error-handling.md
+++ b/docs/advanced-features/error-handling.md
@@ -88,7 +88,7 @@ import ErrorBoundary from '../components/ErrorBoundary'
function MyApp({ Component, pageProps }) {
return (
// Wrap the Component prop with ErrorBoundary component
-
+
This is the about page.
-HOME PAGE is here!
-Do work in a WebWorker!
-dynamic with scoped compound variable
- <_JSXStyle id={"1f1fbf7e754ca7cb"} dynamic={[ + <_JSXStyle id={"62256c563b89bfae"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} @@ -173,7 +173,7 @@ export const Test9 = ({ color })=>{ }; returndynamic with compound variable
- <_JSXStyle id={"460abeb3d95fb60d"} dynamic={[ + <_JSXStyle id={"708723e452f192e4"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} @@ -210,14 +210,14 @@ export const Test11 = ({ color })=>{ length: 5 }).map((item, i)=>test
+test
- <_JSXStyle id={"551210e97e875d0e"}>{`p.jsx-551210e97e875d0e{color:${color}}`} + <_JSXStyle id={"8522d6f4b7f930d2"}>{`p.jsx-8522d6f4b7f930d2{color:${color}}`}test
- <_JSXStyle id={"95409d3438a768bd"}>{`p.${color}.jsx-78f0c8c617eb8e50{color:${otherColor};display:${obj.display}}`} + <_JSXStyle id={"cb56eab0db38d266"}>{`p.${color}.jsx-b452af554142d27{color:${otherColor};display:${obj.display}}`} - <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-78f0c8c617eb8e50{color:red}"} + <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-b452af554142d27{color:red}"} - <_JSXStyle id={"ecd8dfc6d11e2c5e"}>{`body{background:${color}}`} + <_JSXStyle id={"e66306ac259712aa"}>{`body{background:${color}}`} - <_JSXStyle id={"ecd8dfc6d11e2c5e"}>{`body{background:${color}}`} + <_JSXStyle id={"e66306ac259712aa"}>{`body{background:${color}}`} // TODO: the next two should have the same hash - <_JSXStyle id={"e7486f61219e66af"}>{`p.jsx-78f0c8c617eb8e50{color:${color}}`} + <_JSXStyle id={"f08108daf927b99d"}>{`p.jsx-b452af554142d27{color:${color}}`} - <_JSXStyle id={"e7486f61219e66af"}>{`p.jsx-78f0c8c617eb8e50{color:${color}}`} + <_JSXStyle id={"f08108daf927b99d"}>{`p.jsx-b452af554142d27{color:${color}}`} - <_JSXStyle id={"97b2dd85b3a5c42d"} dynamic={[ + <_JSXStyle id={"72e421eb2017491a"} dynamic={[ darken(color) ]}>{`p.__jsx-style-dynamic-selector{color:${darken(color)}}`} - <_JSXStyle id={"e9bc1314d862fde1"} dynamic={[ + <_JSXStyle id={"d05e300c372f73ee"} dynamic={[ darken(color) + 2 ]}>{`p.__jsx-style-dynamic-selector{color:${darken(color) + 2}}`} - <_JSXStyle id={"7c5c5bde49d6c65d"}>{`@media(min-width:${mediumScreen}){p.jsx-78f0c8c617eb8e50{color:green}p.jsx-78f0c8c617eb8e50{color:${`red`}}}p.jsx-78f0c8c617eb8e50{color:red}`} + <_JSXStyle id={"7c5c5bde49d6c65d"}>{`@media(min-width:${mediumScreen}){p.jsx-b452af554142d27{color:green}p.jsx-b452af554142d27{color:${`red`}}}p.jsx-b452af554142d27{color:red}`} - <_JSXStyle id={"c5506be0b4762e0b"}>{`p.jsx-78f0c8c617eb8e50{-webkit-animation-duration:${animationDuration};-moz-animation-duration:${animationDuration};-o-animation-duration:${animationDuration};animation-duration:${animationDuration}}`} + <_JSXStyle id={"c5506be0b4762e0b"}>{`p.jsx-b452af554142d27{-webkit-animation-duration:${animationDuration};-moz-animation-duration:${animationDuration};-o-animation-duration:${animationDuration};animation-duration:${animationDuration}}`} - <_JSXStyle id={"82f0f2f07692d2e2"}>{`p.jsx-78f0c8c617eb8e50{-webkit-animation:${animationDuration} forwards ${animationName};-moz-animation:${animationDuration} forwards ${animationName};-o-animation:${animationDuration} forwards ${animationName};animation:${animationDuration} forwards ${animationName}}div.jsx-78f0c8c617eb8e50{background:${color}}`} + <_JSXStyle id={"ed798aa885be9084"}>{`p.jsx-b452af554142d27{-webkit-animation:${animationDuration} forwards ${animationName};-moz-animation:${animationDuration} forwards ${animationName};-o-animation:${animationDuration} forwards ${animationName};animation:${animationDuration} forwards ${animationName}}div.jsx-b452af554142d27{background:${color}}`} - <_JSXStyle id={"cf795552a2848e6c"} dynamic={[ + <_JSXStyle id={"469c0b1cc43512b8"} dynamic={[ display ? 'block' : 'none' ]}>{`span.__jsx-style-dynamic-selector{display:${display ? 'block' : 'none'}}`} diff --git a/packages/next-swc/crates/styled_jsx/tests/fixture/issue-31562-interpolation-in-mdea/output.js b/packages/next-swc/crates/styled_jsx/tests/fixture/issue-31562-interpolation-in-mdea/output.js index 1ce268168a2c8..c82016f21c0b6 100644 --- a/packages/next-swc/crates/styled_jsx/tests/fixture/issue-31562-interpolation-in-mdea/output.js +++ b/packages/next-swc/crates/styled_jsx/tests/fixture/issue-31562-interpolation-in-mdea/output.js @@ -3,7 +3,7 @@ export default class { render() { return= NextComponentType