diff --git a/docs/core/guides/ssr.md b/docs/core/guides/ssr.md index 1f6ebe1141ad..7578fa6e3c04 100644 --- a/docs/core/guides/ssr.md +++ b/docs/core/guides/ssr.md @@ -35,10 +35,12 @@ export default function RootLayout({ children }) { return ( + // highlight-next-line
Title
{children} + // highlight-next-line
diff --git a/docs/core/shared/_installation.mdx b/docs/core/shared/_installation.mdx index 870b0e7c4b7c..7d0a384e2cf2 100644 --- a/docs/core/shared/_installation.mdx +++ b/docs/core/shared/_installation.mdx @@ -83,9 +83,7 @@ export default function RootLayout({ children }) { // highlight-next-line -
Title
- {children} - + {children} // highlight-next-line
diff --git a/examples/nextjs/package-lock.json b/examples/nextjs/package-lock.json index c77d385f31e0..b3d0f65e831e 100644 --- a/examples/nextjs/package-lock.json +++ b/examples/nextjs/package-lock.json @@ -13,6 +13,7 @@ "@data-client/rest": "^0.12.0", "@data-client/ssr": "^0.12.0", "@js-temporal/polyfill": "^0.4.4", + "@next/swc-wasm-nodejs": "^15.0.0-rc.0", "@types/node": "20.14.2", "@types/react": "18.3.3", "@types/react-dom": "18.3.0", @@ -26,9 +27,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz", - "integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz", + "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -56,7 +57,6 @@ "version": "0.12.7", "resolved": "https://registry.npmjs.org/@data-client/endpoint/-/endpoint-0.12.7.tgz", "integrity": "sha512-gJ6hx83B5lmxkd0rC8I/EOLHhMFhHker675qnk6GCDMfhcVer5stTT7DwmEKxwlamn1lF5TReBbjauAigo0aVw==", - "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0" }, @@ -85,7 +85,6 @@ "version": "0.12.9", "resolved": "https://registry.npmjs.org/@data-client/react/-/react-0.12.9.tgz", "integrity": "sha512-HduMoqoUEprT3Ok9S/M22UszfQNu7faG9lWTQdhNhxjryTpAOHHMfrYlDKhY5lC5rds3AYhHU6sJWHZeIm5+AA==", - "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", "@data-client/core": "^0.12.5", @@ -115,7 +114,6 @@ "version": "0.12.9", "resolved": "https://registry.npmjs.org/@data-client/redux/-/redux-0.12.9.tgz", "integrity": "sha512-LtzAQguWzVuMbSqxhtoS0k0Fcrf7wGqW8ZM9gG4+oYaYQgvwvLfD0ikiQkq9gUvB3xijcy1+/Cin874KA+n2Pg==", - "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", "@data-client/core": "^0.12.5" @@ -142,7 +140,6 @@ "version": "0.12.8", "resolved": "https://registry.npmjs.org/@data-client/rest/-/rest-0.12.8.tgz", "integrity": "sha512-yQX1SGsoxJK3f3yR5CZwVXAi29VDbZhj6yEdGwKY94uWfsxe/c+cEnTRKcp9JwKwrHYtYi2Von5z9UYLETuAHA==", - "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", "@data-client/endpoint": "^0.12.7", @@ -159,7 +156,6 @@ "version": "0.12.9", "resolved": "https://registry.npmjs.org/@data-client/ssr/-/ssr-0.12.9.tgz", "integrity": "sha512-uMHZBipWqd7B9RNA3xP4Bskg3b4s7xDTtXesHfTjWNVJPIIYp5tM3QAczdGOHfqjcB03TaFmq44QfBCiZzH5gg==", - "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0" }, @@ -190,7 +186,6 @@ "version": "0.1.9", "resolved": "https://registry.npmjs.org/@data-client/use-enhanced-reducer/-/use-enhanced-reducer-0.1.9.tgz", "integrity": "sha512-5EdvX5/wQ6+R03JmNRnPVfHIOhY3B5hjUXc9fK7UwZzLyG23GtjpXUF5khCr0YMDXKIeW+TB2l8BkHwTFtN7GQ==", - "license": "Apache-2.0", "funding": { "url": "https://github.com/sponsors/ntucker" }, @@ -311,6 +306,11 @@ "node": ">= 10" } }, + "node_modules/@next/swc-wasm-nodejs": { + "version": "15.0.0-rc.0", + "resolved": "https://registry.npmjs.org/@next/swc-wasm-nodejs/-/swc-wasm-nodejs-15.0.0-rc.0.tgz", + "integrity": "sha512-nzN8kSWpGAT959lB4WK1UW+Q8RcJCY3oL1qz6C4R3TOyfhGQSBFZuV7ehzhlVximds1j1+mDFIzIgDZTiCNNJw==" + }, "node_modules/@next/swc-win32-arm64-msvc": { "version": "14.2.3", "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", @@ -374,21 +374,19 @@ "version": "20.14.2", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.2.tgz", "integrity": "sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==", - "license": "MIT", "dependencies": { "undici-types": "~5.26.4" } }, "node_modules/@types/prop-types": { - "version": "15.7.5", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", - "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + "version": "15.7.12", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", + "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==" }, "node_modules/@types/react": { "version": "18.3.3", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", - "license": "MIT", "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -414,9 +412,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001616", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001616.tgz", - "integrity": "sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==", + "version": "1.0.30001629", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001629.tgz", + "integrity": "sha512-c3dl911slnQhmxUIT4HhYzT7wnBK/XYpGnYLOj4nJBaRiw52Ibe7YxlDaAeRECvA786zCuExhxIUJ2K7nHMrBw==", "funding": [ { "type": "opencollective", @@ -443,9 +441,9 @@ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" }, "node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/flux-standard-action": { "version": "2.1.2", @@ -493,9 +491,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "funding": [ { "type": "github", @@ -559,14 +557,14 @@ } }, "node_modules/path-to-regexp": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", - "integrity": "sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==" + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz", + "integrity": "sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==" }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/postcss": { "version": "8.4.31", @@ -624,9 +622,9 @@ "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==" }, "node_modules/regenerator-runtime": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", - "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" }, "node_modules/scheduler": { "version": "0.23.2", @@ -637,9 +635,9 @@ } }, "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", "engines": { "node": ">=0.10.0" } @@ -675,9 +673,9 @@ } }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" }, "node_modules/typescript": { "version": "5.4.5", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 887f2167598a..154168fb53dd 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -14,6 +14,7 @@ "@data-client/rest": "^0.12.0", "@data-client/ssr": "^0.12.0", "@js-temporal/polyfill": "^0.4.4", + "@next/swc-wasm-nodejs": "^15.0.0-rc.0", "@types/node": "20.14.2", "@types/react": "18.3.3", "@types/react-dom": "18.3.0",