diff --git a/package.json b/package.json
index 1abeac7f1399c..2ebcb5641e1eb 100644
--- a/package.json
+++ b/package.json
@@ -189,14 +189,14 @@
"random-seed": "0.3.0",
"react": "18.2.0",
"react-17": "npm:react@17.0.2",
- "react-builtin": "npm:react@18.3.0-canary-1cea38448-20230530",
+ "react-builtin": "npm:react@18.3.0-canary-7118f5dd7-20230705",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2",
- "react-dom-builtin": "npm:react-dom@18.3.0-canary-1cea38448-20230530",
- "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-1cea38448-20230530",
- "react-experimental-builtin": "npm:react@0.0.0-experimental-1cea38448-20230530",
- "react-server-dom-webpack": "18.3.0-canary-1cea38448-20230530",
- "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-1cea38448-20230530",
+ "react-dom-builtin": "npm:react-dom@18.3.0-canary-7118f5dd7-20230705",
+ "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-7118f5dd7-20230705",
+ "react-experimental-builtin": "npm:react@0.0.0-experimental-7118f5dd7-20230705",
+ "react-server-dom-webpack": "18.3.0-canary-7118f5dd7-20230705",
+ "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-7118f5dd7-20230705",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
@@ -206,8 +206,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.9.1",
- "scheduler-builtin": "npm:scheduler@0.24.0-canary-1cea38448-20230530",
- "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-1cea38448-20230530",
+ "scheduler-builtin": "npm:scheduler@0.24.0-canary-7118f5dd7-20230705",
+ "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-7118f5dd7-20230705",
"seedrandom": "3.0.5",
"selenium-webdriver": "4.0.0-beta.4",
"semver": "7.3.7",
diff --git a/packages/next-swc/crates/next-dev-tests/tests/integration/next/app/implicit-metadata/input/app/test.tsx b/packages/next-swc/crates/next-dev-tests/tests/integration/next/app/implicit-metadata/input/app/test.tsx
index ee75fcd455814..054f136e10f65 100644
--- a/packages/next-swc/crates/next-dev-tests/tests/integration/next/app/implicit-metadata/input/app/test.tsx
+++ b/packages/next-swc/crates/next-dev-tests/tests/integration/next/app/implicit-metadata/input/app/test.tsx
@@ -5,7 +5,9 @@ import { useTestHarness } from '@turbo/pack-test-harness'
export default function Test() {
useTestHarness(() => {
it('should have the correct link tags', () => {
- let links = Array.from(document.querySelectorAll('link'))
+ const links = Array.from(document.querySelectorAll('link')).filter(
+ (l) => l.rel !== 'preload'
+ )
expect(
links.map((l) => ({
href: l.getAttribute('href'),
diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js
index 543bc0d8816cf..fe2741664d9c4 100644
--- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js
+++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
var React = require("next/dist/compiled/react-experimental");
var ReactDOM = require('react-dom');
-var ReactVersion = '18.3.0-experimental-1cea38448-20230530';
+var ReactVersion = '18.3.0-experimental-7118f5dd7-20230705';
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -1877,6 +1877,7 @@ var startScriptSrc = stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1906,7 +1907,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState$1(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1913,7 +1914,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState$1(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1986,7 +1987,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1986,7 +1987,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -2054,7 +2055,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1986,7 +1987,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1986,7 +1987,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -2055,7 +2056,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1868,7 +1869,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState$1(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1875,7 +1876,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState$1(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState$1(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1949,7 +1950,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -1949,7 +1950,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('');
/**
* This escaping function is designed to work with bootstrapScriptContent only.
@@ -2017,7 +2018,7 @@ var scriptReplacer = function (match, prefix, s, suffix) {
// is set, the server will send instructions via data attributes (instead of inline scripts)
-function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
+function createResponseState(resources, identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig) {
var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('