vinext 0.0.55 → 0.1.1
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 +51 -15
- package/dist/build/assets-ignore.d.ts +32 -0
- package/dist/build/assets-ignore.js +48 -0
- package/dist/build/clean-output.d.ts +1 -2
- package/dist/build/clean-output.js +0 -2
- package/dist/build/client-build-config.d.ts +42 -3
- package/dist/build/client-build-config.js +86 -4
- package/dist/build/css-url-assets.d.ts +29 -0
- package/dist/build/css-url-assets.js +211 -0
- package/dist/build/google-fonts/build-url.d.ts +1 -2
- package/dist/build/google-fonts/build-url.js +0 -2
- package/dist/build/google-fonts/fallback-metrics-data.js +0 -2
- package/dist/build/google-fonts/fallback-metrics.d.ts +1 -2
- package/dist/build/google-fonts/fallback-metrics.js +0 -2
- package/dist/build/google-fonts/font-data.js +0 -2
- package/dist/build/google-fonts/font-metadata.d.ts +1 -2
- package/dist/build/google-fonts/font-metadata.js +0 -2
- package/dist/build/google-fonts/get-axes.d.ts +1 -2
- package/dist/build/google-fonts/get-axes.js +0 -2
- package/dist/build/google-fonts/sort-variants.d.ts +1 -2
- package/dist/build/google-fonts/sort-variants.js +0 -2
- package/dist/build/google-fonts/validate.d.ts +1 -2
- package/dist/build/google-fonts/validate.js +0 -2
- package/dist/build/inline-css.d.ts +1 -2
- package/dist/build/inline-css.js +0 -2
- package/dist/build/layout-classification-types.d.ts +1 -2
- package/dist/build/layout-classification.d.ts +2 -3
- package/dist/build/layout-classification.js +1 -3
- package/dist/build/next-client-runtime-manifests.d.ts +14 -0
- package/dist/build/next-client-runtime-manifests.js +39 -0
- package/dist/build/nitro-route-rules.d.ts +1 -2
- package/dist/build/nitro-route-rules.js +0 -2
- package/dist/build/precompress.d.ts +1 -2
- package/dist/build/precompress.js +0 -2
- package/dist/build/prerender.d.ts +2 -3
- package/dist/build/prerender.js +14 -2
- package/dist/build/report.d.ts +1 -2
- package/dist/build/report.js +0 -2
- package/dist/build/route-classification-injector.d.ts +1 -2
- package/dist/build/route-classification-injector.js +4 -6
- package/dist/build/route-classification-manifest.d.ts +5 -6
- package/dist/build/route-classification-manifest.js +5 -7
- package/dist/build/run-prerender.d.ts +1 -2
- package/dist/build/run-prerender.js +15 -7
- package/dist/build/server-manifest.d.ts +1 -2
- package/dist/build/server-manifest.js +0 -2
- package/dist/build/ssr-manifest.d.ts +1 -2
- package/dist/build/ssr-manifest.js +2 -4
- package/dist/build/standalone.d.ts +1 -2
- package/dist/build/standalone.js +0 -2
- package/dist/build/static-export.d.ts +2 -3
- package/dist/build/static-export.js +0 -2
- package/dist/cache/cache-adapters-virtual.d.ts +50 -0
- package/dist/cache/cache-adapters-virtual.js +45 -0
- package/dist/check.d.ts +33 -2
- package/dist/check.js +306 -24
- package/dist/cli-args.d.ts +1 -2
- package/dist/cli-args.js +0 -2
- package/dist/cli.js +9 -13
- package/dist/client/instrumentation-client-inject.d.ts +1 -2
- package/dist/client/instrumentation-client-inject.js +0 -2
- package/dist/client/instrumentation-client-state.d.ts +1 -2
- package/dist/client/instrumentation-client-state.js +0 -2
- package/dist/client/instrumentation-client.d.ts +1 -2
- package/dist/client/instrumentation-client.js +0 -2
- package/dist/client/navigation-runtime.d.ts +9 -2
- package/dist/client/navigation-runtime.js +1 -3
- package/dist/client/pages-router-link-navigation.d.ts +1 -2
- package/dist/client/pages-router-link-navigation.js +0 -2
- package/dist/client/validate-module-path.d.ts +1 -2
- package/dist/client/validate-module-path.js +0 -2
- package/dist/client/vinext-next-data.d.ts +3 -3
- package/dist/client/vinext-next-data.js +0 -2
- package/dist/client/window-next.d.ts +1 -2
- package/dist/client/window-next.js +0 -2
- package/dist/cloudflare/index.d.ts +1 -1
- package/dist/cloudflare/index.js +1 -1
- package/dist/cloudflare/src/cache/cdn-adapter.runtime.js +97 -0
- package/dist/cloudflare/{kv-cache-handler.d.ts → src/cache/kv-data-adapter.runtime.d.ts} +25 -6
- package/dist/cloudflare/{kv-cache-handler.js → src/cache/kv-data-adapter.runtime.js} +36 -28
- package/dist/cloudflare/src/utils/cache-control-metadata.js +20 -0
- package/dist/cloudflare/tpr.d.ts +2 -3
- package/dist/cloudflare/tpr.js +8 -8
- package/dist/config/config-matchers.d.ts +20 -2
- package/dist/config/config-matchers.js +35 -3
- package/dist/config/dotenv.d.ts +1 -2
- package/dist/config/dotenv.js +0 -2
- package/dist/config/next-config.d.ts +32 -5
- package/dist/config/next-config.js +53 -6
- package/dist/config/tsconfig-paths.d.ts +1 -2
- package/dist/config/tsconfig-paths.js +3 -7
- package/dist/deploy.d.ts +48 -3
- package/dist/deploy.js +180 -415
- package/dist/entries/app-browser-entry.d.ts +1 -2
- package/dist/entries/app-browser-entry.js +0 -2
- package/dist/entries/app-rsc-entry.d.ts +12 -6
- package/dist/entries/app-rsc-entry.js +101 -62
- package/dist/entries/app-rsc-manifest.d.ts +1 -2
- package/dist/entries/app-rsc-manifest.js +40 -9
- package/dist/entries/app-ssr-entry.d.ts +1 -2
- package/dist/entries/app-ssr-entry.js +0 -2
- package/dist/entries/pages-client-entry.d.ts +3 -3
- package/dist/entries/pages-client-entry.js +16 -5
- package/dist/entries/pages-entry-helpers.d.ts +2 -11
- package/dist/entries/pages-entry-helpers.js +1 -20
- package/dist/entries/pages-server-entry.d.ts +2 -3
- package/dist/entries/pages-server-entry.js +98 -703
- package/dist/entries/runtime-entry-module.d.ts +1 -2
- package/dist/entries/runtime-entry-module.js +0 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +376 -316
- package/dist/init.d.ts +1 -2
- package/dist/init.js +1 -3
- package/dist/plugins/ast-utils.d.ts +20 -0
- package/dist/plugins/ast-utils.js +78 -0
- package/dist/plugins/async-hooks-stub.d.ts +1 -2
- package/dist/plugins/async-hooks-stub.js +0 -2
- package/dist/plugins/client-reference-dedup.d.ts +1 -2
- package/dist/plugins/client-reference-dedup.js +4 -8
- package/dist/plugins/css-data-url.d.ts +1 -2
- package/dist/plugins/css-data-url.js +0 -2
- package/dist/plugins/fonts.d.ts +13 -3
- package/dist/plugins/fonts.js +19 -13
- package/dist/plugins/import-meta-url.d.ts +2 -2
- package/dist/plugins/import-meta-url.js +187 -33
- package/dist/plugins/instrumentation-client.d.ts +1 -2
- package/dist/plugins/instrumentation-client.js +0 -2
- package/dist/plugins/middleware-server-only.d.ts +1 -2
- package/dist/plugins/middleware-server-only.js +0 -2
- package/dist/plugins/og-assets.d.ts +32 -8
- package/dist/plugins/og-assets.js +126 -34
- package/dist/plugins/optimize-imports.d.ts +1 -2
- package/dist/plugins/optimize-imports.js +9 -17
- package/dist/plugins/postcss.d.ts +1 -2
- package/dist/plugins/postcss.js +18 -16
- package/dist/plugins/remove-console.d.ts +1 -2
- package/dist/plugins/remove-console.js +0 -2
- package/dist/plugins/require-context.d.ts +6 -0
- package/dist/plugins/require-context.js +184 -0
- package/dist/plugins/rsc-client-reference-loaders.d.ts +1 -2
- package/dist/plugins/rsc-client-reference-loaders.js +0 -2
- package/dist/plugins/rsc-client-shim-excludes.d.ts +1 -2
- package/dist/plugins/rsc-client-shim-excludes.js +0 -2
- package/dist/plugins/sass.d.ts +1 -2
- package/dist/plugins/sass.js +0 -2
- package/dist/plugins/server-externals-manifest.d.ts +1 -2
- package/dist/plugins/server-externals-manifest.js +0 -2
- package/dist/plugins/strip-server-exports.d.ts +1 -2
- package/dist/plugins/strip-server-exports.js +0 -2
- package/dist/routing/app-route-graph.d.ts +14 -10
- package/dist/routing/app-route-graph.js +146 -35
- package/dist/routing/app-router.d.ts +1 -2
- package/dist/routing/app-router.js +0 -2
- package/dist/routing/file-matcher.d.ts +6 -2
- package/dist/routing/file-matcher.js +15 -7
- package/dist/routing/pages-router.d.ts +1 -2
- package/dist/routing/pages-router.js +0 -2
- package/dist/routing/route-matching.d.ts +1 -2
- package/dist/routing/route-matching.js +0 -2
- package/dist/routing/route-pattern.d.ts +2 -2
- package/dist/routing/route-pattern.js +16 -3
- package/dist/routing/route-trie.d.ts +1 -2
- package/dist/routing/route-trie.js +0 -2
- package/dist/routing/route-validation.d.ts +1 -2
- package/dist/routing/route-validation.js +0 -2
- package/dist/routing/utils.d.ts +44 -2
- package/dist/routing/utils.js +62 -3
- package/dist/server/api-handler.d.ts +1 -2
- package/dist/server/api-handler.js +4 -2
- package/dist/server/app-bfcache-id.d.ts +5 -0
- package/dist/server/app-bfcache-id.js +5 -0
- package/dist/server/app-browser-action-result.d.ts +1 -2
- package/dist/server/app-browser-action-result.js +0 -2
- package/dist/server/app-browser-client-reuse-manifest.d.ts +12 -0
- package/dist/server/app-browser-client-reuse-manifest.js +101 -0
- package/dist/server/app-browser-entry.js +244 -88
- package/dist/server/app-browser-error.d.ts +1 -2
- package/dist/server/app-browser-error.js +0 -2
- package/dist/server/app-browser-hydration.d.ts +1 -2
- package/dist/server/app-browser-hydration.js +0 -2
- package/dist/server/app-browser-interception-context.d.ts +2 -2
- package/dist/server/app-browser-interception-context.js +15 -4
- package/dist/server/app-browser-mpa-navigation.d.ts +2 -2
- package/dist/server/app-browser-mpa-navigation.js +9 -3
- package/dist/server/app-browser-navigation-controller.d.ts +15 -4
- package/dist/server/app-browser-navigation-controller.js +80 -4
- package/dist/server/app-browser-popstate.d.ts +12 -4
- package/dist/server/app-browser-popstate.js +19 -6
- package/dist/server/app-browser-rsc-redirect.d.ts +1 -2
- package/dist/server/app-browser-rsc-redirect.js +0 -2
- package/dist/server/app-browser-state.d.ts +31 -4
- package/dist/server/app-browser-state.js +196 -10
- package/dist/server/app-browser-stream.d.ts +1 -2
- package/dist/server/app-browser-stream.js +0 -2
- package/dist/server/app-browser-visible-commit.d.ts +2 -3
- package/dist/server/app-browser-visible-commit.js +30 -21
- package/dist/server/app-client-reference-preloader.d.ts +1 -2
- package/dist/server/app-client-reference-preloader.js +0 -2
- package/dist/server/app-elements-wire.d.ts +14 -8
- package/dist/server/app-elements-wire.js +45 -24
- package/dist/server/app-elements.d.ts +2 -3
- package/dist/server/app-elements.js +2 -4
- package/dist/server/app-fallback-renderer.d.ts +5 -5
- package/dist/server/app-fallback-renderer.js +4 -3
- package/dist/server/app-history-state.d.ts +62 -2
- package/dist/server/app-history-state.js +176 -10
- package/dist/server/app-hook-warning-suppression.d.ts +1 -2
- package/dist/server/app-hook-warning-suppression.js +0 -2
- package/dist/server/app-inline-css-client.d.ts +1 -2
- package/dist/server/app-inline-css-client.js +0 -2
- package/dist/server/app-interception-context-header.d.ts +1 -2
- package/dist/server/app-interception-context-header.js +0 -2
- package/dist/server/app-layout-param-observation.d.ts +15 -2
- package/dist/server/app-layout-param-observation.js +46 -8
- package/dist/server/app-middleware.d.ts +1 -2
- package/dist/server/app-middleware.js +0 -2
- package/dist/server/app-mounted-slots-header.d.ts +1 -2
- package/dist/server/app-mounted-slots-header.js +0 -2
- package/dist/server/app-optimistic-routing.d.ts +1 -2
- package/dist/server/app-optimistic-routing.js +0 -2
- package/dist/server/app-page-boundary-render.d.ts +4 -3
- package/dist/server/app-page-boundary-render.js +59 -28
- package/dist/server/app-page-boundary.d.ts +11 -2
- package/dist/server/app-page-boundary.js +13 -4
- package/dist/server/app-page-cache.d.ts +3 -3
- package/dist/server/app-page-cache.js +36 -11
- package/dist/server/app-page-dispatch.d.ts +25 -5
- package/dist/server/app-page-dispatch.js +122 -25
- package/dist/server/app-page-element-builder.d.ts +4 -2
- package/dist/server/app-page-element-builder.js +31 -21
- package/dist/server/app-page-execution.d.ts +8 -3
- package/dist/server/app-page-execution.js +55 -24
- package/dist/server/app-page-head.d.ts +1 -2
- package/dist/server/app-page-head.js +6 -6
- package/dist/server/app-page-method.d.ts +1 -2
- package/dist/server/app-page-method.js +0 -2
- package/dist/server/app-page-params.d.ts +1 -2
- package/dist/server/app-page-params.js +0 -2
- package/dist/server/app-page-probe.d.ts +79 -2
- package/dist/server/app-page-probe.js +89 -9
- package/dist/server/app-page-render-identity.d.ts +1 -2
- package/dist/server/app-page-render-identity.js +0 -2
- package/dist/server/app-page-render-observation.d.ts +1 -2
- package/dist/server/app-page-render-observation.js +0 -2
- package/dist/server/app-page-render.d.ts +15 -3
- package/dist/server/app-page-render.js +171 -12
- package/dist/server/app-page-request.d.ts +12 -9
- package/dist/server/app-page-request.js +12 -11
- package/dist/server/app-page-response.d.ts +4 -4
- package/dist/server/app-page-response.js +6 -4
- package/dist/server/app-page-route-wiring.d.ts +14 -3
- package/dist/server/app-page-route-wiring.js +65 -12
- package/dist/server/app-page-search-params-observation.d.ts +10 -0
- package/dist/server/app-page-search-params-observation.js +20 -0
- package/dist/server/app-page-segment-state.d.ts +1 -2
- package/dist/server/app-page-segment-state.js +1 -8
- package/dist/server/app-page-stream.d.ts +54 -9
- package/dist/server/app-page-stream.js +61 -10
- package/dist/server/app-pages-bridge.d.ts +41 -0
- package/dist/server/app-pages-bridge.js +54 -0
- package/dist/server/app-post-middleware-context.d.ts +1 -2
- package/dist/server/app-post-middleware-context.js +0 -2
- package/dist/server/app-ppr-fallback-shell.d.ts +21 -0
- package/dist/server/app-ppr-fallback-shell.js +82 -0
- package/dist/server/app-prerender-endpoints.d.ts +1 -2
- package/dist/server/app-prerender-endpoints.js +0 -2
- package/dist/server/app-prerender-static-params.d.ts +15 -2
- package/dist/server/app-prerender-static-params.js +44 -13
- package/dist/server/app-render-dependency.d.ts +3 -2
- package/dist/server/app-render-dependency.js +9 -3
- package/dist/server/app-request-context.d.ts +1 -2
- package/dist/server/app-request-context.js +0 -2
- package/dist/server/app-route-handler-cache.d.ts +2 -2
- package/dist/server/app-route-handler-cache.js +1 -2
- package/dist/server/app-route-handler-dispatch.d.ts +2 -2
- package/dist/server/app-route-handler-dispatch.js +2 -2
- package/dist/server/app-route-handler-execution.d.ts +2 -2
- package/dist/server/app-route-handler-execution.js +3 -4
- package/dist/server/app-route-handler-policy.d.ts +1 -2
- package/dist/server/app-route-handler-policy.js +0 -2
- package/dist/server/app-route-handler-response.d.ts +2 -3
- package/dist/server/app-route-handler-response.js +7 -6
- package/dist/server/app-route-handler-runtime.d.ts +2 -2
- package/dist/server/app-route-handler-runtime.js +3 -4
- package/dist/server/app-route-module-loader.d.ts +43 -0
- package/dist/server/app-route-module-loader.js +32 -0
- package/dist/server/app-router-entry.d.ts +1 -2
- package/dist/server/app-router-entry.js +2 -2
- package/dist/server/app-rsc-cache-busting.d.ts +10 -2
- package/dist/server/app-rsc-cache-busting.js +13 -4
- package/dist/server/app-rsc-embedded-chunks.d.ts +1 -2
- package/dist/server/app-rsc-embedded-chunks.js +0 -2
- package/dist/server/app-rsc-error-handler.d.ts +1 -2
- package/dist/server/app-rsc-error-handler.js +0 -2
- package/dist/server/app-rsc-errors.d.ts +1 -2
- package/dist/server/app-rsc-errors.js +0 -2
- package/dist/server/app-rsc-handler.d.ts +17 -2
- package/dist/server/app-rsc-handler.js +24 -15
- package/dist/server/app-rsc-render-mode.d.ts +1 -2
- package/dist/server/app-rsc-render-mode.js +0 -2
- package/dist/server/app-rsc-request-normalization.d.ts +4 -5
- package/dist/server/app-rsc-request-normalization.js +2 -4
- package/dist/server/app-rsc-response-finalizer.d.ts +1 -2
- package/dist/server/app-rsc-response-finalizer.js +2 -2
- package/dist/server/app-rsc-route-matching.d.ts +20 -2
- package/dist/server/app-rsc-route-matching.js +29 -6
- package/dist/server/app-segment-config.d.ts +4 -2
- package/dist/server/app-segment-config.js +8 -2
- package/dist/server/app-server-action-execution.d.ts +18 -3
- package/dist/server/app-server-action-execution.js +75 -18
- package/dist/server/app-ssr-entry.d.ts +11 -4
- package/dist/server/app-ssr-entry.js +47 -15
- package/dist/server/app-ssr-error-meta.d.ts +1 -2
- package/dist/server/app-ssr-error-meta.js +0 -2
- package/dist/server/app-ssr-stream.d.ts +1 -2
- package/dist/server/app-ssr-stream.js +31 -3
- package/dist/server/app-static-generation.d.ts +1 -2
- package/dist/server/app-static-generation.js +0 -2
- package/dist/server/app-visited-response-cache.d.ts +23 -0
- package/dist/server/app-visited-response-cache.js +19 -0
- package/dist/server/artifact-compatibility.d.ts +1 -2
- package/dist/server/artifact-compatibility.js +2 -6
- package/dist/server/cache-control.d.ts +15 -2
- package/dist/server/cache-control.js +21 -3
- package/dist/server/cache-headers.d.ts +1 -2
- package/dist/server/cache-headers.js +0 -2
- package/dist/server/cache-proof.d.ts +1 -2
- package/dist/server/cache-proof.js +0 -2
- package/dist/server/client-reuse-manifest.d.ts +3 -3
- package/dist/server/client-reuse-manifest.js +6 -10
- package/dist/server/client-trace-metadata.d.ts +1 -2
- package/dist/server/client-trace-metadata.js +0 -2
- package/dist/server/cookie-utils.d.ts +1 -2
- package/dist/server/cookie-utils.js +0 -2
- package/dist/server/csp.d.ts +1 -2
- package/dist/server/csp.js +0 -2
- package/dist/server/default-global-error-module.d.ts +1 -2
- package/dist/server/default-global-error-module.js +0 -2
- package/dist/server/default-not-found-module.d.ts +1 -2
- package/dist/server/default-not-found-module.js +0 -2
- package/dist/server/dev-error-overlay-store.d.ts +20 -4
- package/dist/server/dev-error-overlay-store.js +23 -4
- package/dist/server/dev-error-overlay.d.ts +39 -3
- package/dist/server/dev-error-overlay.js +952 -164
- package/dist/server/dev-initial-server-error.d.ts +9 -0
- package/dist/server/dev-initial-server-error.js +26 -0
- package/dist/server/dev-lockfile.d.ts +1 -2
- package/dist/server/dev-lockfile.js +0 -2
- package/dist/server/dev-module-runner.d.ts +1 -2
- package/dist/server/dev-module-runner.js +0 -2
- package/dist/server/dev-origin-check.d.ts +1 -2
- package/dist/server/dev-origin-check.js +0 -2
- package/dist/server/dev-route-files.d.ts +1 -2
- package/dist/server/dev-route-files.js +0 -2
- package/dist/server/dev-server.d.ts +3 -4
- package/dist/server/dev-server.js +129 -49
- package/dist/server/dev-stack-sourcemap-endpoint.d.ts +4 -0
- package/dist/server/dev-stack-sourcemap-endpoint.js +4 -0
- package/dist/server/dev-stack-sourcemap.d.ts +43 -0
- package/dist/server/dev-stack-sourcemap.js +443 -0
- package/dist/server/document-initial-head.d.ts +1 -2
- package/dist/server/document-initial-head.js +0 -2
- package/dist/server/edge-api-runtime.d.ts +1 -2
- package/dist/server/edge-api-runtime.js +0 -2
- package/dist/server/file-based-metadata.d.ts +1 -2
- package/dist/server/file-based-metadata.js +0 -2
- package/dist/server/headers.d.ts +3 -2
- package/dist/server/headers.js +3 -3
- package/dist/server/html.d.ts +1 -2
- package/dist/server/html.js +0 -2
- package/dist/server/http-error-responses.d.ts +1 -2
- package/dist/server/http-error-responses.js +0 -2
- package/dist/server/image-optimization.d.ts +1 -2
- package/dist/server/image-optimization.js +0 -2
- package/dist/server/implicit-tags.d.ts +1 -2
- package/dist/server/implicit-tags.js +0 -2
- package/dist/server/instrumentation-runtime.d.ts +1 -2
- package/dist/server/instrumentation-runtime.js +0 -2
- package/dist/server/instrumentation.d.ts +1 -2
- package/dist/server/instrumentation.js +0 -2
- package/dist/server/isr-cache.d.ts +46 -3
- package/dist/server/isr-cache.js +93 -24
- package/dist/server/metadata-route-build-data.d.ts +1 -2
- package/dist/server/metadata-route-build-data.js +0 -2
- package/dist/server/metadata-route-response.d.ts +1 -2
- package/dist/server/metadata-route-response.js +0 -2
- package/dist/server/metadata-routes.d.ts +1 -2
- package/dist/server/metadata-routes.js +0 -2
- package/dist/server/middleware-matcher.d.ts +1 -2
- package/dist/server/middleware-matcher.js +0 -2
- package/dist/server/middleware-request-headers.d.ts +1 -2
- package/dist/server/middleware-request-headers.js +0 -2
- package/dist/server/middleware-response-headers.d.ts +1 -2
- package/dist/server/middleware-response-headers.js +0 -2
- package/dist/server/middleware-runtime.d.ts +1 -2
- package/dist/server/middleware-runtime.js +14 -5
- package/dist/server/middleware.d.ts +2 -3
- package/dist/server/middleware.js +0 -2
- package/dist/server/navigation-planner.d.ts +16 -2
- package/dist/server/navigation-planner.js +6 -6
- package/dist/server/navigation-trace.d.ts +1 -2
- package/dist/server/navigation-trace.js +0 -2
- package/dist/server/next-error-digest.d.ts +1 -2
- package/dist/server/next-error-digest.js +0 -2
- package/dist/server/normalize-path.d.ts +1 -2
- package/dist/server/normalize-path.js +0 -2
- package/dist/server/pages-api-route.d.ts +1 -2
- package/dist/server/pages-api-route.js +1 -3
- package/dist/server/pages-asset-tags.d.ts +66 -0
- package/dist/server/pages-asset-tags.js +116 -0
- package/dist/server/pages-body-parser-config.d.ts +1 -2
- package/dist/server/pages-body-parser-config.js +0 -2
- package/dist/server/pages-data-route.d.ts +39 -2
- package/dist/server/pages-data-route.js +46 -3
- package/dist/server/pages-default-404.d.ts +1 -2
- package/dist/server/pages-default-404.js +0 -2
- package/dist/server/pages-document-initial-props.d.ts +1 -2
- package/dist/server/pages-document-initial-props.js +0 -2
- package/dist/server/pages-get-initial-props.d.ts +17 -0
- package/dist/server/pages-get-initial-props.js +50 -0
- package/dist/server/pages-i18n.d.ts +1 -2
- package/dist/server/pages-i18n.js +0 -2
- package/dist/server/pages-media-type.d.ts +1 -2
- package/dist/server/pages-media-type.js +1 -2
- package/dist/server/pages-node-compat.d.ts +11 -2
- package/dist/server/pages-node-compat.js +38 -3
- package/dist/server/pages-page-data.d.ts +17 -10
- package/dist/server/pages-page-data.js +79 -35
- package/dist/server/pages-page-handler.d.ts +97 -0
- package/dist/server/pages-page-handler.js +348 -0
- package/dist/server/pages-page-method.d.ts +1 -2
- package/dist/server/pages-page-method.js +0 -2
- package/dist/server/pages-page-response.d.ts +11 -3
- package/dist/server/pages-page-response.js +16 -5
- package/dist/server/pages-readiness.d.ts +36 -0
- package/dist/server/pages-readiness.js +21 -0
- package/dist/server/pages-request-pipeline.d.ts +99 -0
- package/dist/server/pages-request-pipeline.js +209 -0
- package/dist/server/pages-revalidate.d.ts +15 -0
- package/dist/server/pages-revalidate.js +19 -0
- package/dist/server/pages-serializable-props.d.ts +1 -2
- package/dist/server/pages-serializable-props.js +0 -2
- package/dist/server/pregenerated-concrete-paths.d.ts +32 -0
- package/dist/server/pregenerated-concrete-paths.js +78 -0
- package/dist/server/prerender-route-params.d.ts +13 -3
- package/dist/server/prerender-route-params.js +30 -11
- package/dist/server/prerender-work-unit-setup.d.ts +1 -2
- package/dist/server/prerender-work-unit-setup.js +0 -2
- package/dist/server/prod-server.d.ts +8 -6
- package/dist/server/prod-server.js +101 -219
- package/dist/server/proxy-trust.d.ts +1 -2
- package/dist/server/proxy-trust.js +0 -2
- package/dist/server/request-log.d.ts +1 -2
- package/dist/server/request-log.js +0 -2
- package/dist/server/request-pipeline.d.ts +14 -2
- package/dist/server/request-pipeline.js +42 -3
- package/dist/server/rsc-stream-hints.d.ts +1 -2
- package/dist/server/rsc-stream-hints.js +0 -2
- package/dist/server/seed-cache.d.ts +6 -2
- package/dist/server/seed-cache.js +10 -8
- package/dist/server/server-action-not-found.d.ts +1 -2
- package/dist/server/server-action-not-found.js +0 -2
- package/dist/server/server-globals.d.ts +1 -2
- package/dist/server/server-globals.js +0 -2
- package/dist/server/skip-cache-proof.d.ts +1 -2
- package/dist/server/skip-cache-proof.js +0 -2
- package/dist/server/socket-error-backstop.d.ts +19 -2
- package/dist/server/socket-error-backstop.js +77 -6
- package/dist/server/static-file-cache.d.ts +1 -2
- package/dist/server/static-file-cache.js +0 -2
- package/dist/server/static-layout-client-reuse-proof.d.ts +1 -2
- package/dist/server/static-layout-client-reuse-proof.js +0 -2
- package/dist/server/streaming-metadata.d.ts +1 -2
- package/dist/server/streaming-metadata.js +0 -2
- package/dist/server/worker-utils.d.ts +1 -2
- package/dist/server/worker-utils.js +3 -6
- package/dist/shims/amp.d.ts +1 -2
- package/dist/shims/amp.js +0 -2
- package/dist/shims/app-router-scroll-state.d.ts +1 -2
- package/dist/shims/app-router-scroll-state.js +0 -2
- package/dist/shims/app-router-scroll.d.ts +3 -5
- package/dist/shims/app-router-scroll.js +22 -6
- package/dist/shims/app.d.ts +1 -2
- package/dist/shims/app.js +0 -2
- package/dist/shims/before-interactive-context.d.ts +1 -2
- package/dist/shims/before-interactive-context.js +0 -2
- package/dist/shims/cache-for-request.d.ts +1 -2
- package/dist/shims/cache-for-request.js +0 -2
- package/dist/shims/cache-runtime.d.ts +20 -5
- package/dist/shims/cache-runtime.js +66 -31
- package/dist/shims/cache.d.ts +48 -7
- package/dist/shims/cache.js +79 -20
- package/dist/shims/cdn-cache.d.ts +125 -0
- package/dist/shims/cdn-cache.js +100 -0
- package/dist/shims/client-hook-error.d.ts +1 -2
- package/dist/shims/client-hook-error.js +0 -2
- package/dist/shims/client-locale.d.ts +1 -2
- package/dist/shims/client-locale.js +1 -3
- package/dist/shims/compat-router.d.ts +1 -2
- package/dist/shims/compat-router.js +0 -2
- package/dist/shims/config.d.ts +1 -2
- package/dist/shims/config.js +0 -2
- package/dist/shims/constants.d.ts +1 -2
- package/dist/shims/constants.js +0 -2
- package/dist/shims/default-global-error.d.ts +3 -4
- package/dist/shims/default-global-error.js +0 -2
- package/dist/shims/default-not-found.d.ts +1 -2
- package/dist/shims/default-not-found.js +0 -2
- package/dist/shims/document.d.ts +5 -7
- package/dist/shims/document.js +0 -2
- package/dist/shims/dynamic.d.ts +1 -2
- package/dist/shims/dynamic.js +0 -2
- package/dist/shims/error-boundary.d.ts +32 -18
- package/dist/shims/error-boundary.js +43 -3
- package/dist/shims/error.d.ts +1 -2
- package/dist/shims/error.js +0 -2
- package/dist/shims/fetch-cache.d.ts +14 -2
- package/dist/shims/fetch-cache.js +20 -5
- package/dist/shims/font-google-base.d.ts +1 -2
- package/dist/shims/font-google-base.js +1 -13
- package/dist/shims/font-local.d.ts +1 -2
- package/dist/shims/font-local.js +1 -15
- package/dist/shims/font-utils.d.ts +7 -2
- package/dist/shims/font-utils.js +13 -3
- package/dist/shims/form.d.ts +12 -5
- package/dist/shims/form.js +98 -21
- package/dist/shims/hash-scroll.d.ts +2 -2
- package/dist/shims/hash-scroll.js +3 -3
- package/dist/shims/head-state.d.ts +1 -2
- package/dist/shims/head-state.js +0 -2
- package/dist/shims/head.d.ts +1 -2
- package/dist/shims/head.js +0 -2
- package/dist/shims/headers.d.ts +9 -2
- package/dist/shims/headers.js +13 -3
- package/dist/shims/i18n-context.d.ts +1 -2
- package/dist/shims/i18n-context.js +0 -2
- package/dist/shims/i18n-state.d.ts +1 -2
- package/dist/shims/i18n-state.js +0 -2
- package/dist/shims/image-config.d.ts +1 -2
- package/dist/shims/image-config.js +0 -2
- package/dist/shims/image.d.ts +1 -2
- package/dist/shims/image.js +1 -3
- package/dist/shims/internal/als-registry.d.ts +1 -2
- package/dist/shims/internal/als-registry.js +0 -2
- package/dist/shims/internal/api-utils.d.ts +1 -2
- package/dist/shims/internal/app-route-detection.d.ts +1 -2
- package/dist/shims/internal/app-route-detection.js +0 -2
- package/dist/shims/internal/app-router-context.d.ts +1 -2
- package/dist/shims/internal/app-router-context.js +0 -2
- package/dist/shims/internal/cookie-serialize.d.ts +1 -2
- package/dist/shims/internal/cookie-serialize.js +0 -2
- package/dist/shims/internal/link-status-registry.d.ts +43 -0
- package/dist/shims/internal/link-status-registry.js +42 -0
- package/dist/shims/internal/make-hanging-promise.d.ts +1 -2
- package/dist/shims/internal/make-hanging-promise.js +0 -2
- package/dist/shims/internal/pages-data-fetch-dedup.d.ts +1 -2
- package/dist/shims/internal/pages-data-fetch-dedup.js +0 -2
- package/dist/shims/internal/pages-data-target.d.ts +1 -2
- package/dist/shims/internal/pages-data-target.js +0 -2
- package/dist/shims/internal/pages-data-url.d.ts +1 -2
- package/dist/shims/internal/pages-data-url.js +0 -2
- package/dist/shims/internal/parse-cookie-header.d.ts +1 -2
- package/dist/shims/internal/parse-cookie-header.js +0 -2
- package/dist/shims/internal/route-pattern-for-warning.d.ts +27 -0
- package/dist/shims/internal/route-pattern-for-warning.js +40 -0
- package/dist/shims/internal/router-context.d.ts +2 -4
- package/dist/shims/internal/router-context.js +0 -2
- package/dist/shims/internal/utils.d.ts +2 -2
- package/dist/shims/internal/utils.js +0 -2
- package/dist/shims/internal/work-unit-async-storage.d.ts +1 -2
- package/dist/shims/internal/work-unit-async-storage.js +0 -2
- package/dist/shims/layout-segment-context.d.ts +2 -4
- package/dist/shims/layout-segment-context.js +0 -2
- package/dist/shims/legacy-image.d.ts +1 -2
- package/dist/shims/legacy-image.js +0 -2
- package/dist/shims/link-prefetch.d.ts +1 -2
- package/dist/shims/link-prefetch.js +0 -2
- package/dist/shims/link.d.ts +2 -2
- package/dist/shims/link.js +40 -20
- package/dist/shims/metadata.d.ts +4 -5
- package/dist/shims/metadata.js +1 -3
- package/dist/shims/navigation-state.d.ts +1 -2
- package/dist/shims/navigation-state.js +0 -2
- package/dist/shims/navigation.d.ts +25 -9
- package/dist/shims/navigation.js +251 -46
- package/dist/shims/navigation.react-server.d.ts +1 -2
- package/dist/shims/navigation.react-server.js +0 -2
- package/dist/shims/offline.d.ts +1 -2
- package/dist/shims/offline.js +0 -2
- package/dist/shims/og.d.ts +1 -2
- package/dist/shims/og.js +2 -4
- package/dist/shims/pages-router-runtime.d.ts +7 -2
- package/dist/shims/pages-router-runtime.js +11 -3
- package/dist/shims/ppr-fallback-shell.d.ts +29 -0
- package/dist/shims/ppr-fallback-shell.js +149 -0
- package/dist/shims/readonly-url-search-params.d.ts +1 -2
- package/dist/shims/readonly-url-search-params.js +0 -2
- package/dist/shims/request-context.d.ts +9 -5
- package/dist/shims/request-context.js +0 -2
- package/dist/shims/request-state-types.d.ts +1 -1
- package/dist/shims/root-params.d.ts +1 -2
- package/dist/shims/root-params.js +0 -2
- package/dist/shims/router-state.d.ts +2 -2
- package/dist/shims/router-state.js +2 -2
- package/dist/shims/router.d.ts +6 -4
- package/dist/shims/router.js +262 -40
- package/dist/shims/script-nonce-context.d.ts +1 -2
- package/dist/shims/script-nonce-context.js +0 -2
- package/dist/shims/script.d.ts +1 -2
- package/dist/shims/script.js +0 -2
- package/dist/shims/server.d.ts +1 -2
- package/dist/shims/server.js +0 -2
- package/dist/shims/slot.d.ts +11 -4
- package/dist/shims/slot.js +121 -9
- package/dist/shims/thenable-params.d.ts +2 -2
- package/dist/shims/thenable-params.js +107 -12
- package/dist/shims/unified-request-context.d.ts +1 -2
- package/dist/shims/unified-request-context.js +0 -2
- package/dist/shims/unrecognized-action-error.d.ts +1 -2
- package/dist/shims/unrecognized-action-error.js +0 -2
- package/dist/shims/url-safety.d.ts +1 -2
- package/dist/shims/url-safety.js +0 -2
- package/dist/shims/url-utils.d.ts +1 -2
- package/dist/shims/url-utils.js +0 -2
- package/dist/shims/use-merged-ref.d.ts +1 -2
- package/dist/shims/use-merged-ref.js +0 -2
- package/dist/shims/web-vitals.d.ts +1 -2
- package/dist/shims/web-vitals.js +0 -2
- package/dist/typegen.d.ts +1 -2
- package/dist/typegen.js +2 -9
- package/dist/utils/asset-prefix.d.ts +1 -2
- package/dist/utils/asset-prefix.js +0 -2
- package/dist/utils/base-path.d.ts +1 -2
- package/dist/utils/base-path.js +0 -2
- package/dist/utils/cache-control-metadata.d.ts +1 -4
- package/dist/utils/cache-control-metadata.js +1 -3
- package/dist/utils/client-build-manifest.d.ts +8 -2
- package/dist/utils/client-build-manifest.js +30 -7
- package/dist/utils/client-entry-manifest.d.ts +11 -0
- package/dist/utils/client-entry-manifest.js +29 -0
- package/dist/utils/compare.d.ts +4 -0
- package/dist/utils/compare.js +8 -0
- package/dist/utils/dev-error-recovery-event.d.ts +4 -0
- package/dist/utils/dev-error-recovery-event.js +4 -0
- package/dist/utils/domain-locale.d.ts +1 -2
- package/dist/utils/domain-locale.js +2 -4
- package/dist/utils/encode-cache-tag.d.ts +1 -2
- package/dist/utils/encode-cache-tag.js +0 -2
- package/dist/utils/error-cause.d.ts +1 -2
- package/dist/utils/error-cause.js +0 -2
- package/dist/utils/hash.d.ts +1 -2
- package/dist/utils/hash.js +0 -2
- package/dist/utils/html-limited-bots.d.ts +1 -2
- package/dist/utils/html-limited-bots.js +0 -2
- package/dist/utils/lazy-chunks.d.ts +1 -2
- package/dist/utils/lazy-chunks.js +0 -2
- package/dist/utils/manifest-paths.d.ts +8 -3
- package/dist/utils/manifest-paths.js +15 -3
- package/dist/utils/mdx-scan.d.ts +1 -2
- package/dist/utils/mdx-scan.js +0 -2
- package/dist/utils/navigation-signal.d.ts +1 -2
- package/dist/utils/navigation-signal.js +0 -2
- package/dist/utils/number.d.ts +4 -0
- package/dist/utils/number.js +6 -0
- package/dist/utils/path.d.ts +4 -2
- package/dist/utils/path.js +5 -3
- package/dist/utils/prerender-output-paths.d.ts +1 -2
- package/dist/utils/prerender-output-paths.js +0 -2
- package/dist/utils/project.d.ts +1 -2
- package/dist/utils/project.js +0 -2
- package/dist/utils/promise.d.ts +4 -0
- package/dist/utils/promise.js +6 -0
- package/dist/utils/public-routes.d.ts +1 -2
- package/dist/utils/public-routes.js +0 -2
- package/dist/utils/query.d.ts +1 -2
- package/dist/utils/query.js +0 -2
- package/dist/utils/record.d.ts +1 -2
- package/dist/utils/record.js +0 -2
- package/dist/utils/regex.d.ts +4 -0
- package/dist/utils/regex.js +6 -0
- package/dist/utils/safe-json-file.d.ts +1 -2
- package/dist/utils/safe-json-file.js +0 -2
- package/dist/utils/sorted-array.d.ts +1 -2
- package/dist/utils/sorted-array.js +0 -2
- package/dist/utils/text-stream.d.ts +1 -2
- package/dist/utils/text-stream.js +0 -2
- package/dist/utils/vinext-root.d.ts +1 -2
- package/dist/utils/vinext-root.js +0 -2
- package/dist/utils/vite-version.d.ts +1 -2
- package/dist/utils/vite-version.js +0 -2
- package/package.json +23 -6
- package/dist/build/clean-output.js.map +0 -1
- package/dist/build/client-build-config.js.map +0 -1
- package/dist/build/google-fonts/build-url.js.map +0 -1
- package/dist/build/google-fonts/fallback-metrics-data.js.map +0 -1
- package/dist/build/google-fonts/fallback-metrics.js.map +0 -1
- package/dist/build/google-fonts/font-data.js.map +0 -1
- package/dist/build/google-fonts/font-metadata.js.map +0 -1
- package/dist/build/google-fonts/get-axes.js.map +0 -1
- package/dist/build/google-fonts/sort-variants.js.map +0 -1
- package/dist/build/google-fonts/validate.js.map +0 -1
- package/dist/build/inline-css.js.map +0 -1
- package/dist/build/layout-classification.js.map +0 -1
- package/dist/build/nitro-route-rules.js.map +0 -1
- package/dist/build/precompress.js.map +0 -1
- package/dist/build/prerender.js.map +0 -1
- package/dist/build/report.js.map +0 -1
- package/dist/build/route-classification-injector.js.map +0 -1
- package/dist/build/route-classification-manifest.js.map +0 -1
- package/dist/build/run-prerender.js.map +0 -1
- package/dist/build/server-manifest.js.map +0 -1
- package/dist/build/ssr-manifest.js.map +0 -1
- package/dist/build/standalone.js.map +0 -1
- package/dist/build/static-export.js.map +0 -1
- package/dist/check.js.map +0 -1
- package/dist/cli-args.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/client/instrumentation-client-inject.js.map +0 -1
- package/dist/client/instrumentation-client-state.js.map +0 -1
- package/dist/client/instrumentation-client.js.map +0 -1
- package/dist/client/navigation-runtime.js.map +0 -1
- package/dist/client/pages-router-link-navigation.js.map +0 -1
- package/dist/client/validate-module-path.js.map +0 -1
- package/dist/client/vinext-next-data.js.map +0 -1
- package/dist/client/window-next.js.map +0 -1
- package/dist/cloudflare/kv-cache-handler.js.map +0 -1
- package/dist/cloudflare/tpr.js.map +0 -1
- package/dist/config/config-matchers.js.map +0 -1
- package/dist/config/dotenv.js.map +0 -1
- package/dist/config/next-config.js.map +0 -1
- package/dist/config/tsconfig-paths.js.map +0 -1
- package/dist/deploy.js.map +0 -1
- package/dist/entries/app-browser-entry.js.map +0 -1
- package/dist/entries/app-rsc-entry.js.map +0 -1
- package/dist/entries/app-rsc-manifest.js.map +0 -1
- package/dist/entries/app-ssr-entry.js.map +0 -1
- package/dist/entries/pages-client-entry.js.map +0 -1
- package/dist/entries/pages-entry-helpers.js.map +0 -1
- package/dist/entries/pages-server-entry.js.map +0 -1
- package/dist/entries/runtime-entry-module.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init.js.map +0 -1
- package/dist/plugins/async-hooks-stub.js.map +0 -1
- package/dist/plugins/client-reference-dedup.js.map +0 -1
- package/dist/plugins/css-data-url.js.map +0 -1
- package/dist/plugins/fonts.js.map +0 -1
- package/dist/plugins/import-meta-url.js.map +0 -1
- package/dist/plugins/instrumentation-client.js.map +0 -1
- package/dist/plugins/middleware-server-only.js.map +0 -1
- package/dist/plugins/og-assets.js.map +0 -1
- package/dist/plugins/optimize-imports.js.map +0 -1
- package/dist/plugins/postcss.js.map +0 -1
- package/dist/plugins/remove-console.js.map +0 -1
- package/dist/plugins/rsc-client-reference-loaders.js.map +0 -1
- package/dist/plugins/rsc-client-shim-excludes.js.map +0 -1
- package/dist/plugins/sass.js.map +0 -1
- package/dist/plugins/server-externals-manifest.js.map +0 -1
- package/dist/plugins/strip-server-exports.js.map +0 -1
- package/dist/routing/app-route-graph.js.map +0 -1
- package/dist/routing/app-router.js.map +0 -1
- package/dist/routing/file-matcher.js.map +0 -1
- package/dist/routing/pages-router.js.map +0 -1
- package/dist/routing/route-matching.js.map +0 -1
- package/dist/routing/route-pattern.js.map +0 -1
- package/dist/routing/route-trie.js.map +0 -1
- package/dist/routing/route-validation.js.map +0 -1
- package/dist/routing/utils.js.map +0 -1
- package/dist/server/api-handler.js.map +0 -1
- package/dist/server/app-browser-action-result.js.map +0 -1
- package/dist/server/app-browser-entry.js.map +0 -1
- package/dist/server/app-browser-error.js.map +0 -1
- package/dist/server/app-browser-hydration.js.map +0 -1
- package/dist/server/app-browser-interception-context.js.map +0 -1
- package/dist/server/app-browser-mpa-navigation.js.map +0 -1
- package/dist/server/app-browser-navigation-controller.js.map +0 -1
- package/dist/server/app-browser-popstate.js.map +0 -1
- package/dist/server/app-browser-rsc-redirect.js.map +0 -1
- package/dist/server/app-browser-state.js.map +0 -1
- package/dist/server/app-browser-stream.js.map +0 -1
- package/dist/server/app-browser-visible-commit.js.map +0 -1
- package/dist/server/app-client-reference-preloader.js.map +0 -1
- package/dist/server/app-elements-wire.js.map +0 -1
- package/dist/server/app-elements.js.map +0 -1
- package/dist/server/app-fallback-renderer.js.map +0 -1
- package/dist/server/app-history-state.js.map +0 -1
- package/dist/server/app-hook-warning-suppression.js.map +0 -1
- package/dist/server/app-inline-css-client.js.map +0 -1
- package/dist/server/app-interception-context-header.js.map +0 -1
- package/dist/server/app-layout-param-observation.js.map +0 -1
- package/dist/server/app-middleware.js.map +0 -1
- package/dist/server/app-mounted-slots-header.js.map +0 -1
- package/dist/server/app-optimistic-routing.js.map +0 -1
- package/dist/server/app-page-boundary-render.js.map +0 -1
- package/dist/server/app-page-boundary.js.map +0 -1
- package/dist/server/app-page-cache.js.map +0 -1
- package/dist/server/app-page-dispatch.js.map +0 -1
- package/dist/server/app-page-element-builder.js.map +0 -1
- package/dist/server/app-page-execution.js.map +0 -1
- package/dist/server/app-page-head.js.map +0 -1
- package/dist/server/app-page-method.js.map +0 -1
- package/dist/server/app-page-params.js.map +0 -1
- package/dist/server/app-page-probe.js.map +0 -1
- package/dist/server/app-page-render-identity.js.map +0 -1
- package/dist/server/app-page-render-observation.js.map +0 -1
- package/dist/server/app-page-render.js.map +0 -1
- package/dist/server/app-page-request.js.map +0 -1
- package/dist/server/app-page-response.js.map +0 -1
- package/dist/server/app-page-route-wiring.js.map +0 -1
- package/dist/server/app-page-segment-state.js.map +0 -1
- package/dist/server/app-page-stream.js.map +0 -1
- package/dist/server/app-post-middleware-context.js.map +0 -1
- package/dist/server/app-prerender-endpoints.js.map +0 -1
- package/dist/server/app-prerender-static-params.js.map +0 -1
- package/dist/server/app-render-dependency.js.map +0 -1
- package/dist/server/app-request-context.js.map +0 -1
- package/dist/server/app-route-handler-cache.js.map +0 -1
- package/dist/server/app-route-handler-dispatch.js.map +0 -1
- package/dist/server/app-route-handler-execution.js.map +0 -1
- package/dist/server/app-route-handler-policy.js.map +0 -1
- package/dist/server/app-route-handler-response.js.map +0 -1
- package/dist/server/app-route-handler-runtime.js.map +0 -1
- package/dist/server/app-router-entry.js.map +0 -1
- package/dist/server/app-rsc-cache-busting.js.map +0 -1
- package/dist/server/app-rsc-embedded-chunks.js.map +0 -1
- package/dist/server/app-rsc-error-handler.js.map +0 -1
- package/dist/server/app-rsc-errors.js.map +0 -1
- package/dist/server/app-rsc-handler.js.map +0 -1
- package/dist/server/app-rsc-render-mode.js.map +0 -1
- package/dist/server/app-rsc-request-normalization.js.map +0 -1
- package/dist/server/app-rsc-response-finalizer.js.map +0 -1
- package/dist/server/app-rsc-route-matching.js.map +0 -1
- package/dist/server/app-segment-config.js.map +0 -1
- package/dist/server/app-server-action-execution.js.map +0 -1
- package/dist/server/app-ssr-entry.js.map +0 -1
- package/dist/server/app-ssr-error-meta.js.map +0 -1
- package/dist/server/app-ssr-stream.js.map +0 -1
- package/dist/server/app-static-generation.js.map +0 -1
- package/dist/server/artifact-compatibility.js.map +0 -1
- package/dist/server/cache-control.js.map +0 -1
- package/dist/server/cache-headers.js.map +0 -1
- package/dist/server/cache-proof.js.map +0 -1
- package/dist/server/client-reuse-manifest.js.map +0 -1
- package/dist/server/client-trace-metadata.js.map +0 -1
- package/dist/server/cookie-utils.js.map +0 -1
- package/dist/server/csp.js.map +0 -1
- package/dist/server/default-global-error-module.js.map +0 -1
- package/dist/server/default-not-found-module.js.map +0 -1
- package/dist/server/dev-error-overlay-store.js.map +0 -1
- package/dist/server/dev-error-overlay.js.map +0 -1
- package/dist/server/dev-lockfile.js.map +0 -1
- package/dist/server/dev-module-runner.js.map +0 -1
- package/dist/server/dev-origin-check.js.map +0 -1
- package/dist/server/dev-route-files.js.map +0 -1
- package/dist/server/dev-server.js.map +0 -1
- package/dist/server/document-initial-head.js.map +0 -1
- package/dist/server/edge-api-runtime.js.map +0 -1
- package/dist/server/file-based-metadata.js.map +0 -1
- package/dist/server/headers.js.map +0 -1
- package/dist/server/html.js.map +0 -1
- package/dist/server/http-error-responses.js.map +0 -1
- package/dist/server/image-optimization.js.map +0 -1
- package/dist/server/implicit-tags.js.map +0 -1
- package/dist/server/instrumentation-runtime.js.map +0 -1
- package/dist/server/instrumentation.js.map +0 -1
- package/dist/server/isr-cache.js.map +0 -1
- package/dist/server/metadata-route-build-data.js.map +0 -1
- package/dist/server/metadata-route-response.js.map +0 -1
- package/dist/server/metadata-routes.js.map +0 -1
- package/dist/server/middleware-matcher.js.map +0 -1
- package/dist/server/middleware-request-headers.js.map +0 -1
- package/dist/server/middleware-response-headers.js.map +0 -1
- package/dist/server/middleware-runtime.js.map +0 -1
- package/dist/server/middleware.js.map +0 -1
- package/dist/server/navigation-planner.js.map +0 -1
- package/dist/server/navigation-trace.js.map +0 -1
- package/dist/server/next-error-digest.js.map +0 -1
- package/dist/server/normalize-path.js.map +0 -1
- package/dist/server/pages-api-route.js.map +0 -1
- package/dist/server/pages-body-parser-config.js.map +0 -1
- package/dist/server/pages-data-route.js.map +0 -1
- package/dist/server/pages-default-404.js.map +0 -1
- package/dist/server/pages-document-initial-props.js.map +0 -1
- package/dist/server/pages-i18n.js.map +0 -1
- package/dist/server/pages-media-type.js.map +0 -1
- package/dist/server/pages-node-compat.js.map +0 -1
- package/dist/server/pages-page-data.js.map +0 -1
- package/dist/server/pages-page-method.js.map +0 -1
- package/dist/server/pages-page-response.js.map +0 -1
- package/dist/server/pages-serializable-props.js.map +0 -1
- package/dist/server/prerender-route-params.js.map +0 -1
- package/dist/server/prerender-work-unit-setup.js.map +0 -1
- package/dist/server/prod-server.js.map +0 -1
- package/dist/server/proxy-trust.js.map +0 -1
- package/dist/server/request-log.js.map +0 -1
- package/dist/server/request-pipeline.js.map +0 -1
- package/dist/server/rsc-stream-hints.js.map +0 -1
- package/dist/server/seed-cache.js.map +0 -1
- package/dist/server/server-action-not-found.js.map +0 -1
- package/dist/server/server-globals.js.map +0 -1
- package/dist/server/skip-cache-proof.js.map +0 -1
- package/dist/server/socket-error-backstop.js.map +0 -1
- package/dist/server/static-file-cache.js.map +0 -1
- package/dist/server/static-layout-client-reuse-proof.js.map +0 -1
- package/dist/server/streaming-metadata.js.map +0 -1
- package/dist/server/worker-utils.js.map +0 -1
- package/dist/shims/amp.js.map +0 -1
- package/dist/shims/app-router-scroll-state.js.map +0 -1
- package/dist/shims/app-router-scroll.js.map +0 -1
- package/dist/shims/app.js.map +0 -1
- package/dist/shims/before-interactive-context.js.map +0 -1
- package/dist/shims/cache-for-request.js.map +0 -1
- package/dist/shims/cache-runtime.js.map +0 -1
- package/dist/shims/cache.js.map +0 -1
- package/dist/shims/client-hook-error.js.map +0 -1
- package/dist/shims/client-locale.js.map +0 -1
- package/dist/shims/compat-router.js.map +0 -1
- package/dist/shims/config.js.map +0 -1
- package/dist/shims/constants.js.map +0 -1
- package/dist/shims/default-global-error.js.map +0 -1
- package/dist/shims/default-not-found.js.map +0 -1
- package/dist/shims/document.js.map +0 -1
- package/dist/shims/dynamic.js.map +0 -1
- package/dist/shims/error-boundary.js.map +0 -1
- package/dist/shims/error.js.map +0 -1
- package/dist/shims/fetch-cache.js.map +0 -1
- package/dist/shims/font-google-base.js.map +0 -1
- package/dist/shims/font-local.js.map +0 -1
- package/dist/shims/font-utils.js.map +0 -1
- package/dist/shims/form.js.map +0 -1
- package/dist/shims/hash-scroll.js.map +0 -1
- package/dist/shims/head-state.js.map +0 -1
- package/dist/shims/head.js.map +0 -1
- package/dist/shims/headers.js.map +0 -1
- package/dist/shims/i18n-context.js.map +0 -1
- package/dist/shims/i18n-state.js.map +0 -1
- package/dist/shims/image-config.js.map +0 -1
- package/dist/shims/image.js.map +0 -1
- package/dist/shims/internal/als-registry.js.map +0 -1
- package/dist/shims/internal/app-route-detection.js.map +0 -1
- package/dist/shims/internal/app-router-context.js.map +0 -1
- package/dist/shims/internal/cookie-serialize.js.map +0 -1
- package/dist/shims/internal/make-hanging-promise.js.map +0 -1
- package/dist/shims/internal/pages-data-fetch-dedup.js.map +0 -1
- package/dist/shims/internal/pages-data-target.js.map +0 -1
- package/dist/shims/internal/pages-data-url.js.map +0 -1
- package/dist/shims/internal/parse-cookie-header.js.map +0 -1
- package/dist/shims/internal/router-context.js.map +0 -1
- package/dist/shims/internal/utils.js.map +0 -1
- package/dist/shims/internal/work-unit-async-storage.js.map +0 -1
- package/dist/shims/layout-segment-context.js.map +0 -1
- package/dist/shims/legacy-image.js.map +0 -1
- package/dist/shims/link-prefetch.js.map +0 -1
- package/dist/shims/link.js.map +0 -1
- package/dist/shims/metadata.js.map +0 -1
- package/dist/shims/navigation-state.js.map +0 -1
- package/dist/shims/navigation.js.map +0 -1
- package/dist/shims/navigation.react-server.js.map +0 -1
- package/dist/shims/offline.js.map +0 -1
- package/dist/shims/og.js.map +0 -1
- package/dist/shims/pages-router-runtime.js.map +0 -1
- package/dist/shims/readonly-url-search-params.js.map +0 -1
- package/dist/shims/request-context.js.map +0 -1
- package/dist/shims/root-params.js.map +0 -1
- package/dist/shims/router-state.js.map +0 -1
- package/dist/shims/router.js.map +0 -1
- package/dist/shims/script-nonce-context.js.map +0 -1
- package/dist/shims/script.js.map +0 -1
- package/dist/shims/server.js.map +0 -1
- package/dist/shims/slot.js.map +0 -1
- package/dist/shims/thenable-params.js.map +0 -1
- package/dist/shims/unified-request-context.js.map +0 -1
- package/dist/shims/unrecognized-action-error.js.map +0 -1
- package/dist/shims/url-safety.js.map +0 -1
- package/dist/shims/url-utils.js.map +0 -1
- package/dist/shims/use-merged-ref.js.map +0 -1
- package/dist/shims/web-vitals.js.map +0 -1
- package/dist/typegen.js.map +0 -1
- package/dist/utils/asset-prefix.js.map +0 -1
- package/dist/utils/base-path.js.map +0 -1
- package/dist/utils/cache-control-metadata.js.map +0 -1
- package/dist/utils/client-build-manifest.js.map +0 -1
- package/dist/utils/domain-locale.js.map +0 -1
- package/dist/utils/encode-cache-tag.js.map +0 -1
- package/dist/utils/error-cause.js.map +0 -1
- package/dist/utils/hash.js.map +0 -1
- package/dist/utils/html-limited-bots.js.map +0 -1
- package/dist/utils/lazy-chunks.js.map +0 -1
- package/dist/utils/manifest-paths.js.map +0 -1
- package/dist/utils/mdx-scan.js.map +0 -1
- package/dist/utils/navigation-signal.js.map +0 -1
- package/dist/utils/path.js.map +0 -1
- package/dist/utils/prerender-output-paths.js.map +0 -1
- package/dist/utils/project.js.map +0 -1
- package/dist/utils/public-routes.js.map +0 -1
- package/dist/utils/query.js.map +0 -1
- package/dist/utils/record.js.map +0 -1
- package/dist/utils/safe-json-file.js.map +0 -1
- package/dist/utils/sorted-array.js.map +0 -1
- package/dist/utils/text-stream.js.map +0 -1
- package/dist/utils/vinext-root.js.map +0 -1
- package/dist/utils/vite-version.js.map +0 -1
package/dist/check.d.ts
CHANGED
|
@@ -25,6 +25,38 @@ type CheckResult = {
|
|
|
25
25
|
score: number;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Report whether `content` makes a free use of the CommonJS globals `__dirname` or
|
|
30
|
+
* `__filename` in real code — i.e. not inside a string literal, comment, regex
|
|
31
|
+
* literal, or plain template literal. Identifiers inside a template expression
|
|
32
|
+
* (`` `${__dirname}` ``) DO count, since that is real code.
|
|
33
|
+
*
|
|
34
|
+
* This is a hand-written single-pass scanner rather than a regex on purpose. The
|
|
35
|
+
* previous implementation used an alternation regex whose string-body sub-pattern
|
|
36
|
+
* `(?:[^"\\]|\\.)*` is a star over an alternation group; V8 cannot compile that into
|
|
37
|
+
* a tight loop, so it pushes one backtrack frame per character and overflows the
|
|
38
|
+
* regex stack ("Maximum call stack size exceeded") on very large files — e.g. a
|
|
39
|
+
* multi-megabyte minified bundle or a long/unterminated string literal. This scanner
|
|
40
|
+
* runs in O(n) time and O(template-nesting) stack, so it cannot blow up on large input.
|
|
41
|
+
*
|
|
42
|
+
* It is a lexer-grade scanner, not a parser: it tracks just enough state (string /
|
|
43
|
+
* template / comment / regex contexts, and whether a `/` is in expression position)
|
|
44
|
+
* to avoid mistaking quotes inside one context for the start of another. Where the
|
|
45
|
+
* division-vs-regex distinction is ambiguous it biases toward division, because a
|
|
46
|
+
* misread division is usually harmless (it never consumes a following identifier)
|
|
47
|
+
* whereas a misread regex would swallow the rest of the line and could hide a later
|
|
48
|
+
* __dirname.
|
|
49
|
+
*
|
|
50
|
+
* Known limitation: telling a value-position regex literal apart from division after
|
|
51
|
+
* a `}` needs real parser context (was the `}` a block or an object?). We bias to
|
|
52
|
+
* division, so a regex used in value position — e.g. a statement-start regex after a
|
|
53
|
+
* block `}`, like `function f(){} /'/.test(x)` — is read as division; if its body
|
|
54
|
+
* contains an unpaired quote/backtick, that quote opens a string that can mask a
|
|
55
|
+
* __dirname *on the same line*. This is rare in hand-written source, the multi-line
|
|
56
|
+
* case is unaffected (string scanning stops at the newline), and the check is only
|
|
57
|
+
* advisory — so we accept it rather than pull in a full parser.
|
|
58
|
+
*/
|
|
59
|
+
declare function hasFreeCjsGlobal(content: string): boolean;
|
|
28
60
|
/**
|
|
29
61
|
* Scan source files for `import ... from 'next/...'` statements.
|
|
30
62
|
*/
|
|
@@ -52,5 +84,4 @@ declare function formatReport(result: CheckResult, opts?: {
|
|
|
52
84
|
calledFromInit?: boolean;
|
|
53
85
|
}): string;
|
|
54
86
|
//#endregion
|
|
55
|
-
export { CheckResult, analyzeConfig, checkConventions, checkLibraries, formatReport, runCheck, scanImports };
|
|
56
|
-
//# sourceMappingURL=check.d.ts.map
|
|
87
|
+
export { CheckResult, analyzeConfig, checkConventions, checkLibraries, formatReport, hasFreeCjsGlobal, runCheck, scanImports };
|
package/dist/check.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { detectPackageManager } from "./utils/project.js";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { parseAst } from "vite";
|
|
4
5
|
//#region src/check.ts
|
|
5
6
|
/**
|
|
6
7
|
* vinext check — compatibility scanner for Next.js apps
|
|
@@ -349,6 +350,200 @@ function findSourceFiles(dir, extensions = [
|
|
|
349
350
|
}
|
|
350
351
|
return results;
|
|
351
352
|
}
|
|
353
|
+
function isIdentStart(c) {
|
|
354
|
+
return c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c === "_" || c === "$";
|
|
355
|
+
}
|
|
356
|
+
function isIdentChar(c) {
|
|
357
|
+
return c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c >= "0" && c <= "9" || c === "_" || c === "$";
|
|
358
|
+
}
|
|
359
|
+
const CJS_GLOBALS = new Set(["__dirname", "__filename"]);
|
|
360
|
+
const REGEX_PRECEDING_KEYWORDS = new Set([
|
|
361
|
+
"return",
|
|
362
|
+
"typeof",
|
|
363
|
+
"instanceof",
|
|
364
|
+
"in",
|
|
365
|
+
"of",
|
|
366
|
+
"new",
|
|
367
|
+
"delete",
|
|
368
|
+
"void",
|
|
369
|
+
"do",
|
|
370
|
+
"else",
|
|
371
|
+
"yield",
|
|
372
|
+
"await",
|
|
373
|
+
"case",
|
|
374
|
+
"throw"
|
|
375
|
+
]);
|
|
376
|
+
/**
|
|
377
|
+
* Report whether `content` makes a free use of the CommonJS globals `__dirname` or
|
|
378
|
+
* `__filename` in real code — i.e. not inside a string literal, comment, regex
|
|
379
|
+
* literal, or plain template literal. Identifiers inside a template expression
|
|
380
|
+
* (`` `${__dirname}` ``) DO count, since that is real code.
|
|
381
|
+
*
|
|
382
|
+
* This is a hand-written single-pass scanner rather than a regex on purpose. The
|
|
383
|
+
* previous implementation used an alternation regex whose string-body sub-pattern
|
|
384
|
+
* `(?:[^"\\]|\\.)*` is a star over an alternation group; V8 cannot compile that into
|
|
385
|
+
* a tight loop, so it pushes one backtrack frame per character and overflows the
|
|
386
|
+
* regex stack ("Maximum call stack size exceeded") on very large files — e.g. a
|
|
387
|
+
* multi-megabyte minified bundle or a long/unterminated string literal. This scanner
|
|
388
|
+
* runs in O(n) time and O(template-nesting) stack, so it cannot blow up on large input.
|
|
389
|
+
*
|
|
390
|
+
* It is a lexer-grade scanner, not a parser: it tracks just enough state (string /
|
|
391
|
+
* template / comment / regex contexts, and whether a `/` is in expression position)
|
|
392
|
+
* to avoid mistaking quotes inside one context for the start of another. Where the
|
|
393
|
+
* division-vs-regex distinction is ambiguous it biases toward division, because a
|
|
394
|
+
* misread division is usually harmless (it never consumes a following identifier)
|
|
395
|
+
* whereas a misread regex would swallow the rest of the line and could hide a later
|
|
396
|
+
* __dirname.
|
|
397
|
+
*
|
|
398
|
+
* Known limitation: telling a value-position regex literal apart from division after
|
|
399
|
+
* a `}` needs real parser context (was the `}` a block or an object?). We bias to
|
|
400
|
+
* division, so a regex used in value position — e.g. a statement-start regex after a
|
|
401
|
+
* block `}`, like `function f(){} /'/.test(x)` — is read as division; if its body
|
|
402
|
+
* contains an unpaired quote/backtick, that quote opens a string that can mask a
|
|
403
|
+
* __dirname *on the same line*. This is rare in hand-written source, the multi-line
|
|
404
|
+
* case is unaffected (string scanning stops at the newline), and the check is only
|
|
405
|
+
* advisory — so we accept it rather than pull in a full parser.
|
|
406
|
+
*/
|
|
407
|
+
function hasFreeCjsGlobal(content) {
|
|
408
|
+
const n = content.length;
|
|
409
|
+
const stack = [{
|
|
410
|
+
kind: "code",
|
|
411
|
+
depth: 0,
|
|
412
|
+
isExpr: false,
|
|
413
|
+
prevType: "op"
|
|
414
|
+
}];
|
|
415
|
+
let i = 0;
|
|
416
|
+
while (i < n) {
|
|
417
|
+
const top = stack[stack.length - 1];
|
|
418
|
+
const ch = content[i];
|
|
419
|
+
if (top.kind === "template") {
|
|
420
|
+
if (ch === "\\") {
|
|
421
|
+
i += 2;
|
|
422
|
+
continue;
|
|
423
|
+
}
|
|
424
|
+
if (ch === "`") {
|
|
425
|
+
stack.pop();
|
|
426
|
+
const outer = stack[stack.length - 1];
|
|
427
|
+
if (outer) outer.prevType = "value";
|
|
428
|
+
i++;
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
if (ch === "$" && content[i + 1] === "{") {
|
|
432
|
+
stack.push({
|
|
433
|
+
kind: "code",
|
|
434
|
+
depth: 0,
|
|
435
|
+
isExpr: true,
|
|
436
|
+
prevType: "op"
|
|
437
|
+
});
|
|
438
|
+
i += 2;
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
i++;
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
444
|
+
if (ch === "/" && content[i + 1] === "/") {
|
|
445
|
+
i += 2;
|
|
446
|
+
while (i < n && content[i] !== "\n") i++;
|
|
447
|
+
continue;
|
|
448
|
+
}
|
|
449
|
+
if (ch === "/" && content[i + 1] === "*") {
|
|
450
|
+
i += 2;
|
|
451
|
+
while (i < n && !(content[i] === "*" && content[i + 1] === "/")) i++;
|
|
452
|
+
i += 2;
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
if (ch === "/") {
|
|
456
|
+
if (top.prevType === "op") {
|
|
457
|
+
i++;
|
|
458
|
+
let inClass = false;
|
|
459
|
+
while (i < n) {
|
|
460
|
+
const c = content[i];
|
|
461
|
+
if (c === "\\") {
|
|
462
|
+
i += 2;
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
if (c === "\n") break;
|
|
466
|
+
if (c === "[") inClass = true;
|
|
467
|
+
else if (c === "]") inClass = false;
|
|
468
|
+
else if (c === "/" && !inClass) {
|
|
469
|
+
i++;
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
i++;
|
|
473
|
+
}
|
|
474
|
+
while (i < n && isIdentChar(content[i])) i++;
|
|
475
|
+
top.prevType = "value";
|
|
476
|
+
continue;
|
|
477
|
+
}
|
|
478
|
+
top.prevType = "op";
|
|
479
|
+
i++;
|
|
480
|
+
continue;
|
|
481
|
+
}
|
|
482
|
+
if (ch === "\"" || ch === "'") {
|
|
483
|
+
i++;
|
|
484
|
+
while (i < n) {
|
|
485
|
+
const c = content[i];
|
|
486
|
+
if (c === "\\") {
|
|
487
|
+
i += 2;
|
|
488
|
+
continue;
|
|
489
|
+
}
|
|
490
|
+
if (c === ch || c === "\n") break;
|
|
491
|
+
i++;
|
|
492
|
+
}
|
|
493
|
+
i++;
|
|
494
|
+
top.prevType = "value";
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
if (ch === "`") {
|
|
498
|
+
stack.push({
|
|
499
|
+
kind: "template",
|
|
500
|
+
depth: 0,
|
|
501
|
+
isExpr: false,
|
|
502
|
+
prevType: "op"
|
|
503
|
+
});
|
|
504
|
+
i++;
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
if (ch === "{") {
|
|
508
|
+
top.depth++;
|
|
509
|
+
top.prevType = "op";
|
|
510
|
+
i++;
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
if (ch === "}") {
|
|
514
|
+
if (top.isExpr && top.depth === 0) stack.pop();
|
|
515
|
+
else {
|
|
516
|
+
if (top.depth > 0) top.depth--;
|
|
517
|
+
top.prevType = "value";
|
|
518
|
+
}
|
|
519
|
+
i++;
|
|
520
|
+
continue;
|
|
521
|
+
}
|
|
522
|
+
if (isIdentStart(ch)) {
|
|
523
|
+
const start = i;
|
|
524
|
+
i++;
|
|
525
|
+
while (i < n && isIdentChar(content[i])) i++;
|
|
526
|
+
const ident = content.slice(start, i);
|
|
527
|
+
if (CJS_GLOBALS.has(ident)) return true;
|
|
528
|
+
top.prevType = REGEX_PRECEDING_KEYWORDS.has(ident) ? "op" : "value";
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
531
|
+
if (ch >= "0" && ch <= "9") {
|
|
532
|
+
i++;
|
|
533
|
+
while (i < n && (isIdentChar(content[i]) || content[i] === ".")) i++;
|
|
534
|
+
top.prevType = "value";
|
|
535
|
+
continue;
|
|
536
|
+
}
|
|
537
|
+
if (ch === "+" && content[i + 1] === "+" || ch === "-" && content[i + 1] === "-") {
|
|
538
|
+
i += 2;
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
if (ch === ")" || ch === "]") top.prevType = "value";
|
|
542
|
+
else if (ch !== " " && ch !== " " && ch !== "\n" && ch !== "\r") top.prevType = "op";
|
|
543
|
+
i++;
|
|
544
|
+
}
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
352
547
|
/**
|
|
353
548
|
* Scan source files for `import ... from 'next/...'` statements.
|
|
354
549
|
*/
|
|
@@ -393,6 +588,106 @@ function scanImports(root) {
|
|
|
393
588
|
items.sort(compareByStatus);
|
|
394
589
|
return items;
|
|
395
590
|
}
|
|
591
|
+
/** The property key name of an object property, or null for spreads/computed keys. */
|
|
592
|
+
function propertyKeyName(prop) {
|
|
593
|
+
if (prop.type !== "Property" || prop.computed) return null;
|
|
594
|
+
const { key } = prop;
|
|
595
|
+
if (key.type === "Identifier") return key.name;
|
|
596
|
+
if (key.type === "Literal" && typeof key.value === "string") return key.value;
|
|
597
|
+
return null;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Parse a next.config file and collect the option keys off its exported config
|
|
601
|
+
* object — top-level keys plus, for each object-valued property, its child keys
|
|
602
|
+
* (used for dot-notation options like `experimental.ppr`).
|
|
603
|
+
*
|
|
604
|
+
* Uses Vite's `parseAst` (the bundled oxc parser) instead of scanning text, so
|
|
605
|
+
* comments, string values, and other non-key mentions of an option name are
|
|
606
|
+
* never mistaken for a real config option. Returns empty sets if the file cannot
|
|
607
|
+
* be parsed — the check is advisory, so a parse failure simply reports nothing.
|
|
608
|
+
*/
|
|
609
|
+
function collectConfigKeys(source) {
|
|
610
|
+
const top = /* @__PURE__ */ new Set();
|
|
611
|
+
const nested = /* @__PURE__ */ new Map();
|
|
612
|
+
let program;
|
|
613
|
+
try {
|
|
614
|
+
program = parseAst(source, { lang: "ts" });
|
|
615
|
+
} catch {
|
|
616
|
+
return {
|
|
617
|
+
top,
|
|
618
|
+
nested
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
const vars = /* @__PURE__ */ new Map();
|
|
622
|
+
for (const node of program.body) {
|
|
623
|
+
if (node.type !== "VariableDeclaration") continue;
|
|
624
|
+
for (const decl of node.declarations) if (decl.id.type === "Identifier" && decl.init) vars.set(decl.id.name, decl.init);
|
|
625
|
+
}
|
|
626
|
+
function collectReturnArgs(stmt, out) {
|
|
627
|
+
if (!stmt) return;
|
|
628
|
+
if (stmt.type === "ReturnStatement") {
|
|
629
|
+
if (stmt.argument) out.push(stmt.argument);
|
|
630
|
+
} else if (stmt.type === "BlockStatement") for (const s of stmt.body) collectReturnArgs(s, out);
|
|
631
|
+
else if (stmt.type === "IfStatement") {
|
|
632
|
+
collectReturnArgs(stmt.consequent, out);
|
|
633
|
+
collectReturnArgs(stmt.alternate, out);
|
|
634
|
+
} else if (stmt.type === "SwitchStatement") for (const c of stmt.cases) for (const s of c.consequent) collectReturnArgs(s, out);
|
|
635
|
+
else if (stmt.type === "TryStatement") {
|
|
636
|
+
collectReturnArgs(stmt.block, out);
|
|
637
|
+
if (stmt.handler) collectReturnArgs(stmt.handler.body, out);
|
|
638
|
+
collectReturnArgs(stmt.finalizer, out);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
function resolveObjects(node, depth = 0) {
|
|
642
|
+
if (!node || depth > 10) return [];
|
|
643
|
+
if (node.type === "ObjectExpression") return [node];
|
|
644
|
+
if (node.type === "Identifier") return resolveObjects(vars.get(node.name), depth + 1);
|
|
645
|
+
if (node.type === "CallExpression") {
|
|
646
|
+
for (const arg of node.arguments) {
|
|
647
|
+
const objs = resolveObjects(arg, depth + 1);
|
|
648
|
+
if (objs.length) return objs;
|
|
649
|
+
}
|
|
650
|
+
return [];
|
|
651
|
+
}
|
|
652
|
+
if (node.type === "ConditionalExpression") return [...resolveObjects(node.consequent, depth + 1), ...resolveObjects(node.alternate, depth + 1)];
|
|
653
|
+
if (node.type === "ArrowFunctionExpression" || node.type === "FunctionExpression" || node.type === "FunctionDeclaration") {
|
|
654
|
+
const body = node.body;
|
|
655
|
+
if (!body) return [];
|
|
656
|
+
if (body.type !== "BlockStatement") return resolveObjects(body, depth + 1);
|
|
657
|
+
const returns = [];
|
|
658
|
+
collectReturnArgs(body, returns);
|
|
659
|
+
return returns.flatMap((arg) => resolveObjects(arg, depth + 1));
|
|
660
|
+
}
|
|
661
|
+
if (node.type === "TSAsExpression" || node.type === "TSSatisfiesExpression" || node.type === "ParenthesizedExpression") return resolveObjects(node.expression, depth + 1);
|
|
662
|
+
return [];
|
|
663
|
+
}
|
|
664
|
+
let configObjs = [];
|
|
665
|
+
for (const node of program.body) {
|
|
666
|
+
if (node.type === "ExportDefaultDeclaration") configObjs = resolveObjects(node.declaration);
|
|
667
|
+
else if (node.type === "ExpressionStatement" && node.expression.type === "AssignmentExpression") {
|
|
668
|
+
const { left, right } = node.expression;
|
|
669
|
+
if (left.type === "MemberExpression" && !left.computed && left.object.type === "Identifier" && left.object.name === "module" && left.property.type === "Identifier" && left.property.name === "exports") configObjs = resolveObjects(right);
|
|
670
|
+
}
|
|
671
|
+
if (configObjs.length) break;
|
|
672
|
+
}
|
|
673
|
+
for (const configObj of configObjs) for (const prop of configObj.properties) {
|
|
674
|
+
const name = propertyKeyName(prop);
|
|
675
|
+
if (!name) continue;
|
|
676
|
+
top.add(name);
|
|
677
|
+
const childObjs = resolveObjects(prop.value);
|
|
678
|
+
if (!childObjs.length) continue;
|
|
679
|
+
const children = nested.get(name) ?? /* @__PURE__ */ new Set();
|
|
680
|
+
for (const childObj of childObjs) for (const childProp of childObj.properties) {
|
|
681
|
+
const childName = propertyKeyName(childProp);
|
|
682
|
+
if (childName) children.add(childName);
|
|
683
|
+
}
|
|
684
|
+
nested.set(name, children);
|
|
685
|
+
}
|
|
686
|
+
return {
|
|
687
|
+
top,
|
|
688
|
+
nested
|
|
689
|
+
};
|
|
690
|
+
}
|
|
396
691
|
/**
|
|
397
692
|
* Analyze next.config.js/mjs/ts for supported and unsupported options.
|
|
398
693
|
*/
|
|
@@ -417,7 +712,7 @@ function analyzeConfig(root) {
|
|
|
417
712
|
status: "supported",
|
|
418
713
|
detail: "no config file found (defaults are fine)"
|
|
419
714
|
}];
|
|
420
|
-
const
|
|
715
|
+
const present = collectConfigKeys(fs.readFileSync(configPath, "utf-8"));
|
|
421
716
|
const items = [];
|
|
422
717
|
for (const opt of [
|
|
423
718
|
"basePath",
|
|
@@ -434,7 +729,8 @@ function analyzeConfig(root) {
|
|
|
434
729
|
"webpack",
|
|
435
730
|
"reactStrictMode",
|
|
436
731
|
"poweredByHeader"
|
|
437
|
-
])
|
|
732
|
+
]) {
|
|
733
|
+
if (!present.top.has(opt)) continue;
|
|
438
734
|
const support = CONFIG_SUPPORT[opt];
|
|
439
735
|
if (support) items.push({
|
|
440
736
|
name: opt,
|
|
@@ -450,9 +746,7 @@ function analyzeConfig(root) {
|
|
|
450
746
|
for (const key of Object.keys(CONFIG_SUPPORT)) {
|
|
451
747
|
if (!key.includes(".")) continue;
|
|
452
748
|
const dot = key.indexOf(".");
|
|
453
|
-
|
|
454
|
-
const childRef = new RegExp(String.raw`\b${key.slice(dot + 1)}\b`);
|
|
455
|
-
if (parentBlock.test(content) && childRef.test(content)) items.push({
|
|
749
|
+
if (present.nested.get(key.slice(0, dot))?.has(key.slice(dot + 1))) items.push({
|
|
456
750
|
name: key,
|
|
457
751
|
...CONFIG_SUPPORT[key]
|
|
458
752
|
});
|
|
@@ -578,19 +872,13 @@ function checkConventions(root) {
|
|
|
578
872
|
}
|
|
579
873
|
const allSourceFiles = findSourceFiles(root);
|
|
580
874
|
const viewTransitionRegex = /import\s+\{[^}]*\bViewTransition\b[^}]*\}\s+from\s+['"]react['"]/;
|
|
581
|
-
const cjsGlobalScanRegex = /\/\/[^\n]*|\/\*[\s\S]*?\*\/|`(?:[^`\\$]|\\.|\$(?!\{))*`|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\b(__dirname|__filename)\b/g;
|
|
582
875
|
const viewTransitionFiles = [];
|
|
583
876
|
const cjsGlobalFiles = [];
|
|
584
877
|
for (const file of allSourceFiles) {
|
|
585
878
|
const content = fs.readFileSync(file, "utf-8");
|
|
586
879
|
const rel = path.relative(root, file);
|
|
587
880
|
if (viewTransitionRegex.test(content)) viewTransitionFiles.push(rel);
|
|
588
|
-
|
|
589
|
-
let m;
|
|
590
|
-
while ((m = cjsGlobalScanRegex.exec(content)) !== null) if (m[1]) {
|
|
591
|
-
cjsGlobalFiles.push(rel);
|
|
592
|
-
break;
|
|
593
|
-
}
|
|
881
|
+
if (hasFreeCjsGlobal(content)) cjsGlobalFiles.push(rel);
|
|
594
882
|
}
|
|
595
883
|
if (viewTransitionFiles.length > 0) items.push({
|
|
596
884
|
name: "ViewTransition (React canary API)",
|
|
@@ -606,15 +894,11 @@ function checkConventions(root) {
|
|
|
606
894
|
const configPath = path.join(root, configFile);
|
|
607
895
|
if (fs.existsSync(configPath)) {
|
|
608
896
|
const content = fs.readFileSync(configPath, "utf-8");
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
status: "partial",
|
|
615
|
-
detail: "string-form PostCSS plugins need resolution — vinext handles this automatically"
|
|
616
|
-
});
|
|
617
|
-
}
|
|
897
|
+
if (/plugins\s*:\s*\[\s*['"]/.test(content)) items.push({
|
|
898
|
+
name: `PostCSS string-form plugins (${configFile})`,
|
|
899
|
+
status: "partial",
|
|
900
|
+
detail: "string-form PostCSS plugins need resolution — vinext handles this automatically"
|
|
901
|
+
});
|
|
618
902
|
break;
|
|
619
903
|
}
|
|
620
904
|
}
|
|
@@ -749,6 +1033,4 @@ function formatReport(result, opts) {
|
|
|
749
1033
|
return lines.join("\n");
|
|
750
1034
|
}
|
|
751
1035
|
//#endregion
|
|
752
|
-
export { analyzeConfig, checkConventions, checkLibraries, formatReport, runCheck, scanImports };
|
|
753
|
-
|
|
754
|
-
//# sourceMappingURL=check.js.map
|
|
1036
|
+
export { analyzeConfig, checkConventions, checkLibraries, formatReport, hasFreeCjsGlobal, runCheck, scanImports };
|
package/dist/cli-args.d.ts
CHANGED
|
@@ -30,5 +30,4 @@ declare function parsePositiveIntegerArg(raw: string, flag: string): number;
|
|
|
30
30
|
*/
|
|
31
31
|
declare function parseArgs(args: string[]): ParsedArgs;
|
|
32
32
|
//#endregion
|
|
33
|
-
export { parseArgs, parsePositiveIntegerArg };
|
|
34
|
-
//# sourceMappingURL=cli-args.d.ts.map
|
|
33
|
+
export { parseArgs, parsePositiveIntegerArg };
|
package/dist/cli-args.js
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { detectPackageManager, ensureViteConfigCompatibility } from "./utils/project.js";
|
|
2
|
+
import { detectPackageManager, ensureViteConfigCompatibility, hasAppDir, hasViteConfig } from "./utils/project.js";
|
|
3
3
|
import { formatReport, runCheck } from "./check.js";
|
|
4
4
|
import { parseArgs } from "./cli-args.js";
|
|
5
5
|
import { PHASE_PRODUCTION_BUILD } from "./shims/constants.js";
|
|
6
|
-
import { loadNextConfig, resolveNextConfig } from "./config/next-config.js";
|
|
6
|
+
import { createRscCompatibilityId, loadNextConfig, resolveNextConfig } from "./config/next-config.js";
|
|
7
7
|
import { generateRouteTypes } from "./typegen.js";
|
|
8
8
|
import { getReactUpgradeDeps, init } from "./init.js";
|
|
9
9
|
import { runPrerender } from "./build/run-prerender.js";
|
|
@@ -18,6 +18,7 @@ import { createRequire } from "node:module";
|
|
|
18
18
|
import fs from "node:fs";
|
|
19
19
|
import path from "node:path";
|
|
20
20
|
import { pathToFileURL } from "node:url";
|
|
21
|
+
import { randomBytes } from "node:crypto";
|
|
21
22
|
import { execFileSync } from "node:child_process";
|
|
22
23
|
//#region src/cli.ts
|
|
23
24
|
/**
|
|
@@ -116,15 +117,9 @@ function createBuildLogger(vite) {
|
|
|
116
117
|
};
|
|
117
118
|
return logger;
|
|
118
119
|
}
|
|
119
|
-
function hasAppDir() {
|
|
120
|
-
return fs.existsSync(path.join(process.cwd(), "app")) || fs.existsSync(path.join(process.cwd(), "src", "app"));
|
|
121
|
-
}
|
|
122
120
|
function hasPagesDir() {
|
|
123
121
|
return fs.existsSync(path.join(process.cwd(), "pages")) || fs.existsSync(path.join(process.cwd(), "src", "pages"));
|
|
124
122
|
}
|
|
125
|
-
function hasViteConfig(root = process.cwd()) {
|
|
126
|
-
return fs.existsSync(path.join(root, "vite.config.ts")) || fs.existsSync(path.join(root, "vite.config.js")) || fs.existsSync(path.join(root, "vite.config.mjs"));
|
|
127
|
-
}
|
|
128
123
|
async function loadBuildEmptyOutDir(vite, root) {
|
|
129
124
|
if (!hasViteConfig(root)) return void 0;
|
|
130
125
|
const emptyOutDir = (await vite.loadConfigFromFile({
|
|
@@ -139,7 +134,7 @@ async function loadBuildEmptyOutDir(vite, root) {
|
|
|
139
134
|
* If there's no vite.config, this provides everything needed.
|
|
140
135
|
*/
|
|
141
136
|
function buildViteConfig(overrides = {}, logger) {
|
|
142
|
-
if (hasViteConfig()) return {
|
|
137
|
+
if (hasViteConfig(process.cwd())) return {
|
|
143
138
|
root: process.cwd(),
|
|
144
139
|
...logger ? { customLogger: logger } : {},
|
|
145
140
|
...overrides
|
|
@@ -265,8 +260,11 @@ async function buildApp() {
|
|
|
265
260
|
const withBuildBundlerOptions = (bundlerOptions) => viteMajorVersion >= 8 ? { rolldownOptions: bundlerOptions } : { rollupOptions: bundlerOptions };
|
|
266
261
|
console.log(`\n vinext build (Vite ${getViteVersion()})\n`);
|
|
267
262
|
const root = process.cwd();
|
|
268
|
-
const isApp = hasAppDir();
|
|
263
|
+
const isApp = hasAppDir(process.cwd());
|
|
269
264
|
const resolvedNextConfig = await resolveNextConfig(await loadNextConfig(root, PHASE_PRODUCTION_BUILD), root);
|
|
265
|
+
process.env.__VINEXT_SHARED_BUILD_ID = resolvedNextConfig.buildId;
|
|
266
|
+
process.env.__VINEXT_SHARED_RSC_COMPATIBILITY_ID = createRscCompatibilityId(resolvedNextConfig);
|
|
267
|
+
if (!process.env.__VINEXT_SHARED_REVALIDATE_SECRET) process.env.__VINEXT_SHARED_REVALIDATE_SECRET = randomBytes(32).toString("hex");
|
|
270
268
|
const outputMode = resolvedNextConfig.output;
|
|
271
269
|
const distDir = path.resolve(root, "dist");
|
|
272
270
|
if (outputMode === "standalone") {
|
|
@@ -301,7 +299,7 @@ async function buildApp() {
|
|
|
301
299
|
console.log(" Building Pages Router server (hybrid)...");
|
|
302
300
|
const root = process.cwd();
|
|
303
301
|
let userTransformPlugins = [];
|
|
304
|
-
if (hasViteConfig()) {
|
|
302
|
+
if (hasViteConfig(process.cwd())) {
|
|
305
303
|
const loaded = await vite.loadConfigFromFile({
|
|
306
304
|
command: "build",
|
|
307
305
|
mode: "production",
|
|
@@ -744,5 +742,3 @@ switch (command) {
|
|
|
744
742
|
}
|
|
745
743
|
//#endregion
|
|
746
744
|
export {};
|
|
747
|
-
|
|
748
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -30,5 +30,4 @@ declare const INSTRUMENTATION_CLIENT_EMPTY_MODULE: string;
|
|
|
30
30
|
*/
|
|
31
31
|
declare function generateInstrumentationClientInjectModule(injects: readonly string[], userPath: string | null, emptyModulePath?: string): string;
|
|
32
32
|
//#endregion
|
|
33
|
-
export { INSTRUMENTATION_CLIENT_EMPTY_MODULE, generateInstrumentationClientInjectModule };
|
|
34
|
-
//# sourceMappingURL=instrumentation-client-inject.d.ts.map
|
|
33
|
+
export { INSTRUMENTATION_CLIENT_EMPTY_MODULE, generateInstrumentationClientInjectModule };
|
|
@@ -6,5 +6,4 @@ declare function setClientInstrumentationHooks(hooks: ClientInstrumentationHooks
|
|
|
6
6
|
declare function getClientInstrumentationHooks(): ClientInstrumentationHooks | null;
|
|
7
7
|
declare function notifyAppRouterTransitionStart(href: string, navigationType: "push" | "replace" | "traverse"): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { getClientInstrumentationHooks, normalizeClientInstrumentationHooks, notifyAppRouterTransitionStart, setClientInstrumentationHooks };
|
|
10
|
-
//# sourceMappingURL=instrumentation-client-state.d.ts.map
|
|
9
|
+
export { getClientInstrumentationHooks, normalizeClientInstrumentationHooks, notifyAppRouterTransitionStart, setClientInstrumentationHooks };
|
|
@@ -15,5 +15,3 @@ function notifyAppRouterTransitionStart(href, navigationType) {
|
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
17
|
export { getClientInstrumentationHooks, normalizeClientInstrumentationHooks, notifyAppRouterTransitionStart, setClientInstrumentationHooks };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=instrumentation-client-state.js.map
|
|
@@ -4,5 +4,4 @@ type ClientInstrumentationHooks = {
|
|
|
4
4
|
};
|
|
5
5
|
declare const clientInstrumentationHooks: ClientInstrumentationHooks | null;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { ClientInstrumentationHooks, clientInstrumentationHooks };
|
|
8
|
-
//# sourceMappingURL=instrumentation-client.d.ts.map
|
|
7
|
+
export { ClientInstrumentationHooks, clientInstrumentationHooks };
|
|
@@ -4,5 +4,3 @@ import * as instrumentationClientHooks from "private-next-instrumentation-client
|
|
|
4
4
|
const clientInstrumentationHooks = setClientInstrumentationHooks(normalizeClientInstrumentationHooks(instrumentationClientHooks));
|
|
5
5
|
//#endregion
|
|
6
6
|
export { clientInstrumentationHooks };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=instrumentation-client.js.map
|
|
@@ -26,6 +26,14 @@ type NavigationRuntimeFunctions = {
|
|
|
26
26
|
commitHashNavigation?: (href: string, historyUpdateMode: NavigationRuntimeHistoryUpdateMode, scroll: boolean) => void;
|
|
27
27
|
navigateExternal?: (href: string, historyUpdateMode: NavigationRuntimeHistoryUpdateMode) => Promise<void>;
|
|
28
28
|
navigate?: NavigationRuntimeNavigate;
|
|
29
|
+
/**
|
|
30
|
+
* Called at the start of every App Router navigation so the <Link> shim can
|
|
31
|
+
* reset any link that is still showing a `useLinkStatus()` pending state but
|
|
32
|
+
* is not the one driving this navigation (e.g. a programmatic router.push or
|
|
33
|
+
* a shallow-routing transition). Registered by shims/link.tsx; decoupled
|
|
34
|
+
* through the runtime to avoid a circular import with shims/navigation.ts.
|
|
35
|
+
*/
|
|
36
|
+
notifyLinkNavigationStart?: () => void;
|
|
29
37
|
pingVisibleLinks?: () => void;
|
|
30
38
|
};
|
|
31
39
|
type NavigationRuntimeBootstrap = {
|
|
@@ -58,5 +66,4 @@ declare function hasAppNavigationRuntime(): boolean;
|
|
|
58
66
|
*/
|
|
59
67
|
declare function hasAppNavigationRuntimeBootstrap(): boolean;
|
|
60
68
|
//#endregion
|
|
61
|
-
export { NAVIGATION_RUNTIME_KEY, NAVIGATION_RUNTIME_SYMBOL_DESCRIPTION, NavigationRuntime, NavigationRuntimeBootstrap, NavigationRuntimeFunctions,
|
|
62
|
-
//# sourceMappingURL=navigation-runtime.d.ts.map
|
|
69
|
+
export { NAVIGATION_RUNTIME_KEY, NAVIGATION_RUNTIME_SYMBOL_DESCRIPTION, NavigationRuntime, NavigationRuntimeBootstrap, NavigationRuntimeFunctions, NavigationRuntimeNavigate, NavigationRuntimeRscBootstrap, NavigationRuntimeRscChunk, NavigationRuntimeSnapshot, ensureNavigationRuntimeRscBootstrap, getNavigationRuntime, hasAppNavigationRuntime, hasAppNavigationRuntimeBootstrap, registerNavigationRuntimeBootstrap, registerNavigationRuntimeFunctions, subscribeNavigationRuntimeRscChunk };
|
|
@@ -31,7 +31,7 @@ function readRuntimeWindow() {
|
|
|
31
31
|
}
|
|
32
32
|
function isNavigationRuntimeFunctions(value) {
|
|
33
33
|
if (!isUnknownRecord(value)) return false;
|
|
34
|
-
return isOptionalRuntimeFunction(Reflect.get(value, "clearNavigationCaches")) && isOptionalRuntimeFunction(Reflect.get(value, "commitHashNavigation")) && isOptionalRuntimeFunction(Reflect.get(value, "navigateExternal")) && isOptionalRuntimeFunction(Reflect.get(value, "navigate")) && isOptionalRuntimeFunction(Reflect.get(value, "pingVisibleLinks"));
|
|
34
|
+
return isOptionalRuntimeFunction(Reflect.get(value, "clearNavigationCaches")) && isOptionalRuntimeFunction(Reflect.get(value, "commitHashNavigation")) && isOptionalRuntimeFunction(Reflect.get(value, "navigateExternal")) && isOptionalRuntimeFunction(Reflect.get(value, "navigate")) && isOptionalRuntimeFunction(Reflect.get(value, "notifyLinkNavigationStart")) && isOptionalRuntimeFunction(Reflect.get(value, "pingVisibleLinks"));
|
|
35
35
|
}
|
|
36
36
|
function isNavigationRuntimeRscChunk(value) {
|
|
37
37
|
if (typeof value === "string") return true;
|
|
@@ -167,5 +167,3 @@ function hasAppNavigationRuntimeBootstrap() {
|
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
169
|
export { NAVIGATION_RUNTIME_KEY, NAVIGATION_RUNTIME_SYMBOL_DESCRIPTION, ensureNavigationRuntimeRscBootstrap, getNavigationRuntime, hasAppNavigationRuntime, hasAppNavigationRuntimeBootstrap, registerNavigationRuntimeBootstrap, registerNavigationRuntimeFunctions, subscribeNavigationRuntimeRscChunk };
|
|
170
|
-
|
|
171
|
-
//# sourceMappingURL=navigation-runtime.js.map
|
|
@@ -22,5 +22,4 @@ declare function navigatePagesRouterLink(router: PagesRouterLinkRuntime, {
|
|
|
22
22
|
locale?: string | false;
|
|
23
23
|
}): Promise<void>;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { navigatePagesRouterLink };
|
|
26
|
-
//# sourceMappingURL=pages-router-link-navigation.d.ts.map
|
|
25
|
+
export { navigatePagesRouterLink };
|
|
@@ -10,7 +10,8 @@ type VinextNextData = {
|
|
|
10
10
|
/** vinext-specific additions (not part of Next.js upstream). */__vinext?: {
|
|
11
11
|
/** Absolute URL of the page module for dynamic import. */pageModuleUrl?: string; /** Absolute URL of the `_app` module for dynamic import. */
|
|
12
12
|
appModuleUrl?: string; /** True when the Pages Router server has middleware/proxy configured. */
|
|
13
|
-
hasMiddleware?: boolean;
|
|
13
|
+
hasMiddleware?: boolean; /** True when build-time rewrites can affect the initial Pages Router ready state. */
|
|
14
|
+
hasRewrites?: boolean;
|
|
14
15
|
};
|
|
15
16
|
} & NEXT_DATA;
|
|
16
17
|
type BrowserVinextNextData = NonNullable<Window["__NEXT_DATA__"]> & VinextNextData;
|
|
@@ -23,5 +24,4 @@ declare function extractVinextNextDataJson(html: string): string | null;
|
|
|
23
24
|
declare function parseVinextNextDataJson(json: string): BrowserVinextNextData;
|
|
24
25
|
declare function applyVinextLocaleGlobals(target: VinextLocaleGlobalTarget, nextData: VinextNextData): void;
|
|
25
26
|
//#endregion
|
|
26
|
-
export { VinextLinkPrefetchRoute, VinextNextData, applyVinextLocaleGlobals, extractVinextNextDataJson, parseVinextNextDataJson };
|
|
27
|
-
//# sourceMappingURL=vinext-next-data.d.ts.map
|
|
27
|
+
export { VinextLinkPrefetchRoute, VinextNextData, applyVinextLocaleGlobals, extractVinextNextDataJson, parseVinextNextDataJson };
|