vinext 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/build/action-owner-manifest.d.ts +0 -2
- package/dist/build/action-owner-manifest.js +1 -2
- package/dist/build/app-page-static-eligibility.d.ts +0 -2
- package/dist/build/app-page-static-eligibility.js +2 -3
- package/dist/build/assets-ignore.d.ts +1 -3
- package/dist/build/assets-ignore.js +1 -2
- package/dist/build/clean-output.d.ts +0 -2
- package/dist/build/clean-output.js +1 -2
- package/dist/build/client-build-config.d.ts +9 -6
- package/dist/build/client-build-config.js +40 -11
- package/dist/build/client-reference-async.d.ts +0 -2
- package/dist/build/client-reference-async.js +1 -2
- package/dist/build/client-reference-chunks.d.ts +1 -3
- package/dist/build/client-reference-chunks.js +2 -3
- package/dist/build/client-reference-groups.d.ts +0 -2
- package/dist/build/client-reference-groups.js +1 -2
- package/dist/build/css-url-assets.d.ts +0 -2
- package/dist/build/css-url-assets.js +1 -2
- package/dist/build/google-fonts/build-url.d.ts +1 -3
- package/dist/build/google-fonts/build-url.js +1 -2
- package/dist/build/google-fonts/fallback-metrics-data.json.js +1 -2
- package/dist/build/google-fonts/fallback-metrics.d.ts +0 -2
- package/dist/build/google-fonts/fallback-metrics.js +1 -2
- package/dist/build/google-fonts/find-font-files-in-css.d.ts +1 -3
- package/dist/build/google-fonts/find-font-files-in-css.js +1 -2
- package/dist/build/google-fonts/font-data.json.js +1 -2
- package/dist/build/google-fonts/font-metadata.d.ts +0 -2
- package/dist/build/google-fonts/font-metadata.js +1 -2
- package/dist/build/google-fonts/get-axes.d.ts +1 -3
- package/dist/build/google-fonts/get-axes.js +1 -2
- package/dist/build/google-fonts/sort-variants.d.ts +1 -3
- package/dist/build/google-fonts/sort-variants.js +1 -2
- package/dist/build/google-fonts/validate.d.ts +0 -2
- package/dist/build/google-fonts/validate.js +1 -2
- package/dist/build/inject-pregenerated-paths.d.ts +1 -3
- package/dist/build/inject-pregenerated-paths.js +2 -3
- package/dist/build/inline-css.d.ts +0 -2
- package/dist/build/inline-css.js +1 -2
- package/dist/build/lifecycle.d.ts +1 -3
- package/dist/build/lifecycle.js +2 -3
- package/dist/build/module-dependency-cache.d.ts +0 -2
- package/dist/build/module-dependency-cache.js +1 -2
- package/dist/build/next-client-runtime-manifests.d.ts +1 -3
- package/dist/build/next-client-runtime-manifests.js +2 -3
- package/dist/build/nitro-public-files.d.ts +1 -3
- package/dist/build/nitro-public-files.js +1 -2
- package/dist/build/output-root-externals.d.ts +1 -3
- package/dist/build/output-root-externals.js +1 -2
- package/dist/build/pages-client-assets-module.d.ts +1 -3
- package/dist/build/pages-client-assets-module.js +2 -3
- package/dist/build/precompress.d.ts +0 -2
- package/dist/build/precompress.js +1 -2
- package/dist/build/prerender-cloudflare-loader.d.ts +1 -3
- package/dist/build/prerender-cloudflare-loader.js +1 -2
- package/dist/build/prerender-paths.d.ts +2 -4
- package/dist/build/prerender-paths.js +18 -19
- package/dist/build/prerender-phase.d.ts +0 -2
- package/dist/build/prerender-phase.js +1 -2
- package/dist/build/prerender-server-entry.js +2 -3
- package/dist/build/prerender-server-pool.d.ts +1 -3
- package/dist/build/prerender-server-pool.js +1 -2
- package/dist/build/prerender.d.ts +1 -3
- package/dist/build/prerender.js +34 -29
- package/dist/build/preview-credentials.d.ts +1 -3
- package/dist/build/preview-credentials.js +1 -2
- package/dist/build/public-dir-conflict.d.ts +1 -3
- package/dist/build/public-dir-conflict.js +1 -2
- package/dist/build/report.d.ts +1 -3
- package/dist/build/report.js +1 -2
- package/dist/build/run-prerender.d.ts +1 -3
- package/dist/build/run-prerender.js +7 -8
- package/dist/build/server-actions-encryption-key.d.ts +0 -2
- package/dist/build/server-actions-encryption-key.js +1 -2
- package/dist/build/server-entry.d.ts +1 -3
- package/dist/build/server-entry.js +1 -2
- package/dist/build/server-manifest.d.ts +1 -3
- package/dist/build/server-manifest.js +1 -2
- package/dist/build/ssr-manifest.d.ts +1 -3
- package/dist/build/ssr-manifest.js +1 -2
- package/dist/build/standalone.d.ts +0 -2
- package/dist/build/standalone.js +2 -3
- package/dist/build/static-export.d.ts +2 -4
- package/dist/build/static-export.js +2 -3
- package/dist/cache/cache-adapters-virtual.d.ts +0 -2
- package/dist/cache/cache-adapters-virtual.js +1 -2
- package/dist/check.d.ts +0 -2
- package/dist/check.js +2 -3
- package/dist/cli-args.d.ts +0 -2
- package/dist/cli-args.js +1 -2
- package/dist/cli-dev-config.d.ts +1 -3
- package/dist/cli-dev-config.js +1 -2
- package/dist/cli.js +5 -6
- package/dist/client/app-nav-failure-handler.d.ts +1 -3
- package/dist/client/app-nav-failure-handler.js +1 -2
- package/dist/client/browser-globals.d.ts +1 -3
- package/dist/client/browser-globals.js +1 -2
- package/dist/client/client-redirect-matcher.d.ts +1 -3
- package/dist/client/client-redirect-matcher.js +1 -2
- package/dist/client/client-redirects.d.ts +0 -2
- package/dist/client/client-redirects.js +1 -2
- package/dist/client/client-rewrite-matcher.d.ts +1 -3
- package/dist/client/client-rewrite-matcher.js +2 -3
- package/dist/client/client-rewrite-params.d.ts +1 -3
- package/dist/client/client-rewrite-params.js +1 -2
- package/dist/client/client-rewrites.d.ts +0 -2
- package/dist/client/client-rewrites.js +1 -2
- package/dist/client/dev-error-overlay-store.d.ts +0 -2
- package/dist/client/dev-error-overlay-store.js +1 -2
- package/dist/client/dev-error-overlay.d.ts +1 -3
- package/dist/client/dev-error-overlay.js +3 -4
- package/dist/client/instrumentation-client-inject.d.ts +1 -3
- package/dist/client/instrumentation-client-inject.js +1 -2
- package/dist/client/instrumentation-client-state.d.ts +1 -3
- package/dist/client/instrumentation-client-state.js +1 -2
- package/dist/client/instrumentation-client.d.ts +1 -3
- package/dist/client/instrumentation-client.js +1 -2
- package/dist/client/navigation-runtime.d.ts +3 -4
- package/dist/client/navigation-runtime.js +2 -3
- package/dist/client/pages-router-link-navigation.d.ts +0 -2
- package/dist/client/pages-router-link-navigation.js +1 -2
- package/dist/client/react-instance-bootstrap.js +1 -2
- package/dist/client/react-instance.d.ts +1 -3
- package/dist/client/react-instance.js +1 -2
- package/dist/client/validate-module-path.d.ts +1 -3
- package/dist/client/validate-module-path.js +1 -2
- package/dist/client/vinext-next-data.d.ts +0 -2
- package/dist/client/vinext-next-data.js +1 -2
- package/dist/client/window-next.d.ts +0 -2
- package/dist/client/window-next.js +1 -2
- package/dist/config/config-matchers.d.ts +0 -2
- package/dist/config/config-matchers.js +1 -2
- package/dist/config/config-source.d.ts +1 -3
- package/dist/config/config-source.js +1 -2
- package/dist/config/destination-params.d.ts +1 -3
- package/dist/config/destination-params.js +1 -2
- package/dist/config/dotenv.d.ts +0 -2
- package/dist/config/dotenv.js +1 -2
- package/dist/config/header-params.d.ts +1 -3
- package/dist/config/header-params.js +1 -2
- package/dist/config/next-config.d.ts +0 -2
- package/dist/config/next-config.js +6 -7
- package/dist/config/prerender.d.ts +0 -2
- package/dist/config/prerender.js +2 -3
- package/dist/config/request-context.d.ts +1 -3
- package/dist/config/request-context.js +1 -2
- package/dist/config/server-external-packages.d.ts +1 -3
- package/dist/config/server-external-packages.js +1 -2
- package/dist/config/tsconfig-paths.d.ts +0 -2
- package/dist/config/tsconfig-paths.js +2 -3
- package/dist/deps/.pnpm/am-i-vibing@0.5.0/deps/am-i-vibing/dist/detector-1yx2Hoe0.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/dbcs-codec.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/dbcs-data.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/index.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/internal.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/sbcs-codec.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/sbcs-data-generated.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/sbcs-data.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/big5-added.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/cp936.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/cp949.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/cp950.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/eucjp.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/gb18030-ranges.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/gbk-added.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/tables/shiftjis.json.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/utf16.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/encodings/utf7.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/lib/bom-handling.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/lib/extend-node.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/lib/index.js +1 -2
- package/dist/deps/.pnpm/iconv-lite@0.4.24/deps/iconv-lite/lib/streams.js +1 -2
- package/dist/deps/.pnpm/ignore@5.3.2/deps/ignore/index.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/detector.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/lookup.js +2 -3
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/bmp.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/cur.js +2 -3
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/dds.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/gif.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/heif.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/icns.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/ico.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/index.js +3 -4
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/j2c.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/jp2.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/jpg.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/jxl-stream.js +2 -3
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/jxl.js +2 -3
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/ktx.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/png.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/pnm.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/psd.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/svg.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/tga.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/tiff.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/utils.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/types/webp.js +1 -2
- package/dist/deps/.pnpm/image-size@2.0.4/deps/image-size/dist/esm/utils/bit-reader.js +1 -2
- package/dist/deps/.pnpm/pathslash@0.1.0/deps/pathslash/dist/index.js +1 -2
- package/dist/deps/.pnpm/process-ancestry@0.1.0/deps/process-ancestry/dist/index.js +1 -2
- package/dist/deps/.pnpm/safer-buffer@2.1.2/deps/safer-buffer/safer.js +1 -2
- package/dist/deps/.pnpm/ua-parser-js@1.0.35/deps/ua-parser-js/src/ua-parser.js +1 -2
- package/dist/entries/app-browser-entry.d.ts +1 -3
- package/dist/entries/app-browser-entry.js +3 -4
- package/dist/entries/app-rsc-entry.d.ts +4 -4
- package/dist/entries/app-rsc-entry.js +57 -29
- package/dist/entries/app-rsc-manifest.d.ts +17 -4
- package/dist/entries/app-rsc-manifest.js +28 -7
- package/dist/entries/app-ssr-entry.d.ts +1 -3
- package/dist/entries/app-ssr-entry.js +1 -2
- package/dist/entries/pages-client-entry.d.ts +2 -4
- package/dist/entries/pages-client-entry.js +7 -8
- package/dist/entries/pages-server-entry.d.ts +0 -2
- package/dist/entries/pages-server-entry.js +3 -4
- package/dist/entries/runtime-entry-module.d.ts +1 -3
- package/dist/entries/runtime-entry-module.js +1 -2
- package/dist/image/image-adapters-virtual.d.ts +0 -2
- package/dist/image/image-adapters-virtual.js +1 -2
- package/dist/index.d.ts +3 -5
- package/dist/index.js +81 -67
- package/dist/init-cloudflare.d.ts +1 -3
- package/dist/init-cloudflare.js +6 -8
- package/dist/init-platform.d.ts +1 -3
- package/dist/init-platform.js +1 -2
- package/dist/init.d.ts +0 -2
- package/dist/init.js +2 -3
- package/dist/plugins/action-owner-manifest.d.ts +1 -3
- package/dist/plugins/action-owner-manifest.js +1 -2
- package/dist/plugins/ast-scope.d.ts +1 -3
- package/dist/plugins/ast-scope.js +1 -2
- package/dist/plugins/ast-utils.d.ts +1 -3
- package/dist/plugins/ast-utils.js +1 -2
- package/dist/plugins/async-hooks-stub.d.ts +1 -3
- package/dist/plugins/async-hooks-stub.js +1 -2
- package/dist/plugins/client-compile-hints.d.ts +1 -3
- package/dist/plugins/client-compile-hints.js +1 -2
- package/dist/plugins/client-reference-dedup.d.ts +0 -2
- package/dist/plugins/client-reference-dedup.js +1 -2
- package/dist/plugins/cloudflare-dev-module-urls.d.ts +0 -2
- package/dist/plugins/cloudflare-dev-module-urls.js +3 -3
- package/dist/plugins/commonjs-esm-facade.d.ts +1 -3
- package/dist/plugins/commonjs-esm-facade.js +1 -2
- package/dist/plugins/commonjs-syntax.d.ts +1 -3
- package/dist/plugins/commonjs-syntax.js +0 -1
- package/dist/plugins/css-data-url.d.ts +1 -3
- package/dist/plugins/css-data-url.js +1 -2
- package/dist/plugins/css-module-imports.d.ts +1 -3
- package/dist/plugins/css-module-imports.js +1 -2
- package/dist/plugins/css-target.d.ts +1 -3
- package/dist/plugins/css-target.js +1 -2
- package/dist/plugins/dynamic-preload-metadata.d.ts +0 -2
- package/dist/plugins/dynamic-preload-metadata.js +5 -6
- package/dist/plugins/environment.d.ts +0 -2
- package/dist/plugins/environment.js +1 -2
- package/dist/plugins/extensionless-dynamic-import.d.ts +1 -3
- package/dist/plugins/extensionless-dynamic-import.js +4 -5
- package/dist/plugins/fonts.d.ts +1 -3
- package/dist/plugins/fonts.js +3 -4
- package/dist/plugins/ignore-dynamic-requests.d.ts +0 -2
- package/dist/plugins/ignore-dynamic-requests.js +4 -5
- package/dist/plugins/import-meta-url.d.ts +0 -2
- package/dist/plugins/import-meta-url.js +3 -4
- package/dist/plugins/instrumentation-client.d.ts +1 -3
- package/dist/plugins/instrumentation-client.js +2 -3
- package/dist/plugins/middleware-export-validation.d.ts +1 -3
- package/dist/plugins/middleware-export-validation.js +2 -3
- package/dist/plugins/middleware-server-only.d.ts +1 -3
- package/dist/plugins/middleware-server-only.js +1 -2
- package/dist/plugins/next-intl-catalog.d.ts +1 -3
- package/dist/plugins/next-intl-catalog.js +2 -3
- package/dist/plugins/nitro-dev-deps-optimizer-gate.d.ts +17 -0
- package/dist/plugins/nitro-dev-deps-optimizer-gate.js +41 -0
- package/dist/plugins/og-asset-ownership.d.ts +1 -3
- package/dist/plugins/og-asset-ownership.js +2 -3
- package/dist/plugins/og-assets.d.ts +0 -2
- package/dist/plugins/og-assets.js +2 -3
- package/dist/plugins/og-harfbuzz.d.ts +1 -3
- package/dist/plugins/og-harfbuzz.js +2 -3
- package/dist/plugins/optimize-imports.d.ts +0 -2
- package/dist/plugins/optimize-imports.js +2 -3
- package/dist/plugins/pages-node-externals.d.ts +0 -2
- package/dist/plugins/pages-node-externals.js +2 -3
- package/dist/plugins/postcss.d.ts +1 -3
- package/dist/plugins/postcss.js +1 -2
- package/dist/plugins/remove-console.d.ts +0 -2
- package/dist/plugins/remove-console.js +1 -2
- package/dist/plugins/require-condition-resolution.d.ts +0 -2
- package/dist/plugins/require-condition-resolution.js +2 -3
- package/dist/plugins/require-context.d.ts +1 -3
- package/dist/plugins/require-context.js +2 -3
- package/dist/plugins/rsc-client-reference-loaders.d.ts +1 -3
- package/dist/plugins/rsc-client-reference-loaders.js +3 -4
- package/dist/plugins/rsc-client-shim-excludes.d.ts +1 -3
- package/dist/plugins/rsc-client-shim-excludes.js +1 -2
- package/dist/plugins/rsc-reference-validation-normalizer.d.ts +1 -3
- package/dist/plugins/rsc-reference-validation-normalizer.js +1 -2
- package/dist/plugins/rsc-scan-glob-imports.d.ts +1 -3
- package/dist/plugins/rsc-scan-glob-imports.js +1 -2
- package/dist/plugins/sass.d.ts +0 -2
- package/dist/plugins/sass.js +2 -3
- package/dist/plugins/scan-build-css.d.ts +1 -3
- package/dist/plugins/scan-build-css.js +1 -2
- package/dist/plugins/server-externals-manifest.d.ts +1 -3
- package/dist/plugins/server-externals-manifest.js +1 -2
- package/dist/plugins/strip-server-exports.d.ts +0 -2
- package/dist/plugins/strip-server-exports.js +2 -3
- package/dist/plugins/styled-jsx.d.ts +0 -2
- package/dist/plugins/styled-jsx.js +35 -9
- package/dist/plugins/transform-cache.d.ts +1 -3
- package/dist/plugins/transform-cache.js +1 -2
- package/dist/plugins/transform-result.d.ts +12 -2
- package/dist/plugins/transform-result.js +16 -3
- package/dist/plugins/transitive-externals.d.ts +1 -3
- package/dist/plugins/transitive-externals.js +2 -3
- package/dist/plugins/typeof-window.d.ts +0 -2
- package/dist/plugins/typeof-window.js +2 -3
- package/dist/plugins/use-cache-callable.d.ts +0 -2
- package/dist/plugins/use-cache-callable.js +7 -8
- package/dist/plugins/wasm-module-import.d.ts +1 -3
- package/dist/plugins/wasm-module-import.js +1 -2
- package/dist/plugins/worker-image-imports.d.ts +1 -3
- package/dist/plugins/worker-image-imports.js +3 -4
- package/dist/plugins/worker-server-only-imports.d.ts +1 -3
- package/dist/plugins/worker-server-only-imports.js +1 -2
- package/dist/plugins/worker-use-server.d.ts +0 -2
- package/dist/plugins/worker-use-server.js +5 -6
- package/dist/routing/app-route-graph.d.ts +0 -2
- package/dist/routing/app-route-graph.js +2 -3
- package/dist/routing/app-route-ids.d.ts +1 -3
- package/dist/routing/app-route-ids.js +1 -2
- package/dist/routing/app-router.d.ts +0 -2
- package/dist/routing/app-router.js +2 -3
- package/dist/routing/browser-route-manifest.d.ts +0 -2
- package/dist/routing/browser-route-manifest.js +1 -2
- package/dist/routing/file-matcher.d.ts +1 -3
- package/dist/routing/file-matcher.js +1 -2
- package/dist/routing/hashed-route-patterns.d.ts +1 -3
- package/dist/routing/hashed-route-patterns.js +2 -3
- package/dist/routing/optimistic-route-trie.d.ts +0 -2
- package/dist/routing/optimistic-route-trie.js +1 -2
- package/dist/routing/pages-router.d.ts +0 -2
- package/dist/routing/pages-router.js +2 -3
- package/dist/routing/route-matching.d.ts +0 -2
- package/dist/routing/route-matching.js +1 -2
- package/dist/routing/route-pattern.d.ts +0 -2
- package/dist/routing/route-pattern.js +1 -2
- package/dist/routing/route-trie.d.ts +1 -3
- package/dist/routing/route-trie.js +1 -2
- package/dist/routing/route-validation.d.ts +1 -3
- package/dist/routing/route-validation.js +1 -2
- package/dist/routing/utils.d.ts +1 -3
- package/dist/routing/utils.js +1 -2
- package/dist/server/accept-encoding.d.ts +0 -2
- package/dist/server/accept-encoding.js +1 -2
- package/dist/server/api-handler.d.ts +1 -3
- package/dist/server/api-handler.js +9 -10
- package/dist/server/app-action-forwarding.d.ts +0 -2
- package/dist/server/app-action-forwarding.js +10 -14
- package/dist/server/app-action-request.d.ts +1 -3
- package/dist/server/app-action-request.js +1 -2
- package/dist/server/app-bfcache-id.d.ts +1 -4
- package/dist/server/app-bfcache-id.js +2 -9
- package/dist/server/app-bfcache-identity.d.ts +3 -4
- package/dist/server/app-bfcache-identity.js +8 -5
- package/dist/server/app-browser-action-result.d.ts +1 -3
- package/dist/server/app-browser-action-result.js +1 -2
- package/dist/server/app-browser-entry.js +27 -38
- package/dist/server/app-browser-error.d.ts +0 -2
- package/dist/server/app-browser-error.js +3 -4
- package/dist/server/app-browser-history-controller.d.ts +1 -3
- package/dist/server/app-browser-history-controller.js +1 -2
- package/dist/server/app-browser-hydration.d.ts +0 -2
- package/dist/server/app-browser-hydration.js +1 -2
- package/dist/server/app-browser-interception-context.d.ts +0 -2
- package/dist/server/app-browser-interception-context.js +3 -4
- package/dist/server/app-browser-mpa-navigation.d.ts +1 -3
- package/dist/server/app-browser-mpa-navigation.js +1 -2
- package/dist/server/app-browser-navigation-abort.d.ts +1 -3
- package/dist/server/app-browser-navigation-abort.js +1 -2
- package/dist/server/app-browser-navigation-controller.d.ts +5 -7
- package/dist/server/app-browser-navigation-controller.js +6 -7
- package/dist/server/app-browser-navigation-response.d.ts +1 -3
- package/dist/server/app-browser-navigation-response.js +1 -2
- package/dist/server/app-browser-popstate.d.ts +0 -2
- package/dist/server/app-browser-popstate.js +1 -2
- package/dist/server/app-browser-prefetch-response.d.ts +2 -4
- package/dist/server/app-browser-prefetch-response.js +2 -3
- package/dist/server/app-browser-rsc-redirect.d.ts +0 -2
- package/dist/server/app-browser-rsc-redirect.js +2 -3
- package/dist/server/app-browser-server-action-client.d.ts +1 -3
- package/dist/server/app-browser-server-action-client.js +8 -9
- package/dist/server/app-browser-server-action-navigation.d.ts +1 -3
- package/dist/server/app-browser-server-action-navigation.js +1 -2
- package/dist/server/app-browser-state.d.ts +4 -6
- package/dist/server/app-browser-state.js +13 -12
- package/dist/server/app-browser-stream.d.ts +0 -2
- package/dist/server/app-browser-stream.js +2 -3
- package/dist/server/app-browser-supplemental-refresh.d.ts +3 -5
- package/dist/server/app-browser-supplemental-refresh.js +6 -7
- package/dist/server/app-browser-visible-commit.d.ts +3 -5
- package/dist/server/app-browser-visible-commit.js +4 -5
- package/dist/server/app-client-reference-manifest.d.ts +0 -2
- package/dist/server/app-client-reference-manifest.js +1 -2
- package/dist/server/app-client-reference-preloader.d.ts +0 -2
- package/dist/server/app-client-reference-preloader.js +1 -2
- package/dist/server/app-elements-wire-key.d.ts +1 -3
- package/dist/server/app-elements-wire-key.js +1 -2
- package/dist/server/app-elements-wire.d.ts +4 -2
- package/dist/server/app-elements-wire.js +16 -5
- package/dist/server/app-elements.d.ts +0 -2
- package/dist/server/app-elements.js +1 -2
- package/dist/server/app-fallback-renderer.d.ts +10 -8
- package/dist/server/app-fallback-renderer.js +13 -11
- package/dist/server/app-fetch-tracing.d.ts +1 -3
- package/dist/server/app-fetch-tracing.js +1 -2
- package/dist/server/app-history-state.d.ts +0 -2
- package/dist/server/app-history-state.js +4 -5
- package/dist/server/app-hook-warning-suppression.d.ts +1 -3
- package/dist/server/app-hook-warning-suppression.js +1 -2
- package/dist/server/app-hydration-cache-publication.d.ts +1 -3
- package/dist/server/app-hydration-cache-publication.js +1 -2
- package/dist/server/app-inline-css-client.d.ts +0 -2
- package/dist/server/app-inline-css-client.js +1 -2
- package/dist/server/app-interception-context-header.d.ts +1 -3
- package/dist/server/app-interception-context-header.js +1 -2
- package/dist/server/app-metadata-tracing.d.ts +0 -2
- package/dist/server/app-metadata-tracing.js +1 -2
- package/dist/server/app-middleware.d.ts +0 -2
- package/dist/server/app-middleware.js +7 -8
- package/dist/server/app-mounted-layouts.d.ts +1 -3
- package/dist/server/app-mounted-layouts.js +1 -2
- package/dist/server/app-mounted-slots-header.d.ts +1 -3
- package/dist/server/app-mounted-slots-header.js +1 -2
- package/dist/server/app-optimistic-routing.d.ts +2 -4
- package/dist/server/app-optimistic-routing.js +4 -5
- package/dist/server/app-page-boundary-render.d.ts +8 -8
- package/dist/server/app-page-boundary-render.js +16 -16
- package/dist/server/app-page-boundary.d.ts +0 -2
- package/dist/server/app-page-boundary.js +3 -4
- package/dist/server/app-page-cache-finalizer.d.ts +1 -3
- package/dist/server/app-page-cache-finalizer.js +8 -9
- package/dist/server/app-page-cache-render.d.ts +3 -5
- package/dist/server/app-page-cache-render.js +5 -6
- package/dist/server/app-page-cache.d.ts +2 -4
- package/dist/server/app-page-cache.js +9 -10
- package/dist/server/app-page-dispatch.d.ts +17 -12
- package/dist/server/app-page-dispatch.js +55 -38
- package/dist/server/app-page-element-builder.d.ts +5 -7
- package/dist/server/app-page-element-builder.js +13 -14
- package/dist/server/app-page-execution.d.ts +0 -2
- package/dist/server/app-page-execution.js +5 -6
- package/dist/server/app-page-head.d.ts +4 -6
- package/dist/server/app-page-head.js +4 -5
- package/dist/server/app-page-http-access-fallback-metadata.d.ts +2 -4
- package/dist/server/app-page-http-access-fallback-metadata.js +4 -5
- package/dist/server/app-page-intercept-segment-config.d.ts +0 -2
- package/dist/server/app-page-intercept-segment-config.js +1 -2
- package/dist/server/app-page-layout-gate.d.ts +0 -2
- package/dist/server/app-page-layout-gate.js +1 -2
- package/dist/server/app-page-method.d.ts +0 -2
- package/dist/server/app-page-method.js +3 -4
- package/dist/server/app-page-navigation-params.d.ts +0 -2
- package/dist/server/app-page-navigation-params.js +1 -2
- package/dist/server/app-page-params.d.ts +1 -3
- package/dist/server/app-page-params.js +1 -2
- package/dist/server/app-page-ppr-runtime.d.ts +1 -3
- package/dist/server/app-page-ppr-runtime.js +2 -3
- package/dist/server/app-page-probe.d.ts +0 -2
- package/dist/server/app-page-probe.js +1 -2
- package/dist/server/app-page-render-identity.d.ts +0 -2
- package/dist/server/app-page-render-identity.js +3 -4
- package/dist/server/app-page-render-observation.d.ts +1 -3
- package/dist/server/app-page-render-observation.js +4 -5
- package/dist/server/app-page-render.d.ts +6 -8
- package/dist/server/app-page-render.js +23 -24
- package/dist/server/app-page-request.d.ts +20 -2
- package/dist/server/app-page-request.js +33 -6
- package/dist/server/app-page-response.d.ts +0 -2
- package/dist/server/app-page-response.js +4 -5
- package/dist/server/app-page-route-wiring.d.ts +4 -6
- package/dist/server/app-page-route-wiring.js +14 -15
- package/dist/server/app-page-rsc-render-status.d.ts +2 -4
- package/dist/server/app-page-rsc-render-status.js +2 -3
- package/dist/server/app-page-search-params-observation.d.ts +0 -2
- package/dist/server/app-page-search-params-observation.js +2 -3
- package/dist/server/app-page-segment-plan.d.ts +0 -2
- package/dist/server/app-page-segment-plan.js +2 -3
- package/dist/server/app-page-segment-state.d.ts +1 -3
- package/dist/server/app-page-segment-state.js +1 -2
- package/dist/server/app-page-stream.d.ts +1 -3
- package/dist/server/app-page-stream.js +5 -6
- package/dist/server/app-page-tracing.d.ts +1 -3
- package/dist/server/app-page-tracing.js +2 -3
- package/dist/server/app-pages-bridge.d.ts +1 -3
- package/dist/server/app-pages-bridge.js +5 -6
- package/dist/server/app-post-middleware-context.d.ts +1 -3
- package/dist/server/app-post-middleware-context.js +2 -3
- package/dist/server/app-ppr-fallback-shell-render.d.ts +0 -2
- package/dist/server/app-ppr-fallback-shell-render.js +1 -2
- package/dist/server/app-ppr-fallback-shell.d.ts +0 -2
- package/dist/server/app-ppr-fallback-shell.js +1 -2
- package/dist/server/app-prerender-endpoints.d.ts +0 -2
- package/dist/server/app-prerender-endpoints.js +2 -3
- package/dist/server/app-prerender-static-params.d.ts +0 -2
- package/dist/server/app-prerender-static-params.js +2 -3
- package/dist/server/app-render-abort-error.d.ts +1 -3
- package/dist/server/app-render-abort-error.js +1 -2
- package/dist/server/app-render-dependency.d.ts +1 -3
- package/dist/server/app-render-dependency.js +1 -2
- package/dist/server/app-request-context.d.ts +1 -3
- package/dist/server/app-request-context.js +2 -3
- package/dist/server/app-request-stage-context.d.ts +1 -3
- package/dist/server/app-request-stage-context.js +1 -2
- package/dist/server/app-request-stage-dispatch.d.ts +3 -5
- package/dist/server/app-request-stage-dispatch.js +6 -7
- package/dist/server/app-request-stage-independent-entry.d.ts +1 -3
- package/dist/server/app-request-stage-independent-entry.js +9 -10
- package/dist/server/app-response-header-provenance.d.ts +1 -3
- package/dist/server/app-response-header-provenance.js +1 -2
- package/dist/server/app-response-stage-entry.d.ts +1 -3
- package/dist/server/app-response-stage-entry.js +9 -10
- package/dist/server/app-route-handler-cache.d.ts +2 -4
- package/dist/server/app-route-handler-cache.js +4 -5
- package/dist/server/app-route-handler-dispatch.d.ts +8 -3
- package/dist/server/app-route-handler-dispatch.js +153 -26
- package/dist/server/app-route-handler-execution.d.ts +4 -6
- package/dist/server/app-route-handler-execution.js +12 -12
- package/dist/server/app-route-handler-middleware-context.d.ts +1 -3
- package/dist/server/app-route-handler-middleware-context.js +1 -2
- package/dist/server/app-route-handler-policy.d.ts +18 -3
- package/dist/server/app-route-handler-policy.js +28 -5
- package/dist/server/app-route-handler-response.d.ts +3 -3
- package/dist/server/app-route-handler-response.js +20 -8
- package/dist/server/app-route-handler-runtime.d.ts +0 -2
- package/dist/server/app-route-handler-runtime.js +4 -5
- package/dist/server/app-route-module-loader.d.ts +0 -2
- package/dist/server/app-route-module-loader.js +1 -2
- package/dist/server/app-route-request-built-ins.d.ts +1 -3
- package/dist/server/app-route-request-built-ins.js +1 -2
- package/dist/server/app-route-tree-prefetch.d.ts +0 -2
- package/dist/server/app-route-tree-prefetch.js +2 -3
- package/dist/server/app-route-tree.d.ts +1 -3
- package/dist/server/app-route-tree.js +1 -2
- package/dist/server/app-router-entry.d.ts +1 -3
- package/dist/server/app-router-entry.js +8 -9
- package/dist/server/app-rsc-cache-busting.d.ts +1 -3
- package/dist/server/app-rsc-cache-busting.js +4 -5
- package/dist/server/app-rsc-combined-handler.d.ts +3 -5
- package/dist/server/app-rsc-combined-handler.js +3 -4
- package/dist/server/app-rsc-embedded-chunks.d.ts +1 -3
- package/dist/server/app-rsc-embedded-chunks.js +1 -2
- package/dist/server/app-rsc-error-handler.d.ts +0 -2
- package/dist/server/app-rsc-error-handler.js +2 -3
- package/dist/server/app-rsc-errors.d.ts +0 -2
- package/dist/server/app-rsc-errors.js +4 -5
- package/dist/server/app-rsc-handler.d.ts +24 -8
- package/dist/server/app-rsc-handler.js +382 -296
- package/dist/server/app-rsc-redirect-flight.d.ts +1 -3
- package/dist/server/app-rsc-redirect-flight.js +1 -2
- package/dist/server/app-rsc-render-mode.d.ts +1 -3
- package/dist/server/app-rsc-render-mode.js +1 -2
- package/dist/server/app-rsc-request-normalization.d.ts +0 -2
- package/dist/server/app-rsc-request-normalization.js +8 -9
- package/dist/server/app-rsc-response-finalizer.d.ts +2 -2
- package/dist/server/app-rsc-response-finalizer.js +15 -12
- package/dist/server/app-rsc-response-stage.d.ts +3 -5
- package/dist/server/app-rsc-response-stage.js +30 -29
- package/dist/server/app-rsc-route-matching.d.ts +0 -2
- package/dist/server/app-rsc-route-matching.js +4 -5
- package/dist/server/app-rsc-state-fingerprint.d.ts +1 -3
- package/dist/server/app-rsc-state-fingerprint.js +1 -2
- package/dist/server/app-rsc-vary.d.ts +1 -3
- package/dist/server/app-rsc-vary.js +1 -2
- package/dist/server/app-segment-config.d.ts +0 -2
- package/dist/server/app-segment-config.js +1 -2
- package/dist/server/app-server-action-execution.d.ts +4 -6
- package/dist/server/app-server-action-execution.js +27 -30
- package/dist/server/app-ssr-entry.d.ts +1 -3
- package/dist/server/app-ssr-entry.js +29 -30
- package/dist/server/app-ssr-error-meta.d.ts +0 -2
- package/dist/server/app-ssr-error-meta.js +1 -2
- package/dist/server/app-ssr-router-instance.d.ts +1 -3
- package/dist/server/app-ssr-router-instance.js +2 -3
- package/dist/server/app-ssr-search-params-gate.d.ts +0 -2
- package/dist/server/app-ssr-search-params-gate.js +1 -2
- package/dist/server/app-ssr-stream.d.ts +0 -2
- package/dist/server/app-ssr-stream.js +1 -2
- package/dist/server/app-static-generation.d.ts +0 -2
- package/dist/server/app-static-generation.js +1 -2
- package/dist/server/app-streamed-client-references.d.ts +1 -3
- package/dist/server/app-streamed-client-references.js +4 -4
- package/dist/server/app-visited-response-cache.d.ts +1 -3
- package/dist/server/app-visited-response-cache.js +4 -16
- package/dist/server/app-worker-stages.d.ts +1 -3
- package/dist/server/app-worker-stages.js +4 -5
- package/dist/server/artifact-compatibility.d.ts +0 -2
- package/dist/server/artifact-compatibility.js +2 -3
- package/dist/server/before-interactive-head.d.ts +1 -3
- package/dist/server/before-interactive-head.js +1 -2
- package/dist/server/bfcache-identity.d.ts +0 -2
- package/dist/server/bfcache-identity.js +1 -2
- package/dist/server/cache-control.d.ts +0 -2
- package/dist/server/cache-control.js +1 -2
- package/dist/server/cache-headers.d.ts +0 -2
- package/dist/server/cache-headers.js +1 -2
- package/dist/server/cache-proof.d.ts +1 -3
- package/dist/server/cache-proof.js +1 -2
- package/dist/server/cacheability-limits.d.ts +1 -3
- package/dist/server/cacheability-limits.js +1 -2
- package/dist/server/cacheability-manifest.d.ts +1 -3
- package/dist/server/cacheability-manifest.js +1 -2
- package/dist/server/cacheability-request.d.ts +1 -3
- package/dist/server/cacheability-request.js +5 -6
- package/dist/server/client-build-files.d.ts +1 -3
- package/dist/server/client-build-files.js +1 -2
- package/dist/server/client-trace-metadata.d.ts +1 -3
- package/dist/server/client-trace-metadata.js +1 -2
- package/dist/server/cloudflare-workers-tracing.js +1 -2
- package/dist/server/config-headers.d.ts +0 -2
- package/dist/server/config-headers.js +3 -4
- package/dist/server/cookie-utils.d.ts +1 -3
- package/dist/server/cookie-utils.js +1 -2
- package/dist/server/csp.d.ts +0 -2
- package/dist/server/csp.js +1 -2
- package/dist/server/default-global-error-module.d.ts +1 -3
- package/dist/server/default-global-error-module.js +1 -2
- package/dist/server/default-global-not-found-module.d.ts +7 -2
- package/dist/server/default-global-not-found-module.js +19 -3
- package/dist/server/default-http-access-fallback-modules.d.ts +1 -3
- package/dist/server/default-http-access-fallback-modules.js +1 -2
- package/dist/server/defer-until-stream-consumed.d.ts +1 -3
- package/dist/server/defer-until-stream-consumed.js +1 -2
- package/dist/server/dev-initial-server-error.d.ts +1 -3
- package/dist/server/dev-initial-server-error.js +1 -2
- package/dist/server/dev-lockfile.d.ts +0 -2
- package/dist/server/dev-lockfile.js +1 -2
- package/dist/server/dev-module-runner.d.ts +0 -2
- package/dist/server/dev-module-runner.js +1 -2
- package/dist/server/dev-origin-check.d.ts +1 -3
- package/dist/server/dev-origin-check.js +1 -2
- package/dist/server/dev-route-files.d.ts +1 -3
- package/dist/server/dev-route-files.js +1 -2
- package/dist/server/dev-server.d.ts +3 -5
- package/dist/server/dev-server.js +28 -26
- package/dist/server/dev-stack-sourcemap.d.ts +0 -2
- package/dist/server/dev-stack-sourcemap.js +1 -2
- package/dist/server/document-initial-head.d.ts +1 -3
- package/dist/server/document-initial-head.js +1 -2
- package/dist/server/edge-api-runtime.d.ts +1 -3
- package/dist/server/edge-api-runtime.js +1 -2
- package/dist/server/file-based-metadata.d.ts +1 -3
- package/dist/server/file-based-metadata.js +3 -4
- package/dist/server/forwarded-middleware-context.d.ts +1 -3
- package/dist/server/forwarded-middleware-context.js +1 -2
- package/dist/server/framework-tracer.d.ts +0 -2
- package/dist/server/framework-tracer.js +1 -2
- package/dist/server/fully-buffered-response.d.ts +1 -3
- package/dist/server/fully-buffered-response.js +1 -2
- package/dist/server/headers.d.ts +6 -2
- package/dist/server/headers.js +8 -3
- package/dist/server/html.d.ts +1 -3
- package/dist/server/html.js +1 -2
- package/dist/server/http-conditional.d.ts +0 -2
- package/dist/server/http-conditional.js +1 -2
- package/dist/server/http-date.d.ts +1 -3
- package/dist/server/http-date.js +1 -2
- package/dist/server/http-error-responses.d.ts +0 -2
- package/dist/server/http-error-responses.js +1 -2
- package/dist/server/http-range.d.ts +1 -3
- package/dist/server/http-range.js +1 -2
- package/dist/server/hybrid-route-priority.d.ts +1 -3
- package/dist/server/hybrid-route-priority.js +1 -2
- package/dist/server/image-animation.d.ts +1 -3
- package/dist/server/image-animation.js +1 -2
- package/dist/server/image-local-patterns.d.ts +1 -3
- package/dist/server/image-local-patterns.js +1 -2
- package/dist/server/image-optimization.d.ts +1 -3
- package/dist/server/image-optimization.js +3 -4
- package/dist/server/image-source-reader.d.ts +1 -3
- package/dist/server/image-source-reader.js +1 -2
- package/dist/server/implicit-tags.d.ts +6 -2
- package/dist/server/implicit-tags.js +12 -3
- package/dist/server/instrumentation-runtime.d.ts +1 -3
- package/dist/server/instrumentation-runtime.js +1 -2
- package/dist/server/instrumentation.d.ts +1 -3
- package/dist/server/instrumentation.js +2 -3
- package/dist/server/isolate-shared-promise.d.ts +9 -4
- package/dist/server/isolate-shared-promise.js +38 -17
- package/dist/server/isr-cache.d.ts +4 -6
- package/dist/server/isr-cache.js +5 -6
- package/dist/server/isr-decision.d.ts +0 -2
- package/dist/server/isr-decision.js +1 -2
- package/dist/server/metadata-route-build-data.d.ts +0 -2
- package/dist/server/metadata-route-build-data.js +2 -3
- package/dist/server/metadata-route-response.d.ts +1 -3
- package/dist/server/metadata-route-response.js +19 -29
- package/dist/server/metadata-routes.d.ts +0 -2
- package/dist/server/metadata-routes.js +1 -2
- package/dist/server/middleware-matcher-pattern.d.ts +1 -3
- package/dist/server/middleware-matcher-pattern.js +1 -2
- package/dist/server/middleware-matcher.d.ts +1 -3
- package/dist/server/middleware-matcher.js +1 -2
- package/dist/server/middleware-response-headers.d.ts +1 -3
- package/dist/server/middleware-response-headers.js +2 -3
- package/dist/server/middleware-runtime.d.ts +0 -2
- package/dist/server/middleware-runtime.js +9 -10
- package/dist/server/middleware.d.ts +2 -4
- package/dist/server/middleware.js +2 -3
- package/dist/server/multi-stage.d.ts +1 -3
- package/dist/server/multi-stage.js +1 -2
- package/dist/server/navigation-planner.d.ts +2 -4
- package/dist/server/navigation-planner.js +5 -6
- package/dist/server/navigation-trace.d.ts +0 -2
- package/dist/server/navigation-trace.js +1 -2
- package/dist/server/next-error-digest.d.ts +0 -2
- package/dist/server/next-error-digest.js +1 -2
- package/dist/server/nitro-public-files-plugin.d.ts +0 -2
- package/dist/server/nitro-public-files-plugin.js +1 -2
- package/dist/server/nitro-public-files.d.ts +0 -2
- package/dist/server/nitro-public-files.js +2 -3
- package/dist/server/nitro-request-target-plugin.d.ts +0 -2
- package/dist/server/nitro-request-target-plugin.js +1 -2
- package/dist/server/node-response-signal.d.ts +1 -3
- package/dist/server/node-response-signal.js +1 -2
- package/dist/server/normalize-path.d.ts +1 -3
- package/dist/server/normalize-path.js +1 -2
- package/dist/server/open-redirect.d.ts +1 -3
- package/dist/server/open-redirect.js +1 -2
- package/dist/server/opentelemetry-api.d.ts +0 -2
- package/dist/server/opentelemetry-api.js +1 -2
- package/dist/server/opentelemetry-tracing.d.ts +1 -3
- package/dist/server/opentelemetry-tracing.js +2 -3
- package/dist/server/operation-token.d.ts +0 -2
- package/dist/server/operation-token.js +1 -2
- package/dist/server/otel-tracer-extension.d.ts +1 -3
- package/dist/server/otel-tracer-extension.js +1 -2
- package/dist/server/pages-api-route.d.ts +3 -5
- package/dist/server/pages-api-route.js +9 -9
- package/dist/server/pages-asset-tags.d.ts +0 -2
- package/dist/server/pages-asset-tags.js +2 -3
- package/dist/server/pages-body-parser-config.d.ts +0 -2
- package/dist/server/pages-body-parser-config.js +1 -2
- package/dist/server/pages-cache-tag.d.ts +1 -3
- package/dist/server/pages-cache-tag.js +1 -2
- package/dist/server/pages-client-assets.d.ts +1 -3
- package/dist/server/pages-client-assets.js +1 -2
- package/dist/server/pages-data-route.d.ts +0 -2
- package/dist/server/pages-data-route.js +3 -4
- package/dist/server/pages-default-404.d.ts +1 -3
- package/dist/server/pages-default-404.js +1 -2
- package/dist/server/pages-dev-hydration.d.ts +1 -3
- package/dist/server/pages-dev-hydration.js +2 -3
- package/dist/server/pages-dev-module-url.d.ts +1 -3
- package/dist/server/pages-dev-module-url.js +1 -2
- package/dist/server/pages-dev-stylesheets.d.ts +1 -3
- package/dist/server/pages-dev-stylesheets.js +1 -2
- package/dist/server/pages-document-asset-props.d.ts +0 -2
- package/dist/server/pages-document-asset-props.js +2 -3
- package/dist/server/pages-document-initial-props.d.ts +0 -2
- package/dist/server/pages-document-initial-props.js +1 -2
- package/dist/server/pages-document-splice.d.ts +1 -3
- package/dist/server/pages-document-splice.js +1 -2
- package/dist/server/pages-execution-tracing.d.ts +0 -2
- package/dist/server/pages-execution-tracing.js +2 -3
- package/dist/server/pages-get-initial-props.d.ts +0 -2
- package/dist/server/pages-get-initial-props.js +1 -2
- package/dist/server/pages-i18n.d.ts +0 -2
- package/dist/server/pages-i18n.js +1 -2
- package/dist/server/pages-media-type.d.ts +1 -3
- package/dist/server/pages-media-type.js +1 -2
- package/dist/server/pages-node-compat.d.ts +0 -2
- package/dist/server/pages-node-compat.js +2 -3
- package/dist/server/pages-page-data.d.ts +6 -3
- package/dist/server/pages-page-data.js +28 -20
- package/dist/server/pages-page-handler.d.ts +2 -4
- package/dist/server/pages-page-handler.js +39 -32
- package/dist/server/pages-page-method.d.ts +0 -2
- package/dist/server/pages-page-method.js +1 -2
- package/dist/server/pages-page-response.d.ts +0 -2
- package/dist/server/pages-page-response.js +16 -17
- package/dist/server/pages-preview.d.ts +0 -2
- package/dist/server/pages-preview.js +1 -2
- package/dist/server/pages-readiness.d.ts +0 -2
- package/dist/server/pages-readiness.js +1 -2
- package/dist/server/pages-request-pipeline.d.ts +1 -3
- package/dist/server/pages-request-pipeline.js +15 -16
- package/dist/server/pages-request-stage-entry.d.ts +1 -3
- package/dist/server/pages-request-stage-entry.js +20 -21
- package/dist/server/pages-response-stage-entry.d.ts +1 -3
- package/dist/server/pages-response-stage-entry.js +6 -7
- package/dist/server/pages-response-stage.d.ts +1 -3
- package/dist/server/pages-response-stage.js +2 -3
- package/dist/server/pages-revalidate.d.ts +1 -3
- package/dist/server/pages-revalidate.js +4 -5
- package/dist/server/pages-route-data-kind.d.ts +0 -2
- package/dist/server/pages-route-data-kind.js +1 -2
- package/dist/server/pages-router-entry.d.ts +0 -2
- package/dist/server/pages-router-entry.js +8 -9
- package/dist/server/pages-serializable-props.d.ts +1 -3
- package/dist/server/pages-serializable-props.js +1 -2
- package/dist/server/pregenerated-concrete-paths.d.ts +1 -3
- package/dist/server/pregenerated-concrete-paths.js +1 -2
- package/dist/server/prerender-cache-life-header.d.ts +0 -2
- package/dist/server/prerender-cache-life-header.js +2 -3
- package/dist/server/prerender-manifest.d.ts +1 -3
- package/dist/server/prerender-manifest.js +1 -2
- package/dist/server/prerender-route-params.d.ts +0 -2
- package/dist/server/prerender-route-params.js +3 -4
- package/dist/server/prerender-work-unit-setup.d.ts +1 -3
- package/dist/server/prerender-work-unit-setup.js +2 -3
- package/dist/server/prod-server-shutdown.d.ts +5 -0
- package/dist/server/prod-server-shutdown.js +47 -0
- package/dist/server/prod-server.d.ts +2 -4
- package/dist/server/prod-server.js +40 -43
- package/dist/server/proper-error.d.ts +1 -3
- package/dist/server/proper-error.js +1 -2
- package/dist/server/proxy-trust.d.ts +1 -3
- package/dist/server/proxy-trust.js +1 -2
- package/dist/server/remove-request-headers.d.ts +1 -3
- package/dist/server/remove-request-headers.js +1 -2
- package/dist/server/request-error-log.d.ts +1 -3
- package/dist/server/request-error-log.js +1 -2
- package/dist/server/request-log.d.ts +0 -2
- package/dist/server/request-log.js +1 -2
- package/dist/server/request-pipeline.d.ts +1 -3
- package/dist/server/request-pipeline.js +3 -4
- package/dist/server/request-stage.d.ts +1 -3
- package/dist/server/request-stage.js +1 -2
- package/dist/server/request-tracing.d.ts +5 -3
- package/dist/server/request-tracing.js +15 -8
- package/dist/server/response-compression.d.ts +1 -3
- package/dist/server/response-compression.js +1 -2
- package/dist/server/response-stage-cacheability.d.ts +3 -5
- package/dist/server/response-stage-cacheability.js +3 -4
- package/dist/server/response-stage-policy.d.ts +1 -3
- package/dist/server/response-stage-policy.js +2 -3
- package/dist/server/response-stage.d.ts +1 -3
- package/dist/server/response-stage.js +1 -2
- package/dist/server/response-start-tracing.d.ts +1 -3
- package/dist/server/response-start-tracing.js +2 -3
- package/dist/server/revalidation-host.d.ts +1 -3
- package/dist/server/revalidation-host.js +2 -3
- package/dist/server/revalidation-request.d.ts +0 -2
- package/dist/server/revalidation-request.js +1 -2
- package/dist/server/route-miss-response.d.ts +8 -0
- package/dist/server/route-miss-response.js +27 -0
- package/dist/server/rsc-completion-metadata.d.ts +1 -3
- package/dist/server/rsc-completion-metadata.js +1 -2
- package/dist/server/rsc-render-stream.d.ts +1 -3
- package/dist/server/rsc-render-stream.js +2 -3
- package/dist/server/seed-cache.d.ts +0 -2
- package/dist/server/seed-cache.js +3 -4
- package/dist/server/server-action-not-found.d.ts +6 -3
- package/dist/server/server-action-not-found.js +11 -3
- package/dist/server/server-globals.d.ts +1 -3
- package/dist/server/server-globals.js +1 -2
- package/dist/server/server-reference-loader.d.ts +1 -3
- package/dist/server/server-reference-loader.js +9 -6
- package/dist/server/shared-cache-identity.d.ts +1 -3
- package/dist/server/shared-cache-identity.js +2 -3
- package/dist/server/socket-error-backstop.d.ts +1 -3
- package/dist/server/socket-error-backstop.js +1 -2
- package/dist/server/srvx-middleware-origin.d.ts +1 -3
- package/dist/server/srvx-middleware-origin.js +1 -2
- package/dist/server/srvx-request-target.d.ts +1 -3
- package/dist/server/srvx-request-target.js +1 -2
- package/dist/server/static-file-cache.d.ts +0 -2
- package/dist/server/static-file-cache.js +1 -2
- package/dist/server/static-file-signal.d.ts +1 -3
- package/dist/server/static-file-signal.js +1 -2
- package/dist/server/streaming-metadata.d.ts +1 -3
- package/dist/server/streaming-metadata.js +1 -2
- package/dist/server/tracer.d.ts +1 -3
- package/dist/server/tracer.js +1 -2
- package/dist/server/worker-image-optimization.d.ts +2 -4
- package/dist/server/worker-image-optimization.js +5 -6
- package/dist/server/worker-prerender-discovery.d.ts +1 -3
- package/dist/server/worker-prerender-discovery.js +1 -2
- package/dist/server/worker-revalidation-context.d.ts +1 -3
- package/dist/server/worker-revalidation-context.js +1 -2
- package/dist/server/worker-stages.d.ts +1 -3
- package/dist/server/worker-stages.js +1 -2
- package/dist/server/worker-utils.d.ts +1 -3
- package/dist/server/worker-utils.js +1 -2
- package/dist/server/workers-tracing.d.ts +1 -3
- package/dist/server/workers-tracing.js +1 -2
- package/dist/shims/amp.d.ts +1 -3
- package/dist/shims/amp.js +1 -2
- package/dist/shims/app-router-navigation.d.ts +303 -0
- package/dist/shims/app-router-navigation.js +1559 -0
- package/dist/shims/app-router-scroll-state.d.ts +1 -3
- package/dist/shims/app-router-scroll-state.js +1 -2
- package/dist/shims/app-router-scroll.d.ts +1 -3
- package/dist/shims/app-router-scroll.js +2 -3
- package/dist/shims/app-router-tree-context.d.ts +12 -2
- package/dist/shims/app-router-tree-context.js +21 -6
- package/dist/shims/app.d.ts +0 -2
- package/dist/shims/app.js +1 -2
- package/dist/shims/before-interactive-context.d.ts +1 -3
- package/dist/shims/before-interactive-context.js +1 -2
- package/dist/shims/cache-adapter-instantiate.d.ts +1 -3
- package/dist/shims/cache-adapter-instantiate.js +1 -2
- package/dist/shims/cache-callable-runtime.d.ts +1 -3
- package/dist/shims/cache-callable-runtime.js +2 -3
- package/dist/shims/cache-flight-arguments.d.ts +1 -3
- package/dist/shims/cache-flight-arguments.js +1 -2
- package/dist/shims/cache-for-request.d.ts +1 -3
- package/dist/shims/cache-for-request.js +1 -2
- package/dist/shims/cache-handler.d.ts +0 -2
- package/dist/shims/cache-handler.js +1 -2
- package/dist/shims/cache-request-state.d.ts +0 -2
- package/dist/shims/cache-request-state.js +4 -5
- package/dist/shims/cache-runtime.d.ts +1 -3
- package/dist/shims/cache-runtime.js +21 -15
- package/dist/shims/cache.d.ts +2 -4
- package/dist/shims/cache.js +18 -11
- package/dist/shims/cacheability-classification.d.ts +3 -3
- package/dist/shims/cacheability-classification.js +9 -3
- package/dist/shims/caught-not-found-boundaries.d.ts +1 -3
- package/dist/shims/caught-not-found-boundaries.js +1 -2
- package/dist/shims/cdn-cache-state.d.ts +1 -3
- package/dist/shims/cdn-cache-state.js +1 -2
- package/dist/shims/cdn-cache.d.ts +1 -3
- package/dist/shims/cdn-cache.js +1 -2
- package/dist/shims/cdn-purge-routes.d.ts +0 -2
- package/dist/shims/cdn-purge-routes.js +1 -2
- package/dist/shims/client-hook-error.d.ts +1 -3
- package/dist/shims/client-hook-error.js +1 -2
- package/dist/shims/client-locale.d.ts +1 -3
- package/dist/shims/client-locale.js +1 -2
- package/dist/shims/client-page-root.d.ts +0 -2
- package/dist/shims/client-page-root.js +2 -3
- package/dist/shims/compat-router.d.ts +1 -3
- package/dist/shims/compat-router.js +1 -2
- package/dist/shims/config.d.ts +0 -2
- package/dist/shims/config.js +1 -2
- package/dist/shims/constants.d.ts +1 -3
- package/dist/shims/constants.js +1 -2
- package/dist/shims/default-forbidden.d.ts +1 -3
- package/dist/shims/default-forbidden.js +1 -2
- package/dist/shims/default-global-error.d.ts +0 -2
- package/dist/shims/default-global-error.js +1 -2
- package/dist/shims/default-not-found.d.ts +1 -3
- package/dist/shims/default-not-found.js +1 -2
- package/dist/shims/default-unauthorized.d.ts +1 -3
- package/dist/shims/default-unauthorized.js +1 -2
- package/dist/shims/disable-smooth-scroll.d.ts +1 -3
- package/dist/shims/disable-smooth-scroll.js +1 -2
- package/dist/shims/document-placeholders.d.ts +1 -3
- package/dist/shims/document-placeholders.js +1 -2
- package/dist/shims/document.d.ts +0 -2
- package/dist/shims/document.js +1 -2
- package/dist/shims/dynamic-preload-chunks.d.ts +1 -3
- package/dist/shims/dynamic-preload-chunks.js +2 -3
- package/dist/shims/dynamic.d.ts +0 -2
- package/dist/shims/dynamic.js +2 -17
- package/dist/shims/error-boundary-navigation.d.ts +1 -3
- package/dist/shims/error-boundary-navigation.js +4 -5
- package/dist/shims/error-boundary.d.ts +0 -2
- package/dist/shims/error-boundary.js +6 -7
- package/dist/shims/error.d.ts +0 -2
- package/dist/shims/error.js +5 -6
- package/dist/shims/error.react-server.d.ts +0 -2
- package/dist/shims/error.react-server.js +1 -2
- package/dist/shims/fetch-cache-state.d.ts +1 -3
- package/dist/shims/fetch-cache-state.js +1 -2
- package/dist/shims/fetch-cache.d.ts +0 -2
- package/dist/shims/fetch-cache.js +4 -5
- package/dist/shims/font-google-base.d.ts +0 -2
- package/dist/shims/font-google-base.js +2 -3
- package/dist/shims/font-local.d.ts +0 -2
- package/dist/shims/font-local.js +2 -3
- package/dist/shims/font-utils.d.ts +1 -3
- package/dist/shims/font-utils.js +1 -2
- package/dist/shims/form.d.ts +0 -2
- package/dist/shims/form.js +7 -8
- package/dist/shims/hash-scroll.d.ts +1 -3
- package/dist/shims/hash-scroll.js +1 -2
- package/dist/shims/head-state.d.ts +1 -3
- package/dist/shims/head-state.js +2 -3
- package/dist/shims/head.d.ts +11 -6
- package/dist/shims/head.js +23 -13
- package/dist/shims/headers.d.ts +15 -2
- package/dist/shims/headers.js +26 -6
- package/dist/shims/http-access-error-fallback.d.ts +1 -3
- package/dist/shims/http-access-error-fallback.js +1 -2
- package/dist/shims/i18n-context.d.ts +1 -3
- package/dist/shims/i18n-context.js +1 -2
- package/dist/shims/i18n-state.d.ts +1 -3
- package/dist/shims/i18n-state.js +2 -3
- package/dist/shims/image-config.d.ts +1 -3
- package/dist/shims/image-config.js +1 -2
- package/dist/shims/image-props.d.ts +1 -3
- package/dist/shims/image-props.js +1 -2
- package/dist/shims/image.d.ts +0 -2
- package/dist/shims/image.js +2 -3
- package/dist/shims/internal/als-registry.d.ts +1 -3
- package/dist/shims/internal/als-registry.js +1 -2
- package/dist/shims/internal/api-utils.d.ts +1 -3
- package/dist/shims/internal/app-page-props-cache-key.d.ts +1 -3
- package/dist/shims/internal/app-page-props-cache-key.js +1 -2
- package/dist/shims/internal/app-prefetch-fetch-queue.d.ts +1 -3
- package/dist/shims/internal/app-prefetch-fetch-queue.js +1 -2
- package/dist/shims/internal/app-prefetch-rsc-request.d.ts +1 -3
- package/dist/shims/internal/app-prefetch-rsc-request.js +1 -2
- package/dist/shims/internal/app-route-detection.d.ts +0 -2
- package/dist/shims/internal/app-route-detection.js +1 -2
- package/dist/shims/internal/app-route-prefetch-policy.d.ts +1 -3
- package/dist/shims/internal/app-route-prefetch-policy.js +3 -4
- package/dist/shims/internal/app-router-context.d.ts +1 -3
- package/dist/shims/internal/app-router-context.js +1 -2
- package/dist/shims/internal/cache-context-accessor.d.ts +0 -2
- package/dist/shims/internal/cache-context-accessor.js +1 -2
- package/dist/shims/internal/client-reference-loader.d.ts +0 -2
- package/dist/shims/internal/client-reference-loader.js +1 -2
- package/dist/shims/internal/cookie-serialize.d.ts +0 -2
- package/dist/shims/internal/cookie-serialize.js +1 -2
- package/dist/shims/internal/format-url-object.d.ts +1 -3
- package/dist/shims/internal/format-url-object.js +1 -2
- package/dist/shims/internal/headers-state.d.ts +1 -3
- package/dist/shims/internal/headers-state.js +1 -2
- package/dist/shims/internal/hybrid-client-route-owner-direct.d.ts +0 -2
- package/dist/shims/internal/hybrid-client-route-owner-direct.js +4 -5
- package/dist/shims/internal/hybrid-client-route-owner.d.ts +0 -2
- package/dist/shims/internal/hybrid-client-route-owner.js +3 -4
- package/dist/shims/internal/interpolate-as.d.ts +0 -2
- package/dist/shims/internal/interpolate-as.js +1 -2
- package/dist/shims/internal/link-status-registry.d.ts +1 -3
- package/dist/shims/internal/link-status-registry.js +1 -2
- package/dist/shims/internal/make-hanging-promise.d.ts +1 -3
- package/dist/shims/internal/make-hanging-promise.js +1 -2
- package/dist/shims/internal/navigation-untracked.d.ts +1 -3
- package/dist/shims/internal/navigation-untracked.js +2 -3
- package/dist/shims/internal/normalize-router-href.d.ts +1 -3
- package/dist/shims/internal/normalize-router-href.js +1 -2
- package/dist/shims/internal/pages-data-fetch-dedup.d.ts +1 -3
- package/dist/shims/internal/pages-data-fetch-dedup.js +2 -3
- package/dist/shims/internal/pages-data-target.d.ts +0 -2
- package/dist/shims/internal/pages-data-target.js +3 -4
- package/dist/shims/internal/pages-data-url.d.ts +0 -2
- package/dist/shims/internal/pages-data-url.js +1 -2
- package/dist/shims/internal/pages-router-accessor.d.ts +1 -3
- package/dist/shims/internal/pages-router-accessor.js +1 -2
- package/dist/shims/internal/pages-router-components.d.ts +1 -3
- package/dist/shims/internal/pages-router-components.js +1 -2
- package/dist/shims/internal/route-pattern-for-warning.d.ts +1 -3
- package/dist/shims/internal/route-pattern-for-warning.js +1 -2
- package/dist/shims/internal/router-context.d.ts +1 -3
- package/dist/shims/internal/router-context.js +1 -2
- package/dist/shims/internal/thenable-well-known-properties.d.ts +0 -2
- package/dist/shims/internal/thenable-well-known-properties.js +1 -2
- package/dist/shims/internal/utils.d.ts +1 -3
- package/dist/shims/internal/utils.js +1 -2
- package/dist/shims/internal/work-store-scope.d.ts +1 -3
- package/dist/shims/internal/work-store-scope.js +1 -2
- package/dist/shims/internal/work-unit-async-storage.d.ts +1 -3
- package/dist/shims/internal/work-unit-async-storage.js +1 -2
- package/dist/shims/layout-segment-context.d.ts +1 -3
- package/dist/shims/layout-segment-context.js +1 -2
- package/dist/shims/legacy-image.d.ts +0 -2
- package/dist/shims/legacy-image.js +1 -2
- package/dist/shims/link-prefetch.d.ts +1 -3
- package/dist/shims/link-prefetch.js +1 -2
- package/dist/shims/link.d.ts +0 -2
- package/dist/shims/link.js +55 -56
- package/dist/shims/metadata.d.ts +0 -2
- package/dist/shims/metadata.js +2 -3
- package/dist/shims/navigation-context-accessors.d.ts +1 -3
- package/dist/shims/navigation-context-accessors.js +1 -2
- package/dist/shims/navigation-context-state.d.ts +1 -3
- package/dist/shims/navigation-context-state.js +1 -2
- package/dist/shims/navigation-errors.d.ts +0 -2
- package/dist/shims/navigation-errors.js +1 -2
- package/dist/shims/navigation-state.d.ts +1 -3
- package/dist/shims/navigation-state.js +3 -4
- package/dist/shims/navigation.d.ts +6 -323
- package/dist/shims/navigation.js +14 -1603
- package/dist/shims/navigation.react-server.d.ts +2 -4
- package/dist/shims/navigation.react-server.js +2 -3
- package/dist/shims/offline.d.ts +1 -3
- package/dist/shims/offline.js +1 -2
- package/dist/shims/og.d.ts +0 -2
- package/dist/shims/og.js +1 -2
- package/dist/shims/pages-router-runtime.d.ts +0 -2
- package/dist/shims/pages-router-runtime.js +1 -2
- package/dist/shims/ppr-fallback-shell.d.ts +0 -2
- package/dist/shims/ppr-fallback-shell.js +2 -3
- package/dist/shims/public-shim-map.json.js +1 -2
- package/dist/shims/readonly-url-search-params.d.ts +1 -3
- package/dist/shims/readonly-url-search-params.js +1 -2
- package/dist/shims/request-context.d.ts +7 -3
- package/dist/shims/request-context.js +1 -2
- package/dist/shims/request-state-types.d.ts +7 -7
- package/dist/shims/root-params.d.ts +1 -3
- package/dist/shims/root-params.js +2 -3
- package/dist/shims/router-state.d.ts +1 -3
- package/dist/shims/router-state.js +3 -4
- package/dist/shims/router.d.ts +1 -3
- package/dist/shims/router.js +32 -33
- package/dist/shims/script-nonce-context.d.ts +1 -3
- package/dist/shims/script-nonce-context.js +1 -2
- package/dist/shims/script.d.ts +0 -2
- package/dist/shims/script.js +3 -4
- package/dist/shims/search-params-gate.d.ts +1 -3
- package/dist/shims/search-params-gate.js +1 -2
- package/dist/shims/server.d.ts +0 -2
- package/dist/shims/server.js +14 -8
- package/dist/shims/slot.d.ts +1 -3
- package/dist/shims/slot.js +3 -4
- package/dist/shims/streamed-icons.d.ts +1 -3
- package/dist/shims/streamed-icons.js +1 -2
- package/dist/shims/thenable-params.d.ts +1 -3
- package/dist/shims/thenable-params.js +1 -2
- package/dist/shims/unified-request-context.d.ts +6 -2
- package/dist/shims/unified-request-context.js +3 -2
- package/dist/shims/unrecognized-action-error.d.ts +1 -3
- package/dist/shims/unrecognized-action-error.js +1 -2
- package/dist/shims/url-safety.d.ts +1 -3
- package/dist/shims/url-safety.js +1 -2
- package/dist/shims/url-utils.d.ts +1 -3
- package/dist/shims/url-utils.js +2 -3
- package/dist/shims/use-merged-ref.d.ts +1 -3
- package/dist/shims/use-merged-ref.js +1 -2
- package/dist/shims/user-agent.d.ts +1 -3
- package/dist/shims/user-agent.js +1 -2
- package/dist/shims/web-vitals.d.ts +0 -2
- package/dist/shims/web-vitals.js +1 -2
- package/dist/typegen.d.ts +0 -2
- package/dist/typegen.js +3 -4
- package/dist/utils/asset-prefix.d.ts +1 -3
- package/dist/utils/asset-prefix.js +1 -2
- package/dist/utils/base-path.d.ts +1 -3
- package/dist/utils/base-path.js +1 -2
- package/dist/utils/built-asset-url.d.ts +1 -3
- package/dist/utils/built-asset-url.js +1 -2
- package/dist/utils/cache-control-metadata.d.ts +1 -3
- package/dist/utils/cache-control-metadata.js +1 -2
- package/dist/utils/cache-life-profiles.d.ts +1 -3
- package/dist/utils/cache-life-profiles.js +1 -2
- package/dist/utils/client-build-manifest.d.ts +0 -2
- package/dist/utils/client-build-manifest.js +2 -3
- package/dist/utils/client-entry-manifest.d.ts +1 -3
- package/dist/utils/client-entry-manifest.js +2 -3
- package/dist/utils/client-reference-chunks.d.ts +1 -3
- package/dist/utils/client-reference-chunks.js +1 -2
- package/dist/utils/client-runtime-metadata.d.ts +0 -2
- package/dist/utils/client-runtime-metadata.js +4 -5
- package/dist/utils/commonjs-loader.d.ts +1 -3
- package/dist/utils/commonjs-loader.js +1 -2
- package/dist/utils/compare.d.ts +1 -3
- package/dist/utils/compare.js +1 -2
- package/dist/utils/deployment-id.d.ts +1 -3
- package/dist/utils/deployment-id.js +1 -2
- package/dist/utils/dev-error-recovery-event.d.ts +1 -3
- package/dist/utils/dev-error-recovery-event.js +1 -2
- package/dist/utils/dev-stack-sourcemap-endpoint.d.ts +1 -3
- package/dist/utils/dev-stack-sourcemap-endpoint.js +1 -2
- package/dist/utils/domain-locale.d.ts +1 -3
- package/dist/utils/domain-locale.js +1 -2
- package/dist/utils/encode-cache-tag.d.ts +1 -3
- package/dist/utils/encode-cache-tag.js +1 -2
- package/dist/utils/error-cause.d.ts +1 -3
- package/dist/utils/error-cause.js +1 -2
- package/dist/utils/external-url.d.ts +1 -3
- package/dist/utils/external-url.js +1 -2
- package/dist/utils/has-trailing-comma.d.ts +1 -3
- package/dist/utils/has-trailing-comma.js +1 -2
- package/dist/utils/hash.d.ts +1 -3
- package/dist/utils/hash.js +1 -2
- package/dist/utils/html-limited-bots.d.ts +1 -3
- package/dist/utils/html-limited-bots.js +1 -2
- package/dist/utils/lazy-chunks.d.ts +1 -3
- package/dist/utils/lazy-chunks.js +1 -2
- package/dist/utils/manifest-paths.d.ts +1 -3
- package/dist/utils/manifest-paths.js +1 -2
- package/dist/utils/mdx-scan.d.ts +1 -3
- package/dist/utils/mdx-scan.js +1 -2
- package/dist/utils/middleware-request-headers.d.ts +0 -2
- package/dist/utils/middleware-request-headers.js +1 -2
- package/dist/utils/navigation-signal.d.ts +1 -3
- package/dist/utils/navigation-signal.js +1 -2
- package/dist/utils/number.d.ts +1 -3
- package/dist/utils/number.js +1 -2
- package/dist/utils/package-name.d.ts +1 -3
- package/dist/utils/package-name.js +1 -2
- package/dist/utils/parse-cookie.d.ts +1 -3
- package/dist/utils/parse-cookie.js +1 -2
- package/dist/utils/path-to-regexp.d.ts +1 -3
- package/dist/utils/path-to-regexp.js +1 -2
- package/dist/utils/path.d.ts +1 -3
- package/dist/utils/path.js +1 -2
- package/dist/utils/plugin-options.d.ts +1 -3
- package/dist/utils/plugin-options.js +1 -2
- package/dist/utils/plugin-react-version.d.ts +1 -3
- package/dist/utils/plugin-react-version.js +1 -2
- package/dist/utils/plugin-rsc-version.d.ts +1 -3
- package/dist/utils/plugin-rsc-version.js +1 -2
- package/dist/utils/precompressed-variant.d.ts +1 -3
- package/dist/utils/precompressed-variant.js +1 -2
- package/dist/utils/prerender-output-paths.d.ts +10 -3
- package/dist/utils/prerender-output-paths.js +18 -4
- package/dist/utils/project.d.ts +0 -2
- package/dist/utils/project.js +2 -3
- package/dist/utils/promise.d.ts +1 -3
- package/dist/utils/promise.js +1 -2
- package/dist/utils/protocol-headers.d.ts +1 -3
- package/dist/utils/protocol-headers.js +1 -2
- package/dist/utils/public-file-path.d.ts +1 -3
- package/dist/utils/public-file-path.js +1 -2
- package/dist/utils/public-routes.d.ts +1 -3
- package/dist/utils/public-routes.js +1 -2
- package/dist/utils/query.d.ts +0 -2
- package/dist/utils/query.js +1 -2
- package/dist/utils/react-compiler-support.d.ts +1 -3
- package/dist/utils/react-compiler-support.js +1 -2
- package/dist/utils/react-version.d.ts +1 -3
- package/dist/utils/react-version.js +1 -2
- package/dist/utils/record.d.ts +1 -3
- package/dist/utils/record.js +1 -2
- package/dist/utils/redirect-digest.d.ts +1 -3
- package/dist/utils/redirect-digest.js +1 -2
- package/dist/utils/regex.d.ts +1 -3
- package/dist/utils/regex.js +1 -2
- package/dist/utils/safe-json-file.d.ts +1 -3
- package/dist/utils/safe-json-file.js +1 -2
- package/dist/utils/text-stream.d.ts +1 -3
- package/dist/utils/text-stream.js +1 -2
- package/dist/utils/vinext-root.d.ts +1 -3
- package/dist/utils/vinext-root.js +1 -2
- package/dist/utils/virtual-module.d.ts +1 -3
- package/dist/utils/virtual-module.js +0 -0
- package/dist/utils/vite-cli-invocation.d.ts +0 -2
- package/dist/utils/vite-cli-invocation.js +1 -2
- package/dist/utils/vite-version.d.ts +1 -3
- package/dist/utils/vite-version.js +1 -2
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/shims/app-router-scroll-state.d.ts
|
|
2
1
|
export type AppRouterScrollIntent = Readonly<{
|
|
3
2
|
commitId: number | null;
|
|
4
3
|
hash: string | null;
|
|
@@ -12,5 +11,4 @@ export declare function getPendingAppRouterScrollIntent(): AppRouterScrollIntent
|
|
|
12
11
|
export declare function isLatestAppRouterScrollIntent(expected: AppRouterScrollIntent | null | undefined): boolean;
|
|
13
12
|
export declare function claimAppRouterScrollIntentForCommit(expected: AppRouterScrollIntent | null | undefined, commitId: number): void;
|
|
14
13
|
export declare function markAppRouterScrollIntentHeadHoisted(expected: AppRouterScrollIntent | null | undefined, commitId: number): void;
|
|
15
|
-
export declare function consumeAppRouterScrollIntent(expected: AppRouterScrollIntent | null | undefined, commitId?: number): AppRouterScrollIntent | null;
|
|
16
|
-
//#endregion
|
|
14
|
+
export declare function consumeAppRouterScrollIntent(expected: AppRouterScrollIntent | null | undefined, commitId?: number): AppRouterScrollIntent | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/shims/app-router-scroll-state.ts
|
|
2
2
|
const _SCROLL_INTENT_KEY = Symbol.for("vinext.appRouterScrollIntent");
|
|
3
3
|
function getScrollIntentStore() {
|
|
4
4
|
const globalState = globalThis;
|
|
@@ -63,5 +63,4 @@ function consumeAppRouterScrollIntent(expected, commitId) {
|
|
|
63
63
|
store.pending = null;
|
|
64
64
|
return intent;
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
export { beginAppRouterScrollIntent, claimAppRouterScrollIntentForCommit, clearAppRouterScrollIntent, consumeAppRouterScrollIntent, getPendingAppRouterScrollIntent, isLatestAppRouterScrollIntent, markAppRouterScrollIntentHeadHoisted };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/shims/app-router-scroll.d.ts
|
|
3
2
|
export declare class AppRouterScrollTargetInner extends React$1.Component<{
|
|
4
3
|
children: React$1.ReactNode;
|
|
5
4
|
commitId: number | null;
|
|
@@ -18,5 +17,4 @@ export declare function AppRouterScrollCommitProvider({ children, commitId }: {
|
|
|
18
17
|
}): React$1.JSX.Element;
|
|
19
18
|
export declare function AppRouterScrollTarget({ children }: {
|
|
20
19
|
children: React$1.ReactNode;
|
|
21
|
-
}): React$1.JSX.Element;
|
|
22
|
-
//#endregion
|
|
20
|
+
}): React$1.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { consumeAppRouterScrollIntent, getPendingAppRouterScrollIntent, markAppRouterScrollIntentHeadHoisted } from "./app-router-scroll-state.js";
|
|
2
3
|
import { disableSmoothScrollDuringRouteTransition } from "./disable-smooth-scroll.js";
|
|
3
4
|
import { decodeHashFragment } from "./hash-scroll.js";
|
|
4
|
-
import { consumeAppRouterScrollIntent, getPendingAppRouterScrollIntent, markAppRouterScrollIntentHeadHoisted } from "./app-router-scroll-state.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
|
-
|
|
8
|
+
// src/shims/app-router-scroll.tsx
|
|
9
9
|
const AppRouterScrollCommitContext = React$1.createContext(null);
|
|
10
10
|
const reactDomInternalsKey = "__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE";
|
|
11
11
|
const rectProperties = [
|
|
@@ -142,5 +142,4 @@ function AppRouterScrollTarget({ children }) {
|
|
|
142
142
|
children
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
//#endregion
|
|
146
145
|
export { AppRouterScrollCommitProvider, AppRouterScrollTarget, AppRouterScrollTargetInner };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
//#region src/shims/app-router-tree-context.d.ts
|
|
3
2
|
export declare const AppRouterTreeContext: React.Context<boolean> | null;
|
|
4
3
|
export declare function withAppRouterTree(children: React.ReactElement): React.ReactElement;
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Whether the calling component renders in an App Router tree. RSC renders the
|
|
6
|
+
* App Router only, and react-server has no context support. On the server,
|
|
7
|
+
* the App Router SSR entry marks its tree; in the browser, App Router
|
|
8
|
+
* documents set `window.next.appDir` before anything renders, which also
|
|
9
|
+
* covers separate client roots (e.g. a modal rendered with createRoot).
|
|
10
|
+
* Everything else (Pages Router pages, `pages/_document`, ad-hoc
|
|
11
|
+
* react-dom/server renders) reads false: there, next/dynamic keeps its
|
|
12
|
+
* boundary (Pages next/dynamic is react-loadable, which never suspends) and
|
|
13
|
+
* next/head manages the document head.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useIsAppRouterTree(): boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/shims/app-router-tree-context.ts
|
|
3
3
|
/**
|
|
4
4
|
* Marks an App Router server render tree. The App Router SSR entry provides
|
|
5
5
|
* `true` at its root; every other server tree (Pages Router pages,
|
|
6
6
|
* `pages/_document`, ad-hoc react-dom/server renders) reads the `false`
|
|
7
|
-
* default. Lets shared shims such as next/dynamic apply App
|
|
8
|
-
* only where Next.js does. In the browser, `window.next.appDir`
|
|
9
|
-
* when the App Router browser entry loads) identifies App Router
|
|
7
|
+
* default. Lets shared shims such as next/dynamic and next/head apply App
|
|
8
|
+
* Router semantics only where Next.js does. In the browser, `window.next.appDir`
|
|
9
|
+
* (installed when the App Router browser entry loads) identifies App Router
|
|
10
|
+
* documents.
|
|
10
11
|
*
|
|
11
12
|
* Stored on a global symbol so duplicate module instances share one context,
|
|
12
13
|
* and null in react-server, which has no createContext (RSC is App Router
|
|
@@ -23,5 +24,19 @@ const AppRouterTreeContext = getAppRouterTreeContext();
|
|
|
23
24
|
function withAppRouterTree(children) {
|
|
24
25
|
return AppRouterTreeContext ? React.createElement(AppRouterTreeContext.Provider, { value: true }, children) : children;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Whether the calling component renders in an App Router tree. RSC renders the
|
|
29
|
+
* App Router only, and react-server has no context support. On the server,
|
|
30
|
+
* the App Router SSR entry marks its tree; in the browser, App Router
|
|
31
|
+
* documents set `window.next.appDir` before anything renders, which also
|
|
32
|
+
* covers separate client roots (e.g. a modal rendered with createRoot).
|
|
33
|
+
* Everything else (Pages Router pages, `pages/_document`, ad-hoc
|
|
34
|
+
* react-dom/server renders) reads false: there, next/dynamic keeps its
|
|
35
|
+
* boundary (Pages next/dynamic is react-loadable, which never suspends) and
|
|
36
|
+
* next/head manages the document head.
|
|
37
|
+
*/
|
|
38
|
+
function useIsAppRouterTree() {
|
|
39
|
+
if (typeof window !== "undefined") return window.next?.appDir === true;
|
|
40
|
+
return AppRouterTreeContext ? React.use(AppRouterTreeContext) : true;
|
|
41
|
+
}
|
|
42
|
+
export { AppRouterTreeContext, useIsAppRouterTree, withAppRouterTree };
|
package/dist/shims/app.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ComponentType } from "react";
|
|
2
|
-
//#region src/shims/app.d.ts
|
|
3
2
|
export type AppProps<P = any> = {
|
|
4
3
|
Component: ComponentType<P> & {
|
|
5
4
|
getInitialProps?: (ctx: any) => any;
|
|
@@ -34,5 +33,4 @@ export default class App<P = any, CP = any, S = any> extends React.Component<P &
|
|
|
34
33
|
static getInitialProps: typeof appGetInitialProps;
|
|
35
34
|
render(): React.ReactElement;
|
|
36
35
|
}
|
|
37
|
-
//#endregion
|
|
38
36
|
export {};
|
package/dist/shims/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/shims/app.tsx
|
|
4
4
|
/**
|
|
5
5
|
* next/app shim
|
|
6
6
|
*
|
|
@@ -44,5 +44,4 @@ var App = class extends React.Component {
|
|
|
44
44
|
return /* @__PURE__ */ jsx(Component, { ...pageProps });
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
//#endregion
|
|
48
47
|
export { App as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
//#region src/shims/before-interactive-context.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A `<Script strategy="beforeInteractive">` captured during SSR.
|
|
5
4
|
*
|
|
@@ -37,5 +36,4 @@ export type BeforeInteractiveInlineScript = {
|
|
|
37
36
|
};
|
|
38
37
|
export type RegisterBeforeInteractiveInlineScript = (script: BeforeInteractiveInlineScript) => void;
|
|
39
38
|
export declare const BeforeInteractiveContext: React.Context<RegisterBeforeInteractiveInlineScript | null>;
|
|
40
|
-
export declare function useBeforeInteractiveRegister(): RegisterBeforeInteractiveInlineScript | null;
|
|
41
|
-
//#endregion
|
|
39
|
+
export declare function useBeforeInteractiveRegister(): RegisterBeforeInteractiveInlineScript | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/shims/before-interactive-context.tsx
|
|
3
3
|
const BeforeInteractiveContext = React.createContext(null);
|
|
4
4
|
function useBeforeInteractiveRegister() {
|
|
5
5
|
return React.useContext(BeforeInteractiveContext);
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { BeforeInteractiveContext, useBeforeInteractiveRegister };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/shims/cache-adapter-instantiate.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Instantiate a declaratively configured cache adapter from its module's
|
|
4
3
|
* default export. The generated `virtual:vinext-cache-adapters` module calls
|
|
@@ -46,5 +45,4 @@ export declare function isConstructor(value: unknown): boolean;
|
|
|
46
45
|
* also starts with that word.
|
|
47
46
|
*/
|
|
48
47
|
export declare function isClassExport(value: unknown): boolean;
|
|
49
|
-
export declare function instantiateCacheAdapter<T>(exported: unknown, args: CacheAdapterFactoryArgs, slot: CacheAdapterSlot): T;
|
|
50
|
-
//#endregion
|
|
48
|
+
export declare function instantiateCacheAdapter<T>(exported: unknown, args: CacheAdapterFactoryArgs, slot: CacheAdapterSlot): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/shims/cache-adapter-instantiate.ts
|
|
2
2
|
const REQUIREMENTS = {
|
|
3
3
|
data: {
|
|
4
4
|
methods: [
|
|
@@ -114,5 +114,4 @@ function instantiateCacheAdapter(exported, args, slot) {
|
|
|
114
114
|
if (problems.length > 0) throw new TypeError(`${label}: the adapter produced by the default export is missing ${problems.join(", ")}. ${requirements.description}`);
|
|
115
115
|
return adapter;
|
|
116
116
|
}
|
|
117
|
-
//#endregion
|
|
118
117
|
export { instantiateCacheAdapter, isClassExport, isConstructor };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { VinextCacheFunctionInvocation } from "../server/multi-stage.js";
|
|
2
1
|
import { RegisterCachedFunctionOptions } from "./cache-runtime.js";
|
|
3
|
-
|
|
2
|
+
import { VinextCacheFunctionInvocation } from "../server/multi-stage.js";
|
|
4
3
|
declare const CACHE_CAPTURE_TYPE = "use-cache-captures";
|
|
5
4
|
type CacheCaptureEnvelope = {
|
|
6
5
|
type: typeof CACHE_CAPTURE_TYPE;
|
|
@@ -12,5 +11,4 @@ export declare function registerCachedFunction<TArgs extends unknown[], TResult>
|
|
|
12
11
|
}): (...args: TArgs) => Promise<TResult>;
|
|
13
12
|
/** Replay the persisted payload without re-reading or re-encoding caller objects. */
|
|
14
13
|
export declare function invokeCacheFunction(invocation: VinextCacheFunctionInvocation, loadServerAction: (id: string) => Promise<unknown>): Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
14
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { restoreFlightReply, snapshotFlightReply } from "./cache-flight-arguments.js";
|
|
2
1
|
import { isUseCacheFunction, memoizeInCacheScope, registerCachedFunction as registerCachedFunction$1, replayCachedFunction } from "./cache-runtime.js";
|
|
2
|
+
import { restoreFlightReply, snapshotFlightReply } from "./cache-flight-arguments.js";
|
|
3
3
|
import { decryptActionBoundArgs, encryptActionBoundArgs } from "@vitejs/plugin-rsc/utils/encryption-runtime";
|
|
4
4
|
import { createFromReadableStream, renderToReadableStream } from "@vitejs/plugin-rsc/react/rsc";
|
|
5
|
-
|
|
5
|
+
// src/shims/cache-callable-runtime.ts
|
|
6
6
|
const CACHE_CAPTURE_TYPE = "use-cache-captures";
|
|
7
7
|
async function encryptArguments(value) {
|
|
8
8
|
return encryptActionBoundArgs(JSON.stringify(value));
|
|
@@ -77,5 +77,4 @@ async function invokeCacheFunction(invocation, loadServerAction) {
|
|
|
77
77
|
if (!isUseCacheFunction(fn)) throw new Error(`Server reference ${invocation.referenceId} is not a cache function`);
|
|
78
78
|
await replayCachedFunction(fn, await decryptArguments(invocation.encryptedArgs));
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { encryptCacheCaptures, invokeCacheFunction, registerCachedFunction };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/shims/cache-flight-arguments.d.ts
|
|
2
1
|
/** The persisted argument transport. React owns the object graph and wire protocol. */
|
|
3
2
|
export type CacheFlightArguments = {
|
|
4
3
|
version: 1;
|
|
@@ -18,5 +17,4 @@ export declare function restoreFlightReply(args: CacheFlightArguments): string |
|
|
|
18
17
|
* cache hit must resolve before React flushes the shell, and an async digest
|
|
19
18
|
* waits for a later event-loop turn.
|
|
20
19
|
*/
|
|
21
|
-
export declare function flightArgumentsKey(args: CacheFlightArguments): string;
|
|
22
|
-
//#endregion
|
|
20
|
+
export declare function flightArgumentsKey(args: CacheFlightArguments): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/shims/cache-flight-arguments.ts
|
|
3
3
|
const blobType = Object.getOwnPropertyDescriptor(Blob.prototype, "type").get;
|
|
4
4
|
const fileName = Object.getOwnPropertyDescriptor(File.prototype, "name").get;
|
|
5
5
|
const fileTime = Object.getOwnPropertyDescriptor(File.prototype, "lastModified").get;
|
|
@@ -52,5 +52,4 @@ function flightArgumentsKey(args) {
|
|
|
52
52
|
reply
|
|
53
53
|
})).digest("base64url");
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { flightArgumentsKey, restoreFlightReply, snapshotFlightReply };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/shims/cache-for-request.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Cache a factory function's result for the duration of a request.
|
|
4
3
|
*
|
|
@@ -52,5 +51,4 @@
|
|
|
52
51
|
* factories. Async factories that reject have their cache cleared, allowing retry.
|
|
53
52
|
* @returns A function with the same return type that caches the result per request.
|
|
54
53
|
*/
|
|
55
|
-
export declare function cacheForRequest<T>(factory: () => T): () => T;
|
|
56
|
-
//#endregion
|
|
54
|
+
export declare function cacheForRequest<T>(factory: () => T): () => T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRequestContext, isInsideUnifiedScope } from "./unified-request-context.js";
|
|
2
|
-
|
|
2
|
+
// src/shims/cache-for-request.ts
|
|
3
3
|
/**
|
|
4
4
|
* Cache a factory function's result for the duration of a request.
|
|
5
5
|
*
|
|
@@ -68,5 +68,4 @@ function cacheForRequest(factory) {
|
|
|
68
68
|
return value;
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { cacheForRequest };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RenderObservation } from "../server/cache-proof.js";
|
|
2
|
-
//#region src/shims/cache-handler.d.ts
|
|
3
2
|
export type CacheHandlerValue = {
|
|
4
3
|
lastModified: number;
|
|
5
4
|
age?: number;
|
|
@@ -125,5 +124,4 @@ export declare function registerLazyDataCacheHandler(load: () => Promise<void>):
|
|
|
125
124
|
export declare function getDataCacheHandler(): CacheHandler;
|
|
126
125
|
export declare function setCacheHandler(handler: CacheHandler): void;
|
|
127
126
|
export declare function getCacheHandler(): CacheHandler;
|
|
128
|
-
//#endregion
|
|
129
127
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shareIsolatePromise } from "../server/isolate-shared-promise.js";
|
|
2
2
|
import { readCacheControlNumberField, readCacheControlRevalidateField, readCacheTimestamp } from "../utils/cache-control-metadata.js";
|
|
3
|
-
|
|
3
|
+
// src/shims/cache-handler.ts
|
|
4
4
|
var NoOpCacheHandler = class {
|
|
5
5
|
async get(_key, _ctx) {
|
|
6
6
|
return null;
|
|
@@ -256,5 +256,4 @@ function setCacheHandler(handler) {
|
|
|
256
256
|
function getCacheHandler() {
|
|
257
257
|
return getDataCacheHandler();
|
|
258
258
|
}
|
|
259
|
-
//#endregion
|
|
260
259
|
export { MemoryCacheHandler, NoOpCacheHandler, configureMemoryCacheHandler, getCacheHandler, getDataCacheHandler, registerDataCacheHandler, registerLazyDataCacheHandler, setCacheHandler, setDataCacheHandler };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CacheLifeConfig } from "../utils/cache-life-profiles.js";
|
|
2
2
|
import { _recordUseCacheRootParamRead, _registerCacheContextAccessor, getRegisteredCacheContext } from "./internal/cache-context-accessor.js";
|
|
3
|
-
//#region src/shims/cache-request-state.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The built-in profiles merged with next.config `cacheLife`, baked in at
|
|
6
5
|
* build time like Next.js's `process.env.__NEXT_CACHE_LIFE` define.
|
|
@@ -120,5 +119,4 @@ export declare function _captureRequestScopedCacheLifeAccessors(): {
|
|
|
120
119
|
*/
|
|
121
120
|
export declare function runWithDetachedCacheObservations<T>(fn: () => Promise<T>): Promise<T>;
|
|
122
121
|
export declare function shouldServeStaleUnstableCacheEntry(): boolean;
|
|
123
|
-
//#endregion
|
|
124
122
|
export { type CacheLifeConfig, _recordUseCacheRootParamRead, _registerCacheContextAccessor, getRegisteredCacheContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getOrCreateAls } from "./internal/als-registry.js";
|
|
2
|
-
import { getRequestContext, isInsideUnifiedScope, runWithUnifiedStateMutation } from "./unified-request-context.js";
|
|
3
|
-
import { parseCacheLifeProfiles } from "../utils/cache-life-profiles.js";
|
|
4
1
|
import { getCdnCacheAdapter } from "./cdn-cache.js";
|
|
2
|
+
import { parseCacheLifeProfiles } from "../utils/cache-life-profiles.js";
|
|
5
3
|
import { getHeadersAccessPhase } from "./internal/headers-state.js";
|
|
4
|
+
import { getOrCreateAls } from "./internal/als-registry.js";
|
|
5
|
+
import { getRequestContext, isInsideUnifiedScope, runWithUnifiedStateMutation } from "./unified-request-context.js";
|
|
6
6
|
import { _recordUseCacheRootParamRead, _registerCacheContextAccessor, getRegisteredCacheContext } from "./internal/cache-context-accessor.js";
|
|
7
|
-
|
|
7
|
+
// src/shims/cache-request-state.ts
|
|
8
8
|
/**
|
|
9
9
|
* The built-in profiles merged with next.config `cacheLife`, baked in at
|
|
10
10
|
* build time like Next.js's `process.env.__NEXT_CACHE_LIFE` define.
|
|
@@ -249,5 +249,4 @@ function runWithDetachedCacheObservations(fn) {
|
|
|
249
249
|
function shouldServeStaleUnstableCacheEntry() {
|
|
250
250
|
return getCacheState().unstableCacheRevalidation === "background";
|
|
251
251
|
}
|
|
252
|
-
//#endregion
|
|
253
252
|
export { ACTION_DID_REVALIDATE_DYNAMIC_ONLY, ACTION_DID_REVALIDATE_STATIC_AND_DYNAMIC, _captureRequestScopedCacheLifeAccessors, _consumeRequestScopedCacheLife, _drainPendingRevalidations, _hasPendingRevalidatedTag, _initRequestScopedCacheState, _isOnDemandRevalidate, _markPendingRevalidatedTag, _peekRequestScopedCacheLife, _queuePendingCdnTagInvalidation, _queuePendingRevalidation, _recordUseCacheRootParamRead, _registerCacheContextAccessor, _revalidateCdnTags, _runWithCacheState, _setRequestScopedCacheLife, cacheLifeProfiles, getAndClearActionRevalidationKind, getRegisteredCacheContext, markActionRevalidation, runWithDetachedCacheObservations, shouldServeStaleUnstableCacheEntry };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CacheLifeConfig } from "../utils/cache-life-profiles.js";
|
|
2
2
|
import { CacheFlightArguments } from "./cache-flight-arguments.js";
|
|
3
|
-
//#region src/shims/cache-runtime.d.ts
|
|
4
3
|
export declare function replayCachedFunction(fn: object, args: CacheFlightArguments): Promise<unknown>;
|
|
5
4
|
/**
|
|
6
5
|
* Used purely as `cause` for the nested-dynamic cache error: its captured stack
|
|
@@ -101,5 +100,4 @@ export declare function registerCachedFunction<TArgs extends unknown[], TResult>
|
|
|
101
100
|
/** Memoize in one React render without skipping cache guards or scoped serialization. */
|
|
102
101
|
export declare function memoizeInCacheScope<TArgs extends unknown[], TResult>(fn: (...args: TArgs) => TResult): (...args: TArgs) => TResult;
|
|
103
102
|
/** Whether a loaded server reference is a transformed `"use cache"` function. */
|
|
104
|
-
export declare function isUseCacheFunction(value: unknown): value is (...args: unknown[]) => Promise<unknown>;
|
|
105
|
-
//#endregion
|
|
103
|
+
export declare function isUseCacheFunction(value: unknown): value is (...args: unknown[]) => Promise<unknown>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { getOrCreateAls } from "./internal/als-registry.js";
|
|
2
|
-
import { getRequestContext, isInsideUnifiedScope, runWithUnifiedStateMutation } from "./unified-request-context.js";
|
|
3
|
-
import { VINEXT_RSC_MARKER_HEADER } from "../server/headers.js";
|
|
4
|
-
import { isInsideWorkStoreScope } from "./internal/work-store-scope.js";
|
|
5
|
-
import { workUnitAsyncStorage } from "./internal/work-unit-async-storage.js";
|
|
6
|
-
import { isRouteCacheabilityProbe, recordRouteCacheabilityProbeBailout } from "./cacheability-classification.js";
|
|
7
|
-
import { shareIsolatePromise } from "../server/isolate-shared-promise.js";
|
|
8
1
|
import { getDataCacheHandler } from "./cache-handler.js";
|
|
9
|
-
import { addCollectedRequestTags, getCurrentFetchSoftTags, runWithDetachedFetchObservations } from "./fetch-cache-state.js";
|
|
10
|
-
import { suppressHangingPromiseAbortRejections } from "./internal/make-hanging-promise.js";
|
|
11
|
-
import { createPprFallbackShellSuspensePromise, trackPprFallbackShellCacheTask } from "./ppr-fallback-shell.js";
|
|
12
|
-
import { createUseCacheAccessError, markDynamicUsage, recordInvalidDynamicUsageError } from "./internal/headers-state.js";
|
|
13
|
-
import { isDraftModeEnabled } from "./headers.js";
|
|
14
|
-
import { _registerCacheContextAccessor } from "./internal/cache-context-accessor.js";
|
|
15
2
|
import { _hasPendingRevalidatedTag, _isOnDemandRevalidate, _setRequestScopedCacheLife, cacheLifeProfiles, runWithDetachedCacheObservations, shouldServeStaleUnstableCacheEntry } from "./cache-request-state.js";
|
|
3
|
+
import { VINEXT_RSC_MARKER_HEADER } from "../server/headers.js";
|
|
16
4
|
import "./fetch-cache.js";
|
|
5
|
+
import { getOrCreateAls } from "./internal/als-registry.js";
|
|
17
6
|
import { isWellKnownProperty } from "./internal/thenable-well-known-properties.js";
|
|
7
|
+
import { createUseCacheAccessError, markDynamicUsage, recordInvalidDynamicUsageError } from "./internal/headers-state.js";
|
|
8
|
+
import { getRequestContext, isInsideUnifiedScope, runWithUnifiedStateMutation } from "./unified-request-context.js";
|
|
9
|
+
import { addCollectedRequestTags, getCurrentFetchSoftTags, runWithDetachedFetchObservations } from "./fetch-cache-state.js";
|
|
10
|
+
import { isDraftModeEnabled } from "./headers.js";
|
|
18
11
|
import { getFallbackParamsSnapshot, restoreThenableParams } from "./thenable-params.js";
|
|
12
|
+
import { createPprFallbackShellSuspensePromise, trackPprFallbackShellCacheTask } from "./ppr-fallback-shell.js";
|
|
19
13
|
import { hasUseCacheLayoutMarker, hasUseCachePageMarker, isUseCacheFunctionReference, withoutUseCacheSegmentMarker } from "./internal/app-page-props-cache-key.js";
|
|
14
|
+
import { _registerCacheContextAccessor } from "./internal/cache-context-accessor.js";
|
|
20
15
|
import { getCurrentRootParams } from "./root-params.js";
|
|
16
|
+
import { isRouteCacheabilityProbe, recordRouteCacheabilityProbeBailout } from "./cacheability-classification.js";
|
|
17
|
+
import { workUnitAsyncStorage } from "./internal/work-unit-async-storage.js";
|
|
18
|
+
import { suppressHangingPromiseAbortRejections } from "./internal/make-hanging-promise.js";
|
|
19
|
+
import { shareIsolatePromise } from "../server/isolate-shared-promise.js";
|
|
20
|
+
import { isInsideWorkStoreScope } from "./internal/work-store-scope.js";
|
|
21
21
|
import { flightArgumentsKey, restoreFlightReply, snapshotFlightReply } from "./cache-flight-arguments.js";
|
|
22
22
|
import { cache } from "react";
|
|
23
|
-
|
|
23
|
+
// src/shims/cache-runtime.ts
|
|
24
24
|
/**
|
|
25
25
|
* "use cache" runtime
|
|
26
26
|
*
|
|
@@ -324,6 +324,7 @@ function registerCachedFunction(fn, id, variant, options = {}) {
|
|
|
324
324
|
const parentCtx = cacheContextStorage.getStore();
|
|
325
325
|
if (parentCtx && parentCtx.variant !== "private") throwPrivateUseCacheInsidePublicUseCacheError();
|
|
326
326
|
if (unstableCacheContextStorage.getStore() === true) throwPrivateUseCacheInsideUnstableCacheError();
|
|
327
|
+
if (workUnitAsyncStorage.getStore()?.type === "generate-static-params") throwPrivateUseCacheOutsideRequestError();
|
|
327
328
|
markDynamicUsage();
|
|
328
329
|
const expression = "\"use cache: private\"";
|
|
329
330
|
const workUnit = workUnitAsyncStorage.getStore();
|
|
@@ -560,6 +561,12 @@ function throwPrivateUseCacheInsideUnstableCacheError() {
|
|
|
560
561
|
if (ctx) ctx.invalidDynamicUsageError = error;
|
|
561
562
|
throw error;
|
|
562
563
|
}
|
|
564
|
+
function throwPrivateUseCacheOutsideRequestError() {
|
|
565
|
+
const error = /* @__PURE__ */ new Error("\"use cache: private\" cannot be used outside of a request context.");
|
|
566
|
+
const ctx = getRequestContext();
|
|
567
|
+
if (ctx) ctx.invalidDynamicUsageError = error;
|
|
568
|
+
throw error;
|
|
569
|
+
}
|
|
563
570
|
function recordRequestScopedCacheControl(cacheControl) {
|
|
564
571
|
if (cacheControl === void 0) return;
|
|
565
572
|
const life = {
|
|
@@ -718,5 +725,4 @@ function makeErroringPageSearchParams() {
|
|
|
718
725
|
return typeof value === "function" ? value.bind(target) : value;
|
|
719
726
|
} });
|
|
720
727
|
}
|
|
721
|
-
//#endregion
|
|
722
728
|
export { NestedDynamicUseCacheError, buildUseCacheKey, cacheContextStorage, clearPrivateCache, getCacheContext, isUseCacheFunction, memoizeInCacheScope, registerCachedFunction, replayCachedFunction, runWithPrivateCache };
|
package/dist/shims/cache.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { CacheLifeConfig } from "../utils/cache-life-profiles.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ACTION_DID_REVALIDATE_DYNAMIC_ONLY, ACTION_DID_REVALIDATE_STATIC_AND_DYNAMIC, ActionRevalidationKind, CacheState, PendingCdnTagInvalidation, UnstableCacheRevalidationMode, _captureRequestScopedCacheLifeAccessors, _consumeRequestScopedCacheLife, _drainPendingRevalidations, _hasPendingRevalidatedTag, _initRequestScopedCacheState, _isOnDemandRevalidate, _markPendingRevalidatedTag, _peekRequestScopedCacheLife, _queuePendingCdnTagInvalidation, _queuePendingRevalidation, _revalidateCdnTags, _runWithCacheState, _setRequestScopedCacheLife, cacheLifeProfiles, getAndClearActionRevalidationKind, markActionRevalidation, runWithDetachedCacheObservations, shouldServeStaleUnstableCacheEntry } from "./cache-request-state.js";
|
|
3
3
|
import { CacheControlMetadata, CacheHandler, CacheHandlerContext, CacheHandlerValue, CachedAppPageValue, CachedFetchValue, CachedImageValue, CachedPagesValue, CachedRedirectValue, CachedRouteValue, IncrementalCacheValue, MemoryCacheHandler, NoOpCacheHandler, configureMemoryCacheHandler, getCacheHandler, getDataCacheHandler, registerDataCacheHandler, registerLazyDataCacheHandler, setCacheHandler, setDataCacheHandler } from "./cache-handler.js";
|
|
4
4
|
import { _recordUseCacheRootParamRead, _registerCacheContextAccessor, getRegisteredCacheContext } from "./internal/cache-context-accessor.js";
|
|
5
|
-
import {
|
|
6
|
-
//#region src/shims/cache.d.ts
|
|
5
|
+
import { ExecutionContextLike, getRequestExecutionContext, runWithExecutionContext } from "./request-context.js";
|
|
7
6
|
/**
|
|
8
7
|
* Revalidate cached data associated with a specific cache tag.
|
|
9
8
|
*
|
|
@@ -147,5 +146,4 @@ type UnstableCacheOptions = {
|
|
|
147
146
|
* digest of the callback source, keyParts and serialized arguments.
|
|
148
147
|
*/
|
|
149
148
|
export declare function unstable_cache<T extends (...args: any[]) => Promise<any>>(fn: T, keyParts?: string[], options?: UnstableCacheOptions): T;
|
|
150
|
-
//#endregion
|
|
151
149
|
export { ACTION_DID_REVALIDATE_DYNAMIC_ONLY, ACTION_DID_REVALIDATE_STATIC_AND_DYNAMIC, ActionRevalidationKind, CacheControlMetadata, CacheHandler, CacheHandlerContext, CacheHandlerValue, type CacheLifeConfig, CacheState, CachedAppPageValue, CachedFetchValue, CachedImageValue, CachedPagesValue, CachedRedirectValue, CachedRouteValue, type ExecutionContextLike, IncrementalCacheValue, MemoryCacheHandler, NoOpCacheHandler, PendingCdnTagInvalidation, UnstableCacheRevalidationMode, _captureRequestScopedCacheLifeAccessors, _consumeRequestScopedCacheLife, _drainPendingRevalidations, _hasPendingRevalidatedTag, _initRequestScopedCacheState, _isOnDemandRevalidate, _markPendingRevalidatedTag, _peekRequestScopedCacheLife, _queuePendingCdnTagInvalidation, _queuePendingRevalidation, _recordUseCacheRootParamRead, _registerCacheContextAccessor, _revalidateCdnTags, _runWithCacheState, _setRequestScopedCacheLife, cacheLifeProfiles, configureMemoryCacheHandler, getAndClearActionRevalidationKind, getCacheHandler, getDataCacheHandler, getRegisteredCacheContext, getRequestExecutionContext, markActionRevalidation, unstable_noStore as noStore, registerDataCacheHandler, registerLazyDataCacheHandler, runWithDetachedCacheObservations, runWithExecutionContext, setCacheHandler, setDataCacheHandler, shouldServeStaleUnstableCacheEntry };
|
package/dist/shims/cache.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { isDraftModeEnabled } from "./headers.js";
|
|
1
2
|
import { getOrCreateAls } from "./internal/als-registry.js";
|
|
3
|
+
import { sha256Hex } from "../utils/hash.js";
|
|
2
4
|
import { getRequestContext, isInsideUnifiedScope } from "./unified-request-context.js";
|
|
3
|
-
import { getRequestExecutionContext, runWithExecutionContext } from "./request-context.js";
|
|
4
|
-
import { isInsideWorkStoreScope } from "./internal/work-store-scope.js";
|
|
5
5
|
import { workUnitAsyncStorage } from "./internal/work-unit-async-storage.js";
|
|
6
|
-
import { isStagedCacheabilityProbeActive } from "./cacheability-classification.js";
|
|
7
|
-
import { MemoryCacheHandler, NoOpCacheHandler, configureMemoryCacheHandler, getCacheHandler, getDataCacheHandler, registerDataCacheHandler, registerLazyDataCacheHandler, setCacheHandler, setDataCacheHandler } from "./cache-handler.js";
|
|
8
|
-
import { encodeCacheTag, encodeCacheTags } from "../utils/encode-cache-tag.js";
|
|
9
|
-
import { sha256Hex } from "../utils/hash.js";
|
|
10
|
-
import { addCollectedRequestTags, getCurrentFetchSoftTags, runWithDetachedFetchObservations } from "./fetch-cache-state.js";
|
|
11
6
|
import { makeHangingPromise } from "./internal/make-hanging-promise.js";
|
|
7
|
+
import { isInsideWorkStoreScope } from "./internal/work-store-scope.js";
|
|
8
|
+
import { encodeCacheTag, encodeCacheTags } from "../utils/encode-cache-tag.js";
|
|
9
|
+
import { MemoryCacheHandler, NoOpCacheHandler, configureMemoryCacheHandler, getCacheHandler, getDataCacheHandler, registerDataCacheHandler, registerLazyDataCacheHandler, setCacheHandler, setDataCacheHandler } from "./cache-handler.js";
|
|
10
|
+
import { getRequestExecutionContext, runWithExecutionContext } from "./request-context.js";
|
|
11
|
+
import { isStagedCacheabilityProbeActive } from "./cacheability-classification.js";
|
|
12
12
|
import { getHeadersAccessPhase, markDynamicUsage } from "./internal/headers-state.js";
|
|
13
|
-
import {
|
|
13
|
+
import { isPathKnownNotEdgeCached } from "./cdn-purge-routes.js";
|
|
14
14
|
import { _recordUseCacheRootParamRead, _registerCacheContextAccessor, getRegisteredCacheContext } from "./internal/cache-context-accessor.js";
|
|
15
|
+
import { addCollectedRequestTags, getCurrentFetchSoftTags, runWithDetachedFetchObservations } from "./fetch-cache-state.js";
|
|
15
16
|
import { ACTION_DID_REVALIDATE_DYNAMIC_ONLY, ACTION_DID_REVALIDATE_STATIC_AND_DYNAMIC, _captureRequestScopedCacheLifeAccessors, _consumeRequestScopedCacheLife, _drainPendingRevalidations, _hasPendingRevalidatedTag, _initRequestScopedCacheState, _isOnDemandRevalidate, _markPendingRevalidatedTag, _peekRequestScopedCacheLife, _queuePendingCdnTagInvalidation, _queuePendingRevalidation, _revalidateCdnTags, _runWithCacheState, _setRequestScopedCacheLife, cacheLifeProfiles, getAndClearActionRevalidationKind, markActionRevalidation, runWithDetachedCacheObservations, shouldServeStaleUnstableCacheEntry } from "./cache-request-state.js";
|
|
16
|
-
|
|
17
|
-
//#region src/shims/cache.ts
|
|
17
|
+
// src/shims/cache.ts
|
|
18
18
|
/**
|
|
19
19
|
* next/cache shim
|
|
20
20
|
*
|
|
@@ -43,6 +43,12 @@ function scheduleRevalidation(promise) {
|
|
|
43
43
|
console.error("[vinext] cache revalidation failed:", error);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
function throwIfGeneratingStaticParams(expression) {
|
|
47
|
+
if (!isInsideUnifiedScope()) return;
|
|
48
|
+
const route = getRequestContext().headersContext?.staticParamsRoute;
|
|
49
|
+
if (route === void 0) return;
|
|
50
|
+
throw new Error(`Route ${route} used "${expression}" inside \`generateStaticParams\` which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);
|
|
51
|
+
}
|
|
46
52
|
/**
|
|
47
53
|
* Revalidate cached data associated with a specific cache tag.
|
|
48
54
|
*
|
|
@@ -57,6 +63,7 @@ function scheduleRevalidation(promise) {
|
|
|
57
63
|
* @param profile - cacheLife profile name (e.g. 'max', 'hours') or inline { expire: number }
|
|
58
64
|
*/
|
|
59
65
|
function revalidateTag(tag, profile) {
|
|
66
|
+
throwIfGeneratingStaticParams(`revalidateTag ${tag}`);
|
|
60
67
|
if (isStagedCacheabilityProbeActive()) {
|
|
61
68
|
markDynamicUsage();
|
|
62
69
|
return;
|
|
@@ -108,6 +115,7 @@ async function invalidateDataCacheTag(encoded, durations) {
|
|
|
108
115
|
* layout/page hierarchy tags, so only no-type invalidation applies there.
|
|
109
116
|
*/
|
|
110
117
|
function revalidatePath(path, type) {
|
|
118
|
+
throwIfGeneratingStaticParams(`revalidatePath ${path}`);
|
|
111
119
|
if (isStagedCacheabilityProbeActive()) {
|
|
112
120
|
markDynamicUsage();
|
|
113
121
|
return;
|
|
@@ -486,5 +494,4 @@ function unstable_cache(fn, keyParts, options) {
|
|
|
486
494
|
};
|
|
487
495
|
return cachedFn;
|
|
488
496
|
}
|
|
489
|
-
//#endregion
|
|
490
497
|
export { ACTION_DID_REVALIDATE_DYNAMIC_ONLY, ACTION_DID_REVALIDATE_STATIC_AND_DYNAMIC, MemoryCacheHandler, NoOpCacheHandler, _captureRequestScopedCacheLifeAccessors, _consumeRequestScopedCacheLife, _drainPendingRevalidations, _hasPendingRevalidatedTag, _initRequestScopedCacheState, _isOnDemandRevalidate, _markPendingRevalidatedTag, _peekRequestScopedCacheLife, _queuePendingCdnTagInvalidation, _queuePendingRevalidation, _recordUseCacheRootParamRead, _registerCacheContextAccessor, _revalidateCdnTags, _runWithCacheState, _setRequestScopedCacheLife, cacheLife, cacheLifeProfiles, cacheTag, configureMemoryCacheHandler, getAndClearActionRevalidationKind, getCacheHandler, getDataCacheHandler, getRegisteredCacheContext, getRequestExecutionContext, io, isInsideUnstableCacheScope, markActionRevalidation, unstable_noStore as noStore, unstable_noStore, refresh, registerDataCacheHandler, registerLazyDataCacheHandler, revalidatePath, revalidateTag, runWithDetachedCacheObservations, runWithExecutionContext, setCacheHandler, setDataCacheHandler, shouldServeStaleUnstableCacheEntry, unstable_cache, unstable_cacheLife, unstable_cacheTag, unstable_io, updateTag };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/shims/cacheability-classification.d.ts
|
|
2
1
|
export declare const CACHEABILITY_REQUEST_STATE: unique symbol;
|
|
3
2
|
export type RouteCacheabilityOutcome = {
|
|
4
3
|
cacheControl?: string;
|
|
@@ -79,6 +78,8 @@ export declare function recordRouteCacheabilityClientTraceMetadataMarker(marker:
|
|
|
79
78
|
export declare function preserveRouteCacheabilityResponsePolicy(): void;
|
|
80
79
|
export declare function readRouteCacheabilityState(): RouteCacheabilityState | null;
|
|
81
80
|
export declare function beginRouteCacheability(kind: "app-page" | "app-route" | "pages-api" | "pages-page", pattern: string): boolean;
|
|
81
|
+
/** Forget the route a dispatch began classifying when routing resumes after rejecting it. */
|
|
82
|
+
export declare function resetRouteCacheability(): void;
|
|
82
83
|
/** Prevent shared caching when request processing before route dispatch was request-specific. */
|
|
83
84
|
export declare function markRouteCacheabilityDynamic(reason: string): void;
|
|
84
85
|
/** Mark an effective route configuration that makes the whole pattern dynamic. */
|
|
@@ -111,5 +112,4 @@ export declare function isRouteCacheabilityIdentityProbe(): boolean;
|
|
|
111
112
|
export declare function isStagedCacheabilityProbeActive(): boolean;
|
|
112
113
|
export declare function deferRouteCacheability(): ((outcome: RouteCacheabilityOutcome) => void) | null;
|
|
113
114
|
export declare function recordRouteCacheability(outcome: RouteCacheabilityOutcome): void;
|
|
114
|
-
export declare function recordRouteCacheabilityProbeBailout(kind: "private-cache", outcome: RouteCacheabilityOutcome): void;
|
|
115
|
-
//#endregion
|
|
115
|
+
export declare function recordRouteCacheabilityProbeBailout(kind: "private-cache", outcome: RouteCacheabilityOutcome): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRequestExecutionContext } from "./request-context.js";
|
|
2
|
-
|
|
2
|
+
// src/shims/cacheability-classification.ts
|
|
3
3
|
const CACHEABILITY_REQUEST_STATE = Symbol.for("vinext.cacheabilityRequestState");
|
|
4
4
|
/** Retain canonical tags across completed-response admission and adapter header shaping. */
|
|
5
5
|
function recordRouteCacheabilityCdnTags(tags) {
|
|
@@ -36,6 +36,13 @@ function beginRouteCacheability(kind, pattern) {
|
|
|
36
36
|
if (kind === "pages-page") state.preserveResponseCachePolicy = false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
|
+
/** Forget the route a dispatch began classifying when routing resumes after rejecting it. */
|
|
40
|
+
function resetRouteCacheability() {
|
|
41
|
+
const state = readRouteCacheabilityState();
|
|
42
|
+
if (!state) return;
|
|
43
|
+
state.route = void 0;
|
|
44
|
+
state.patternDynamicReason = void 0;
|
|
45
|
+
}
|
|
39
46
|
/** Prevent shared caching when request processing before route dispatch was request-specific. */
|
|
40
47
|
function markRouteCacheabilityDynamic(reason) {
|
|
41
48
|
const state = readRouteCacheabilityState();
|
|
@@ -157,5 +164,4 @@ function recordRouteCacheabilityProbeBailout(kind, outcome) {
|
|
|
157
164
|
state.outcome = outcome;
|
|
158
165
|
state.complete?.(outcome);
|
|
159
166
|
}
|
|
160
|
-
|
|
161
|
-
export { CACHEABILITY_REQUEST_STATE, beginRouteCacheability, captureRouteCacheabilityResponsePolicy, deferRouteCacheability, getRouteCacheabilityCaptureOptions, getRouteCacheabilityDynamicReason, isRouteCacheabilityEvaluation, isRouteCacheabilityIdentityProbe, isRouteCacheabilityProbe, isStagedCacheabilityProbeActive, markRouteCacheabilityConfigCdnCachePolicy, markRouteCacheabilityDynamic, markRouteCacheabilityExplicitConfigPolicy, markRouteCacheabilityExplicitResponsePolicy, markRouteCacheabilityFinalResponseUncacheable, markRouteCacheabilityPatternDynamic, markRouteCacheabilityResponseBodyComplete, preserveRouteCacheabilityResponsePolicy, readRouteCacheabilityState, recordConfigCdnCachePolicyHeader, recordRouteCacheability, recordRouteCacheabilityCdnTags, recordRouteCacheabilityClientTraceMetadataMarker, recordRouteCacheabilityProbeBailout };
|
|
167
|
+
export { CACHEABILITY_REQUEST_STATE, beginRouteCacheability, captureRouteCacheabilityResponsePolicy, deferRouteCacheability, getRouteCacheabilityCaptureOptions, getRouteCacheabilityDynamicReason, isRouteCacheabilityEvaluation, isRouteCacheabilityIdentityProbe, isRouteCacheabilityProbe, isStagedCacheabilityProbeActive, markRouteCacheabilityConfigCdnCachePolicy, markRouteCacheabilityDynamic, markRouteCacheabilityExplicitConfigPolicy, markRouteCacheabilityExplicitResponsePolicy, markRouteCacheabilityFinalResponseUncacheable, markRouteCacheabilityPatternDynamic, markRouteCacheabilityResponseBodyComplete, preserveRouteCacheabilityResponsePolicy, readRouteCacheabilityState, recordConfigCdnCachePolicyHeader, recordRouteCacheability, recordRouteCacheabilityCdnTags, recordRouteCacheabilityClientTraceMetadataMarker, recordRouteCacheabilityProbeBailout, resetRouteCacheability };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
//#region src/shims/caught-not-found-boundaries.d.ts
|
|
3
2
|
export declare const CAUGHT_NOT_FOUND_BOUNDARIES_GLOBAL = "__VINEXT_CAUGHT_NOT_FOUND__";
|
|
4
3
|
/** The boundaries that caught, and those of them the document rendered. */
|
|
5
4
|
export type CaughtNotFoundBoundaries = {
|
|
@@ -11,5 +10,4 @@ export declare function withCaughtNotFoundBoundaries(boundaries: CaughtNotFoundB
|
|
|
11
10
|
/** Whether the boundary with this id caught a notFound() in the document. */
|
|
12
11
|
export declare function useCaughtNotFoundBoundary(id: string | undefined): boolean;
|
|
13
12
|
/** A hydrated boundary consumes its id, so a later mount renders its children. */
|
|
14
|
-
export declare function consumeCaughtNotFoundBoundary(id: string | undefined): void;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function consumeCaughtNotFoundBoundary(id: string | undefined): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/shims/caught-not-found-boundaries.ts
|
|
3
3
|
/**
|
|
4
4
|
* The parallel slot not-found boundaries that caught a slot's notFound() in
|
|
5
5
|
* the document. Fizz has no error boundaries, so a slot page's notFound()
|
|
@@ -44,5 +44,4 @@ function consumeCaughtNotFoundBoundary(id) {
|
|
|
44
44
|
const index = ids?.indexOf(id) ?? -1;
|
|
45
45
|
if (index !== -1) ids.splice(index, 1);
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { CAUGHT_NOT_FOUND_BOUNDARIES_GLOBAL, CaughtNotFoundBoundariesContext, consumeCaughtNotFoundBoundary, useCaughtNotFoundBoundary, withCaughtNotFoundBoundaries };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CdnCacheAdapter } from "./cdn-cache.js";
|
|
2
|
-
//#region src/shims/cdn-cache-state.d.ts
|
|
3
2
|
/** Register an adapter without loading the origin cache implementation. */
|
|
4
3
|
export declare function setCdnCacheAdapter(adapter: CdnCacheAdapter): void;
|
|
5
4
|
/**
|
|
@@ -9,5 +8,4 @@ export declare function setCdnCacheAdapter(adapter: CdnCacheAdapter): void;
|
|
|
9
8
|
*/
|
|
10
9
|
export declare function registerCdnCacheAdapter(factory: () => CdnCacheAdapter): void;
|
|
11
10
|
/** Read only an explicitly registered adapter; defaults belong to cdn-cache. */
|
|
12
|
-
export declare function getExplicitCdnCacheAdapter(): CdnCacheAdapter | null;
|
|
13
|
-
//#endregion
|
|
11
|
+
export declare function getExplicitCdnCacheAdapter(): CdnCacheAdapter | null;
|