@timber-js/app 0.2.0-alpha.221 → 0.2.0-alpha.223
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/agent-skill.md +21 -5
- package/dist/_chunks/{actions-BDqn4Oxj.js → actions-7dTXYJfu.js} +53 -24
- package/dist/_chunks/actions-7dTXYJfu.js.map +1 -0
- package/dist/_chunks/{als-registry-BZqHCtq-.js → als-registry-DpygwCp0.js} +2 -3
- package/dist/_chunks/{als-registry-BZqHCtq-.js.map → als-registry-DpygwCp0.js.map} +1 -1
- package/dist/_chunks/{als-slots-BEEIPKYm.js → als-slots-kbQrHTzm.js} +2 -3
- package/dist/_chunks/{als-slots-BEEIPKYm.js.map → als-slots-kbQrHTzm.js.map} +1 -1
- package/dist/_chunks/{base-path-DaQrzbez.js → base-path-DDIx0FXe.js} +2 -3
- package/dist/_chunks/{base-path-DaQrzbez.js.map → base-path-DDIx0FXe.js.map} +1 -1
- package/dist/_chunks/{build-manifest-DWppEdLB.js → build-manifest-Y4jl7nwU.js} +2 -3
- package/dist/_chunks/{build-manifest-DWppEdLB.js.map → build-manifest-Y4jl7nwU.js.map} +1 -1
- package/dist/_chunks/{build-output-helper-RV_BRcF1.js → build-output-helper-B7wWGTfR.js} +14 -10
- package/dist/_chunks/build-output-helper-B7wWGTfR.js.map +1 -0
- package/dist/_chunks/{cache-api-GE4AOe2H.js → cache-api-TDZ4hlDc.js} +237 -37
- package/dist/_chunks/cache-api-TDZ4hlDc.js.map +1 -0
- package/dist/_chunks/{canonicalize-BAWkWiKK.js → canonicalize-CqK135BN.js} +29 -4
- package/dist/_chunks/{canonicalize-BAWkWiKK.js.map → canonicalize-CqK135BN.js.map} +1 -1
- package/dist/_chunks/chains-CwOr3Myj.js +1 -0
- package/dist/_chunks/{chains-e_Buf9vg.js → chains-Dgm3PrMe.js} +3 -4
- package/dist/_chunks/{chains-e_Buf9vg.js.map → chains-Dgm3PrMe.js.map} +1 -1
- package/dist/_chunks/{classify-2Yp3xJY1.js → classify--_kINHQV.js} +4 -5
- package/dist/_chunks/{classify-2Yp3xJY1.js.map → classify--_kINHQV.js.map} +1 -1
- package/dist/_chunks/{cli-check-DDwCkeDY.js → cli-check-Dv3f8d2j.js} +5 -6
- package/dist/_chunks/{cli-check-DDwCkeDY.js.map → cli-check-Dv3f8d2j.js.map} +1 -1
- package/dist/_chunks/{cli-context-_mPttGGY.js → cli-context-CbZp32SK.js} +3 -4
- package/dist/_chunks/{cli-context-_mPttGGY.js.map → cli-context-CbZp32SK.js.map} +1 -1
- package/dist/_chunks/cli-context-n5hmkdla.js +1 -0
- package/dist/_chunks/cli-dev-status-prPMLU8G.js +138 -0
- package/dist/_chunks/cli-dev-status-prPMLU8G.js.map +1 -0
- package/dist/_chunks/cli-init-BoXOYYil.js +196 -0
- package/dist/_chunks/cli-init-BoXOYYil.js.map +1 -0
- package/dist/_chunks/{cli-schema-sync-BdIebmk3.js → cli-schema-sync-DIPurq7X.js} +4 -5
- package/dist/_chunks/{cli-schema-sync-BdIebmk3.js.map → cli-schema-sync-DIPurq7X.js.map} +1 -1
- package/dist/_chunks/{cli-schema-sync-CLNfXQDK.js → cli-schema-sync-uq72EZmD.js} +1 -1
- package/dist/_chunks/{client-dep-entries-BOkpKjj1.js → client-dep-entries-CP7AkMCM.js} +4 -5
- package/dist/_chunks/{client-dep-entries-BOkpKjj1.js.map → client-dep-entries-CP7AkMCM.js.map} +1 -1
- package/dist/_chunks/{cloudflare-Byxl8FWP.js → cloudflare-B75X6u4O.js} +10 -13
- package/dist/_chunks/{cloudflare-Byxl8FWP.js.map → cloudflare-B75X6u4O.js.map} +1 -1
- package/dist/_chunks/{codec-registry-oOUxugz3.js → codec-registry-CPc6bjVl.js} +2 -3
- package/dist/_chunks/{codec-registry-oOUxugz3.js.map → codec-registry-CPc6bjVl.js.map} +1 -1
- package/dist/_chunks/{codegen-Bps1sLKJ.js → codegen-B9oWkWGf.js} +5 -8
- package/dist/_chunks/{codegen-Bps1sLKJ.js.map → codegen-B9oWkWGf.js.map} +1 -1
- package/dist/_chunks/{convention-lint-ByKJ6aqD.js → convention-lint-hZwz5wd4.js} +8 -11
- package/dist/_chunks/{convention-lint-ByKJ6aqD.js.map → convention-lint-hZwz5wd4.js.map} +1 -1
- package/dist/_chunks/dev-discovery-YnabkCKD.js +238 -0
- package/dist/_chunks/dev-discovery-YnabkCKD.js.map +1 -0
- package/dist/_chunks/{dev-server-DIy-SY-J.js → dev-server-C61GWpGg.js} +409 -51
- package/dist/_chunks/dev-server-C61GWpGg.js.map +1 -0
- package/dist/_chunks/dev-server-CBvvM7Lr.js +1 -0
- package/dist/_chunks/{dev-store-BOa304m_.js → dev-store-BvdqtHvK.js} +82 -38
- package/dist/_chunks/dev-store-BvdqtHvK.js.map +1 -0
- package/dist/_chunks/{dist-DtrJyBbw.js → dist-C1Rjlo6s.js} +3 -5
- package/dist/_chunks/{dist-DtrJyBbw.js.map → dist-C1Rjlo6s.js.map} +1 -1
- package/dist/_chunks/{error-boundary-Bc8QPZuq.js → error-boundary-DRQXGWCp.js} +20 -27
- package/dist/_chunks/{error-boundary-Bc8QPZuq.js.map → error-boundary-DRQXGWCp.js.map} +1 -1
- package/dist/_chunks/{fast-hash-C-tVYrLb.js → fast-hash-DddxkU5Y.js} +2 -3
- package/dist/_chunks/{fast-hash-C-tVYrLb.js.map → fast-hash-DddxkU5Y.js.map} +1 -1
- package/dist/_chunks/{flight-source-node-HptmGMT8.js → flight-source-node-0Tp6evlz.js} +6 -8
- package/dist/_chunks/flight-source-node-0Tp6evlz.js.map +1 -0
- package/dist/_chunks/{format-BKclgVbk.js → format-DuPOoXUP.js} +2 -3
- package/dist/_chunks/{format-BKclgVbk.js.map → format-DuPOoXUP.js.map} +1 -1
- package/dist/_chunks/{fs-identity-BRKuL215.js → fs-identity-BmQ_Agg-.js} +3 -5
- package/dist/_chunks/{fs-identity-BRKuL215.js.map → fs-identity-BmQ_Agg-.js.map} +1 -1
- package/dist/_chunks/global-context-DbxNWeBP.js +47 -0
- package/dist/_chunks/global-context-DbxNWeBP.js.map +1 -0
- package/dist/_chunks/{graph-cache-CYiUS2aS.js → graph-cache-B1LAg4t7.js} +5 -89
- package/dist/_chunks/graph-cache-B1LAg4t7.js.map +1 -0
- package/dist/_chunks/{href-validation-BIrxavIy.js → href-validation-CEZy1V-k.js} +4 -7
- package/dist/_chunks/{href-validation-BIrxavIy.js.map → href-validation-CEZy1V-k.js.map} +1 -1
- package/dist/_chunks/{json-lossy-check-C8zBY2uZ.js → json-lossy-check-DVkLUlfC.js} +3 -4
- package/dist/_chunks/{json-lossy-check-C8zBY2uZ.js.map → json-lossy-check-DVkLUlfC.js.map} +1 -1
- package/dist/_chunks/{live-graph-tSWrv8eH.js → live-graph-BcVjQ1Te.js} +6 -7
- package/dist/_chunks/{live-graph-tSWrv8eH.js.map → live-graph-BcVjQ1Te.js.map} +1 -1
- package/dist/_chunks/{logger-CbLdcy-W.js → logger-CWk44DLp.js} +97 -47
- package/dist/_chunks/logger-CWk44DLp.js.map +1 -0
- package/dist/_chunks/{metadata-routes-B3XJNyIH.js → metadata-routes-BL26HCDd.js} +2 -3
- package/dist/_chunks/{metadata-routes-B3XJNyIH.js.map → metadata-routes-BL26HCDd.js.map} +1 -1
- package/dist/_chunks/{navigation-root-BQfo1-kG.js → navigation-root-M3B2ZrdO.js} +6 -10
- package/dist/_chunks/{navigation-root-BQfo1-kG.js.map → navigation-root-M3B2ZrdO.js.map} +1 -1
- package/dist/_chunks/{node-response-rkQqcFGq.js → node-response-B9aviPDa.js} +43 -9
- package/dist/_chunks/node-response-B9aviPDa.js.map +1 -0
- package/dist/_chunks/{param-value-C8TNYchQ.js → param-value-DqlGfF57.js} +2 -3
- package/dist/_chunks/{param-value-C8TNYchQ.js.map → param-value-DqlGfF57.js.map} +1 -1
- package/dist/_chunks/{plugin-context-uDHFqHHJ.js → plugin-context-BfSRKJfz.js} +1 -1
- package/dist/_chunks/{plugin-context-DxMMvjUt.js → plugin-context-FCkaNLUB.js} +4 -6
- package/dist/_chunks/plugin-context-FCkaNLUB.js.map +1 -0
- package/dist/_chunks/{poison-rules-DoEhbqaY.js → poison-rules-Bmz-lCPi.js} +2 -3
- package/dist/_chunks/{poison-rules-DoEhbqaY.js.map → poison-rules-Bmz-lCPi.js.map} +1 -1
- package/dist/_chunks/{poison-scan-C4FgMxFl.js → poison-scan-DJYxZc_7.js} +4 -5
- package/dist/_chunks/{poison-scan-C4FgMxFl.js.map → poison-scan-DJYxZc_7.js.map} +1 -1
- package/dist/_chunks/{purge-store-WZaxu-3m.js → purge-store-8BqLAYZ1.js} +2 -3
- package/dist/_chunks/{purge-store-WZaxu-3m.js.map → purge-store-8BqLAYZ1.js.map} +1 -1
- package/dist/_chunks/{render-timeout-joFhz4KH.js → render-timeout-MrrqD1wd.js} +20 -4
- package/dist/_chunks/{render-timeout-joFhz4KH.js.map → render-timeout-MrrqD1wd.js.map} +1 -1
- package/dist/_chunks/{resolve-schema-CBR6Lm4i.js → resolve-schema-B-aCuTu3.js} +3 -4
- package/dist/_chunks/{resolve-schema-CBR6Lm4i.js.map → resolve-schema-B-aCuTu3.js.map} +1 -1
- package/dist/_chunks/{rsc-cache-key-ClUiXQnK.js → rsc-cache-key-D0cb0Gmc.js} +2 -3
- package/dist/_chunks/{rsc-cache-key-ClUiXQnK.js.map → rsc-cache-key-D0cb0Gmc.js.map} +1 -1
- package/dist/_chunks/{rsc-media-type-DDc7duTD.js → rsc-media-type-m8jz9u6_.js} +2 -3
- package/dist/_chunks/{rsc-media-type-DDc7duTD.js.map → rsc-media-type-m8jz9u6_.js.map} +1 -1
- package/dist/_chunks/{rsc-payload-path-dffcs4jp.js → rsc-payload-path-EphpDB-J.js} +2 -3
- package/dist/_chunks/{rsc-payload-path-dffcs4jp.js.map → rsc-payload-path-EphpDB-J.js.map} +1 -1
- package/dist/_chunks/{scan-BoP17W3w.js → scan-CyizcBiX.js} +2 -3
- package/dist/_chunks/{scan-BoP17W3w.js.map → scan-CyizcBiX.js.map} +1 -1
- package/dist/_chunks/{scanner-Cb3fSjAC.js → scanner-CJC-ScJU.js} +15 -23
- package/dist/_chunks/{scanner-Cb3fSjAC.js.map → scanner-CJC-ScJU.js.map} +1 -1
- package/dist/_chunks/{schema-bridge-C83xa9lT.js → schema-bridge-DyRs3cqy.js} +61 -25
- package/dist/_chunks/schema-bridge-DyRs3cqy.js.map +1 -0
- package/dist/_chunks/{segment-classify-C539Pa2O.js → segment-classify-Ho8jXWeC.js} +3 -5
- package/dist/_chunks/{segment-classify-C539Pa2O.js.map → segment-classify-Ho8jXWeC.js.map} +1 -1
- package/dist/_chunks/{segment-context-xtPUGfdq.js → segment-context-CYiGTi3K.js} +6 -12
- package/dist/_chunks/segment-context-CYiGTi3K.js.map +1 -0
- package/dist/_chunks/{segment-keys-D5hu1hz4.js → segment-keys-Y60KNc8C.js} +2 -3
- package/dist/_chunks/{segment-keys-D5hu1hz4.js.map → segment-keys-Y60KNc8C.js.map} +1 -1
- package/dist/_chunks/{singleflight-BeVMMKi0.js → singleflight-BChPMjwH.js} +2 -3
- package/dist/_chunks/{singleflight-BeVMMKi0.js.map → singleflight-BChPMjwH.js.map} +1 -1
- package/dist/_chunks/{sizeof-QPE5nd3u.js → sizeof-DG4W40lv.js} +3 -4
- package/dist/_chunks/{sizeof-QPE5nd3u.js.map → sizeof-DG4W40lv.js.map} +1 -1
- package/dist/_chunks/{ssr-data-nA3I70_n.js → ssr-data-9hPtcNOr.js} +3 -4
- package/dist/_chunks/{ssr-data-nA3I70_n.js.map → ssr-data-9hPtcNOr.js.map} +1 -1
- package/dist/_chunks/{state-BhNGPsdi.js → state-B-EBjeER.js} +2 -3
- package/dist/_chunks/{state-BhNGPsdi.js.map → state-B-EBjeER.js.map} +1 -1
- package/dist/_chunks/{status-page-marker-BRX9Ib-d.js → status-page-marker-XIQXlTOb.js} +8 -13
- package/dist/_chunks/{status-page-marker-BRX9Ib-d.js.map → status-page-marker-XIQXlTOb.js.map} +1 -1
- package/dist/_chunks/{tree-match-6yihorhk.js → tree-match-Bqdr9szG.js} +2 -3
- package/dist/_chunks/{tree-match-6yihorhk.js.map → tree-match-Bqdr9szG.js.map} +1 -1
- package/dist/_chunks/{use-query-states-I3JMng6J.js → use-query-states-pkDV-jSg.js} +4 -7
- package/dist/_chunks/{use-query-states-I3JMng6J.js.map → use-query-states-pkDV-jSg.js.map} +1 -1
- package/dist/_chunks/{walkers-qu8TpiLh.js → walkers-DIE203ir.js} +6 -8
- package/dist/_chunks/{walkers-qu8TpiLh.js.map → walkers-DIE203ir.js.map} +1 -1
- package/dist/_chunks/{write-file-atomic-D1qWqHb4.js → write-file-atomic-DW8m_Atv.js} +2 -3
- package/dist/_chunks/{write-file-atomic-D1qWqHb4.js.map → write-file-atomic-DW8m_Atv.js.map} +1 -1
- package/dist/adapters/build-output-helper.d.ts +10 -1
- package/dist/adapters/build-output-helper.d.ts.map +1 -1
- package/dist/adapters/cloudflare-dev.js +2 -3
- package/dist/adapters/cloudflare-kv-cache.js +3 -4
- package/dist/adapters/cloudflare.d.ts.map +1 -1
- package/dist/adapters/cloudflare.js +1 -1
- package/dist/adapters/nitro-presets.d.ts +6 -0
- package/dist/adapters/nitro-presets.d.ts.map +1 -1
- package/dist/adapters/nitro-preview.d.ts.map +1 -1
- package/dist/adapters/nitro.d.ts.map +1 -1
- package/dist/adapters/nitro.js +94 -57
- package/dist/adapters/nitro.js.map +1 -1
- package/dist/analyze/crawl-entry.js +7 -9
- package/dist/analyze/crawl-entry.js.map +1 -1
- package/dist/analyze/graph-command.d.ts.map +1 -1
- package/dist/analyze/graph-command.js +19 -105
- package/dist/analyze/graph-command.js.map +1 -1
- package/dist/cache/guarded-read.d.ts +29 -0
- package/dist/cache/guarded-read.d.ts.map +1 -0
- package/dist/cache/index.js +3 -3
- package/dist/cache/key-discipline.d.ts +61 -0
- package/dist/cache/key-discipline.d.ts.map +1 -0
- package/dist/cache/stores/cloudflare-kv.js +1 -2
- package/dist/cache/stores/memory.js +2 -3
- package/dist/cache/stores/redis.js +1 -2
- package/dist/cache/stores/vercel.js +1 -2
- package/dist/cache/timber-cache.d.ts +5 -1
- package/dist/cache/timber-cache.d.ts.map +1 -1
- package/dist/cdn/cloudflare-purge.js +1 -2
- package/dist/cdn/fastly-purge.js +1 -2
- package/dist/cdn/index.js +2 -3
- package/dist/cdn/workers-cache-purge.js +3 -5
- package/dist/cdn/workers-cache-purge.js.map +1 -1
- package/dist/cli-dev-status.d.ts +75 -0
- package/dist/cli-dev-status.d.ts.map +1 -0
- package/dist/cli-init.d.ts +72 -0
- package/dist/cli-init.d.ts.map +1 -0
- package/dist/cli.d.ts +4 -12
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +27 -54
- package/dist/cli.js.map +1 -1
- package/dist/client/error-boundary.d.ts.map +1 -1
- package/dist/client/error-boundary.js +1 -1
- package/dist/client/global-context.d.ts +21 -1
- package/dist/client/global-context.d.ts.map +1 -1
- package/dist/client/index.js +23 -44
- package/dist/client/index.js.map +1 -1
- package/dist/client/internal.js +13 -18
- package/dist/client/internal.js.map +1 -1
- package/dist/client/navigation-context.d.ts.map +1 -1
- package/dist/client/params-context.d.ts.map +1 -1
- package/dist/client/slot-context.d.ts +2 -2
- package/dist/client/slot-context.d.ts.map +1 -1
- package/dist/client/use-cookie.d.ts +18 -5
- package/dist/client/use-cookie.d.ts.map +1 -1
- package/dist/codec.js +2 -3
- package/dist/config-types.d.ts +22 -5
- package/dist/config-types.d.ts.map +1 -1
- package/dist/config-validation.d.ts.map +1 -1
- package/dist/cookies/define-cookie.d.ts.map +1 -1
- package/dist/cookies/index.js +40 -67
- package/dist/cookies/index.js.map +1 -1
- package/dist/cookies/json-cookie.d.ts +4 -4
- package/dist/index.js +266 -229
- package/dist/index.js.map +1 -1
- package/dist/params/index.js +3 -4
- package/dist/plugin-context.d.ts +7 -0
- package/dist/plugin-context.d.ts.map +1 -1
- package/dist/plugins/dev-discovery.d.ts +69 -5
- package/dist/plugins/dev-discovery.d.ts.map +1 -1
- package/dist/plugins/dev-hostname.d.ts +152 -0
- package/dist/plugins/dev-hostname.d.ts.map +1 -0
- package/dist/plugins/dev-server.d.ts +6 -2
- package/dist/plugins/dev-server.d.ts.map +1 -1
- package/dist/plugins/dev-store-clear.d.ts +83 -0
- package/dist/plugins/dev-store-clear.d.ts.map +1 -0
- package/dist/plugins/graph-endpoint.d.ts +4 -2
- package/dist/plugins/graph-endpoint.d.ts.map +1 -1
- package/dist/plugins/prebuilt.d.ts.map +1 -1
- package/dist/routing/index.js +4 -4
- package/dist/rsc-runtime/rsc.d.ts +2 -1
- package/dist/rsc-runtime/rsc.d.ts.map +1 -1
- package/dist/rsc-runtime/server-references.d.ts +8 -0
- package/dist/rsc-runtime/server-references.d.ts.map +1 -0
- package/dist/schema-bridge.d.ts +28 -19
- package/dist/schema-bridge.d.ts.map +1 -1
- package/dist/search-params/define.d.ts +1 -1
- package/dist/search-params/define.d.ts.map +1 -1
- package/dist/search-params/index.js +11 -14
- package/dist/search-params/index.js.map +1 -1
- package/dist/search-params/wrappers.d.ts +3 -3
- package/dist/server/access-gate.d.ts +12 -0
- package/dist/server/access-gate.d.ts.map +1 -1
- package/dist/server/canonicalize.d.ts +21 -0
- package/dist/server/canonicalize.d.ts.map +1 -1
- package/dist/server/cookie-context.d.ts +8 -1
- package/dist/server/cookie-context.d.ts.map +1 -1
- package/dist/server/flight-source-node.d.ts.map +1 -1
- package/dist/server/flight-source.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +8 -13
- package/dist/server/index.js.map +1 -1
- package/dist/server/interception-gates.d.ts +49 -0
- package/dist/server/interception-gates.d.ts.map +1 -0
- package/dist/server/internal.js +1080 -959
- package/dist/server/internal.js.map +1 -1
- package/dist/server/logger.d.ts +26 -0
- package/dist/server/logger.d.ts.map +1 -1
- package/dist/server/param-coercion.d.ts +8 -0
- package/dist/server/param-coercion.d.ts.map +1 -1
- package/dist/server/pipeline-interception.d.ts +34 -4
- package/dist/server/pipeline-interception.d.ts.map +1 -1
- package/dist/server/pipeline-metadata-route.d.ts +24 -0
- package/dist/server/pipeline-metadata-route.d.ts.map +1 -0
- package/dist/server/pipeline-metadata.d.ts +3 -2
- package/dist/server/pipeline-metadata.d.ts.map +1 -1
- package/dist/server/pipeline-phases.d.ts +9 -3
- package/dist/server/pipeline-phases.d.ts.map +1 -1
- package/dist/server/pipeline.d.ts +18 -0
- package/dist/server/pipeline.d.ts.map +1 -1
- package/dist/server/prebuilt/dev-store.d.ts +68 -22
- package/dist/server/prebuilt/dev-store.d.ts.map +1 -1
- package/dist/server/prebuilt/overlay.d.ts +17 -3
- package/dist/server/prebuilt/overlay.d.ts.map +1 -1
- package/dist/server/prebuilt-runtime.d.ts.map +1 -1
- package/dist/server/primitives.d.ts +13 -0
- package/dist/server/primitives.d.ts.map +1 -1
- package/dist/server/render-utils.d.ts +21 -0
- package/dist/server/render-utils.d.ts.map +1 -1
- package/dist/server/request-context.d.ts +14 -0
- package/dist/server/request-context.d.ts.map +1 -1
- package/dist/server/route-element-builder.d.ts.map +1 -1
- package/dist/server/route-handler.d.ts +7 -0
- package/dist/server/route-handler.d.ts.map +1 -1
- package/dist/server/route-matcher.d.ts +14 -3
- package/dist/server/route-matcher.d.ts.map +1 -1
- package/dist/server/rsc-entry/api-handler.d.ts.map +1 -1
- package/dist/server/rsc-entry/index.d.ts.map +1 -1
- package/dist/server/rsc-entry/rsc-stream.d.ts.map +1 -1
- package/dist/server/signal-identity.d.ts +6 -0
- package/dist/server/signal-identity.d.ts.map +1 -1
- package/dist/server/traced-access.d.ts +18 -0
- package/dist/server/traced-access.d.ts.map +1 -0
- package/dist/server/tracing.d.ts.map +1 -1
- package/dist/server/types.d.ts +5 -4
- package/dist/server/types.d.ts.map +1 -1
- package/dist/shims/font-google.js +1 -2
- package/dist/shims/font-local.js +1 -2
- package/dist/shims/headers.d.ts +11 -4
- package/dist/shims/headers.d.ts.map +1 -1
- package/docs/api/30-api-server.mdx +3 -1
- package/docs/api/32-api-cache.mdx +1 -1
- package/docs/api/33-api-search-params.mdx +3 -1
- package/docs/api/34-api-config.mdx +22 -0
- package/docs/api/36-cli.mdx +72 -6
- package/docs/learn/01-quick-start.mdx +1 -1
- package/docs/learn/06-typed-params.mdx +4 -4
- package/docs/learn/10-caching.mdx +26 -5
- package/llms.txt +1 -1
- package/package.json +12 -12
- package/src/adapters/build-output-helper.ts +26 -4
- package/src/adapters/cloudflare.ts +1 -0
- package/src/adapters/nitro-presets.ts +15 -0
- package/src/adapters/nitro-preview.ts +66 -34
- package/src/adapters/nitro.ts +14 -6
- package/src/analyze/graph-command.ts +25 -133
- package/src/cache/guarded-read.ts +44 -0
- package/src/cache/key-discipline.ts +218 -0
- package/src/cache/timber-cache.ts +46 -7
- package/src/cli-dev-status.ts +196 -0
- package/src/cli-init.ts +278 -0
- package/src/cli.ts +33 -79
- package/src/client/error-boundary.tsx +19 -2
- package/src/client/global-context.ts +42 -14
- package/src/client/navigation-context.ts +4 -11
- package/src/client/params-context.ts +5 -17
- package/src/client/segment-update-context.ts +1 -1
- package/src/client/slot-content-cache-context.ts +1 -1
- package/src/client/slot-context.ts +6 -17
- package/src/client/use-cookie.ts +33 -21
- package/src/config-types.ts +22 -5
- package/src/config-validation.ts +17 -0
- package/src/cookies/define-cookie.ts +10 -46
- package/src/cookies/json-cookie.ts +4 -4
- package/src/plugin-context.ts +7 -0
- package/src/plugins/dev-discovery.ts +216 -6
- package/src/plugins/dev-hostname.ts +322 -0
- package/src/plugins/dev-server.ts +130 -37
- package/src/plugins/dev-store-clear.ts +145 -0
- package/src/plugins/graph-endpoint.ts +15 -3
- package/src/plugins/prebuilt.ts +9 -0
- package/src/rsc-runtime/rsc.ts +7 -3
- package/src/rsc-runtime/server-references.ts +73 -0
- package/src/rsc-runtime/vendor-types.d.ts +17 -0
- package/src/schema-bridge.ts +93 -38
- package/src/search-params/define.ts +5 -6
- package/src/search-params/wrappers.ts +3 -3
- package/src/server/access-gate.tsx +32 -20
- package/src/server/action-handler.ts +58 -36
- package/src/server/canonicalize.ts +27 -0
- package/src/server/cookie-context.ts +11 -3
- package/src/server/flight-source-node.ts +5 -2
- package/src/server/flight-source.ts +4 -3
- package/src/server/index.ts +6 -1
- package/src/server/interception-gates.ts +94 -0
- package/src/server/logger.ts +32 -0
- package/src/server/param-coercion.ts +22 -0
- package/src/server/pipeline-interception.ts +64 -4
- package/src/server/pipeline-metadata-route.ts +242 -0
- package/src/server/pipeline-metadata.ts +7 -5
- package/src/server/pipeline-phases.ts +71 -131
- package/src/server/pipeline.ts +20 -2
- package/src/server/prebuilt/dev-store.ts +113 -34
- package/src/server/prebuilt/overlay.ts +32 -4
- package/src/server/prebuilt-runtime.ts +63 -45
- package/src/server/primitives.ts +14 -0
- package/src/server/render-utils.ts +25 -0
- package/src/server/request-context.ts +27 -3
- package/src/server/route-element-builder.ts +15 -2
- package/src/server/route-handler.ts +3 -2
- package/src/server/route-matcher.ts +48 -33
- package/src/server/rsc-entry/api-handler.ts +2 -33
- package/src/server/rsc-entry/index.ts +8 -3
- package/src/server/rsc-entry/rsc-stream.ts +7 -1
- package/src/server/signal-identity.ts +30 -12
- package/src/server/traced-access.ts +50 -0
- package/src/server/tracing.ts +18 -1
- package/src/server/types.ts +5 -4
- package/src/shims/headers.ts +12 -4
- package/dist/_chunks/actions-BDqn4Oxj.js.map +0 -1
- package/dist/_chunks/build-output-helper-RV_BRcF1.js.map +0 -1
- package/dist/_chunks/cache-api-GE4AOe2H.js.map +0 -1
- package/dist/_chunks/chains-CDK1AWZQ.js +0 -1
- package/dist/_chunks/cli-context-BJQB6rtF.js +0 -1
- package/dist/_chunks/dev-server-BiWNMBVU.js +0 -1
- package/dist/_chunks/dev-server-DIy-SY-J.js.map +0 -1
- package/dist/_chunks/dev-store-BOa304m_.js.map +0 -1
- package/dist/_chunks/flight-source-node-HptmGMT8.js.map +0 -1
- package/dist/_chunks/graph-cache-CYiUS2aS.js.map +0 -1
- package/dist/_chunks/logger-CbLdcy-W.js.map +0 -1
- package/dist/_chunks/node-response-rkQqcFGq.js.map +0 -1
- package/dist/_chunks/plugin-context-DxMMvjUt.js.map +0 -1
- package/dist/_chunks/schema-bridge-C83xa9lT.js.map +0 -1
- package/dist/_chunks/segment-context-xtPUGfdq.js.map +0 -1
- package/dist/server/prebuilt/key-discipline.d.ts +0 -52
- package/dist/server/prebuilt/key-discipline.d.ts.map +0 -1
- package/src/server/prebuilt/key-discipline.ts +0 -122
package/dist/server/logger.d.ts
CHANGED
|
@@ -112,6 +112,18 @@ export declare function logActionError(data: {
|
|
|
112
112
|
error: unknown;
|
|
113
113
|
errorId?: string;
|
|
114
114
|
}): void;
|
|
115
|
+
/**
|
|
116
|
+
* Log a server action request rejected as the client's mistake before the
|
|
117
|
+
* action ran: a reference that does not exist, a body that will not decode.
|
|
118
|
+
* Level: warn, with the reason but no stack — any client can send these, so
|
|
119
|
+
* they must not read as server faults (TIM-1601).
|
|
120
|
+
*/
|
|
121
|
+
export declare function logActionRejected(data: {
|
|
122
|
+
method: string;
|
|
123
|
+
path: string;
|
|
124
|
+
status: number;
|
|
125
|
+
reason: string;
|
|
126
|
+
}): void;
|
|
115
127
|
/** Log unhandled error in route handler. Level: error. */
|
|
116
128
|
export declare function logRouteError(data: {
|
|
117
129
|
method: string;
|
|
@@ -128,6 +140,11 @@ export declare function logWaitUntilUnsupported(): void;
|
|
|
128
140
|
export declare function logWaitUntilRejected(data: {
|
|
129
141
|
error: unknown;
|
|
130
142
|
}): void;
|
|
143
|
+
/**
|
|
144
|
+
* Log a cached value computed from request context its key leaves out
|
|
145
|
+
* (design/45 §Enforcement). Level: error.
|
|
146
|
+
*/
|
|
147
|
+
export declare function logKeyDisciplineViolation(event: string, data: Record<string, unknown>): void;
|
|
131
148
|
/** Log staleWhileRevalidate refetch failure. Level: warn. */
|
|
132
149
|
export declare function logSwrRefetchFailed(data: {
|
|
133
150
|
cacheKey: string;
|
|
@@ -142,6 +159,15 @@ export declare function logLossyCacheValue(data: {
|
|
|
142
159
|
export declare function logCacheMiss(data: {
|
|
143
160
|
cacheKey: string;
|
|
144
161
|
}): void;
|
|
162
|
+
/**
|
|
163
|
+
* Log a cache read that threw or timed out and was served as a miss.
|
|
164
|
+
* Level: warn — the request still succeeds, but a failing store (Redis down,
|
|
165
|
+
* KV erroring) means every read is paying for a live fetch.
|
|
166
|
+
*/
|
|
167
|
+
export declare function logCacheReadFailed(data: {
|
|
168
|
+
cacheKey: string;
|
|
169
|
+
error: unknown;
|
|
170
|
+
}): void;
|
|
145
171
|
/**
|
|
146
172
|
* Log an intentionally swallowed error. Provides observability into catch
|
|
147
173
|
* blocks that are deliberately empty — the error is consumed, never rethrown.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/server/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD,6FAA6F;AAC7F,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxD,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzD,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC1D;AAQD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAEpD;AAED;;;GAGG;AACH,wB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AA;CAAE,GAAG,IAAI,CAO/F"}
|
|
@@ -22,6 +22,14 @@ import { type CoercedParams } from '../shared/param-value.ts';
|
|
|
22
22
|
export declare class ParamCoercionError extends Error {
|
|
23
23
|
constructor(message: string);
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* The dev diagnostic for a match whose params a codec rejected; the caller
|
|
27
|
+
* answers 404. Shared by page/route.ts matches and metadata routes, so a
|
|
28
|
+
* silent coercion 404 explains itself the same way on either.
|
|
29
|
+
*/
|
|
30
|
+
export declare function warnParamCoercionFailure(method: string, pathname: string, segments: readonly {
|
|
31
|
+
segmentName: string;
|
|
32
|
+
}[], error: ParamCoercionError): void;
|
|
25
33
|
/**
|
|
26
34
|
* Register the global schema codecs. Called once from the RSC entry
|
|
27
35
|
* at server startup when app/schema.ts provides segment param codecs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param-coercion.d.ts","sourceRoot":"","sources":["../../src/server/param-coercion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACnF;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAUD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAEzF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,KAAK,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,E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IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC,EACF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,GAC3C,aAAa,CAyCf;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAuDnF"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { InterceptionRewrite } from '../routing/interception.ts';
|
|
12
12
|
import type { InterceptionContext, PipelineConfig, RouteMatch } from './pipeline.ts';
|
|
13
|
+
import type { MiddlewareFn } from './middleware-runner.ts';
|
|
13
14
|
/**
|
|
14
15
|
* Check if an intercepting route applies for this soft navigation.
|
|
15
16
|
*
|
|
@@ -80,14 +81,43 @@ export declare function findInterceptionMatch(targetPathname: string, resolveSou
|
|
|
80
81
|
* Static segments must match exactly.
|
|
81
82
|
*/
|
|
82
83
|
export declare function pathnameMatchesPattern(pathname: string, pattern: string): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Which route renders a request, and — when an interception replaced it —
|
|
86
|
+
* which route authorizes it.
|
|
87
|
+
*/
|
|
88
|
+
export interface ResolvedRoute {
|
|
89
|
+
/** The route that renders: the canonical match unless a rewrite applied. */
|
|
90
|
+
match: RouteMatch | null;
|
|
91
|
+
/** Set for the modal shape only; see the `'children'` branch below. */
|
|
92
|
+
interception?: InterceptionContext;
|
|
93
|
+
/**
|
|
94
|
+
* The URL's own route, set whenever an interception replaced it — in
|
|
95
|
+
* either shape. Its middleware and access chain authorize the response:
|
|
96
|
+
* the rendered chain is a different route, and nothing on it was written
|
|
97
|
+
* to protect this URL (TIM-1607).
|
|
98
|
+
*/
|
|
99
|
+
canonical?: RouteMatch;
|
|
100
|
+
}
|
|
83
101
|
/**
|
|
84
102
|
* Resolve which route renders a soft navigation that an intercepting route
|
|
85
103
|
* may claim. Returns the canonical match unchanged when no rewrite applies.
|
|
86
104
|
*
|
|
87
105
|
* Runs during route setup, so anything it throws is a `'setup'` outcome.
|
|
88
106
|
*/
|
|
89
|
-
export declare function resolveInterceptedRoute(config: PipelineConfig, req: Request, canonicalPathname: string, canonicalMatch: RouteMatch | null):
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
107
|
+
export declare function resolveInterceptedRoute(config: PipelineConfig, req: Request, canonicalPathname: string, canonicalMatch: RouteMatch | null): ResolvedRoute;
|
|
108
|
+
/**
|
|
109
|
+
* The middleware an intercepted navigation runs: the URL's chain, then each
|
|
110
|
+
* middleware.ts only the rendered chain has. Shared ancestors are the same
|
|
111
|
+
* manifest nodes on both chains, so each file runs once, and each chain keeps
|
|
112
|
+
* its own root-to-leaf order (TIM-1607).
|
|
113
|
+
*/
|
|
114
|
+
export declare function interceptedMiddlewareChain(canonical: RouteMatch, rendered: RouteMatch): MiddlewareFn[];
|
|
115
|
+
/**
|
|
116
|
+
* Run `fn` with a route's own params as what `getSegmentParams()` returns.
|
|
117
|
+
*
|
|
118
|
+
* An intercepted request publishes the rendered route's params. The URL's
|
|
119
|
+
* middleware and access.ts were written for the URL's route, and run under
|
|
120
|
+
* this so they read its params (TIM-1607).
|
|
121
|
+
*/
|
|
122
|
+
export declare function runWithRouteParams<T>(route: RouteMatch, fn: () => T): T;
|
|
93
123
|
//# sourceMappingURL=pipeline-interception.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-interception.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-interception.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"pipeline-interception.d.ts","sour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AC,GAAG,CAAC,CAEvE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stage 1b of the request pipeline: serving a matched metadata route
|
|
3
|
+
* (sitemap, robots, manifest, favicon, icon, apple-icon, opengraph-image).
|
|
4
|
+
*
|
|
5
|
+
* A metadata route runs the per-segment stages a page at its segment runs,
|
|
6
|
+
* in the same order: param coercion through `app/schema.ts`, then the
|
|
7
|
+
* `middleware.ts` chain, then the `access.ts` chain — then the file or
|
|
8
|
+
* handler. Files owned by the root segment are the one exception: they are
|
|
9
|
+
* the app's public crawler surface (`/robots.txt`, `/sitemap.xml`, the app
|
|
10
|
+
* icons), so no gate runs for them, not even a root `access.ts` that gates
|
|
11
|
+
* every page. A file anywhere below the root, a route group included, sits
|
|
12
|
+
* in its segments' authorization scope like any page there (TIM-1609).
|
|
13
|
+
*
|
|
14
|
+
* Signals answer with a bare status, never a deny page: a metadata route is
|
|
15
|
+
* an image, a sitemap or a text file, not a document.
|
|
16
|
+
*
|
|
17
|
+
* See design/16-metadata.md §"Pipeline Integration",
|
|
18
|
+
* design/13-security.md threat 11b.
|
|
19
|
+
*/
|
|
20
|
+
import { type MetadataRouteMatch } from './route-matcher.ts';
|
|
21
|
+
import type { PipelineConfig } from './pipeline.ts';
|
|
22
|
+
/** Answer a request whose canonical pathname matched a metadata route. */
|
|
23
|
+
export declare function serveMetadataRoute(config: PipelineConfig, req: Request, method: string, path: string, pathname: string, metaMatch: MetadataRouteMatch): Promise<Response>;
|
|
24
|
+
//# sourceMappingURL=pipeline-metadata-route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline-metadata-route.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-metadata-route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAuBH,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAU5B,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,eAAe,CAAC;AAGhE,0EAA0E;AAC1E,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,kBAAkB,GAC5B,OAAO,CAAC,QAAQ,CAAC,CA8EnB"}
|
|
@@ -20,11 +20,12 @@ export declare const METADATA_CACHE_CONTROL = "public, max-age=14400, must-reval
|
|
|
20
20
|
*
|
|
21
21
|
* Static metadata route files (.xml, .txt, .json, .png, .ico, .svg, etc.)
|
|
22
22
|
* are served as-is with the appropriate Content-Type header.
|
|
23
|
-
* Text files include charset=utf-8; binary files do not.
|
|
23
|
+
* Text files include charset=utf-8; binary files do not. `cacheControl` is
|
|
24
|
+
* omitted for a file behind gates, whose answer depends on who asked.
|
|
24
25
|
*
|
|
25
26
|
* See design/16-metadata.md §"Metadata Routes"
|
|
26
27
|
*/
|
|
27
|
-
export declare function serveStaticMetadataFile(metaMatch: import('./route-matcher.ts').MetadataRouteMatch): Promise<Response>;
|
|
28
|
+
export declare function serveStaticMetadataFile(metaMatch: import('./route-matcher.ts').MetadataRouteMatch, cacheControl: string | undefined): Promise<Response>;
|
|
28
29
|
/**
|
|
29
30
|
* Serialize a sitemap array to XML.
|
|
30
31
|
* Follows the sitemap.org protocol: https://www.sitemaps.org/protocol.html
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-metadata.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,2CAA2C,CAAC;AAc/E
|
|
1
|
+
{"version":3,"file":"pipeline-metadata.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,2CAA2C,CAAC;AAc/E;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAC3C,SAAS,EAAE,OAAO,oBAAoB,EAAE,kBAAkB,EAC1D,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAanB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,GACD,MAAM,CAoBR;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,CAMnE;AAED,qCAAqC;AACrC,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO7C"}
|
|
@@ -30,10 +30,16 @@ interface RenderContext {
|
|
|
30
30
|
export declare function runProxyPhase(config: PipelineConfig, getProxy: ProxyResolver, req: Request, method: string, path: string, next?: () => Promise<Response>): Promise<PhaseOutcome>;
|
|
31
31
|
/**
|
|
32
32
|
* Run the middleware chain phase. If the chain short-circuits with a Response,
|
|
33
|
-
* returns it as a 'response' outcome
|
|
34
|
-
* overlay and
|
|
33
|
+
* returns it as a 'response' outcome, and a thrown signal or error as its
|
|
34
|
+
* outcome. Otherwise applies the request header overlay and returns null: the
|
|
35
|
+
* request continues to the render phase.
|
|
36
|
+
*
|
|
37
|
+
* The chain is the URL's. On an intercepted navigation that is
|
|
38
|
+
* `match.canonical`'s, not the rendered route's: the URL's middleware
|
|
39
|
+
* followed by any only the rendered chain has, run with the URL's params
|
|
40
|
+
* (TIM-1607).
|
|
35
41
|
*/
|
|
36
|
-
export declare function runMiddlewarePhase(config: PipelineConfig, req: Request, match: RouteMatch, responseHeaders: Headers
|
|
42
|
+
export declare function runMiddlewarePhase(config: PipelineConfig, req: Request, match: RouteMatch, responseHeaders: Headers): Promise<PhaseOutcome | null>;
|
|
37
43
|
/**
|
|
38
44
|
* Run the render phase. Wraps the configured renderer in a span and a
|
|
39
45
|
* timing scope, and translates thrown signals into outcome variants.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-phases.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-phases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"pipeline-phases.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-phases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAwBH,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMrF,UAAU,aAAa;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAID;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,aAAa,EACvB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,GAC7B,OAAO,CAAC,YAAY,CAAC,CAavB;AAID;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAuD9B;AAID;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,OAAO,EACxB,EAAE,iBAAiB,EAAE,YAAY,EAAE,EAAE,aAAa,GACjD,OAAO,CAAC,YAAY,CAAC,CAYvB;AAID;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAAC,QAAQ,CAAC,CAsNnB"}
|
|
@@ -49,6 +49,18 @@ export interface RouteMatch {
|
|
|
49
49
|
rawSegmentParams: Record<string, string | string[]>;
|
|
50
50
|
/** Middleware chain from the segment tree, ordered root-to-leaf. */
|
|
51
51
|
middlewareChain: MiddlewareFn[];
|
|
52
|
+
/**
|
|
53
|
+
* The URL's own route, with coerced params, when this match renders an
|
|
54
|
+
* interception of it (either shape). Set by the pipeline only.
|
|
55
|
+
*
|
|
56
|
+
* The rendered chain is a different route, and nothing on it was written
|
|
57
|
+
* to protect this URL. So the URL's `middleware.ts` chain runs before
|
|
58
|
+
* render, and its `access.ts` files render as gates in this tree — those
|
|
59
|
+
* of segments the two chains do not share, placed around the deepest
|
|
60
|
+
* shared segment's layout (TIM-1607, design/07-routing.md §"Intercepting
|
|
61
|
+
* Routes"). A match with `canonical` set never nests another.
|
|
62
|
+
*/
|
|
63
|
+
canonical?: RouteMatch;
|
|
52
64
|
}
|
|
53
65
|
/** Function that matches a canonical pathname to a route. */
|
|
54
66
|
export type RouteMatcher = (pathname: string) => RouteMatch | null;
|
|
@@ -114,6 +126,12 @@ export interface PipelineConfig {
|
|
|
114
126
|
stripTrailingSlash?: boolean;
|
|
115
127
|
/** Slow request threshold in ms. Requests exceeding this emit a warning. 0 to disable. Default: 3000. */
|
|
116
128
|
slowRequestMs?: number;
|
|
129
|
+
/**
|
|
130
|
+
* The resolved `renderTimeoutMs`: the deadline for reading a dynamic
|
|
131
|
+
* metadata route's Response body before it is answered. Defaults to
|
|
132
|
+
* `DEFAULT_RENDER_TIMEOUT_MS` for direct callers.
|
|
133
|
+
*/
|
|
134
|
+
renderTimeoutMs?: number;
|
|
117
135
|
/**
|
|
118
136
|
* Interception rewrites — conditional routes for the modal pattern.
|
|
119
137
|
* Generated at build time from intercepting route directories.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/server/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAa3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAQ5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAK9D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC;;;;OAIG;IACH,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IACpD,oEAAoE;IACpE,eAAe,EAAE,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/server/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,K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,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAID;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAsS1F"}
|
|
@@ -9,21 +9,30 @@
|
|
|
9
9
|
* that. Runtime-tier entries (`ttl`/`tags`) keep using the cache-handler
|
|
10
10
|
* overlay; in dev their keys carry this store's namespace (`overlayKey`).
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
12
|
+
* Every dev-server watcher event clears the store. The dev-server plugin
|
|
13
|
+
* sends `PREBUILT_DEV_CLEAR_EVENT` to the RSC environment and the RSC entry
|
|
14
|
+
* calls `clearDevPrebuiltStore()` (plugins/dev-store-clear.ts, TIM-1599).
|
|
15
|
+
* A save of a file the RSC module graph knows is scoped: the event names
|
|
16
|
+
* the components declared in the saved module and its transitive
|
|
17
|
+
* importers, which are the only call sites whose code could have changed.
|
|
18
|
+
* Any other event (a file read with `fs`, an add or a delete) names none,
|
|
19
|
+
* and clears everything — the module graph never says who reads a file
|
|
20
|
+
* with `fs`. A clear
|
|
21
|
+
* does three things:
|
|
18
22
|
*
|
|
19
|
-
* 1. drops every seed
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* 1. drops the seeds of the named components and every ISR seed (every
|
|
24
|
+
* seed, unscoped);
|
|
25
|
+
* 2. bumps the generation, which namespaces dev overlay keys and
|
|
26
|
+
* `cache.data` keys, so EVERY runtime-tier and data entry stored
|
|
27
|
+
* before the save becomes unreachable, scoped or not. Those tiers are
|
|
28
|
+
* cheap to refill, and a data function's ID comes from its call site,
|
|
29
|
+
* so a scoped answer for them would need a dependency walk of its own;
|
|
30
|
+
* 3. records an invalidation of the named components (of everything,
|
|
31
|
+
* unscoped), so a capture of one already in flight — which may have
|
|
32
|
+
* loaded the pre-save code — is not stored, and a request arriving
|
|
33
|
+
* after the save does not join that flight (the TIM-1028 guard every
|
|
34
|
+
* capture path already runs). Captures of the other components are
|
|
35
|
+
* untouched.
|
|
27
36
|
*
|
|
28
37
|
* Inactive outside dev: production never enables it. Dev enables it only
|
|
29
38
|
* when HMR is on — with `server.hmr: false` Vite delivers no watcher events
|
|
@@ -32,6 +41,13 @@
|
|
|
32
41
|
*/
|
|
33
42
|
/** Custom HMR event the dev-server plugin sends to the RSC environment. */
|
|
34
43
|
export declare const PREBUILT_DEV_CLEAR_EVENT = "timber:prebuilt-dev-clear";
|
|
44
|
+
/**
|
|
45
|
+
* The `PREBUILT_DEV_CLEAR_EVENT` payload: the components whose seeds to
|
|
46
|
+
* drop. Absent means every component.
|
|
47
|
+
*/
|
|
48
|
+
export interface DevStoreClear {
|
|
49
|
+
componentIds?: string[];
|
|
50
|
+
}
|
|
35
51
|
/** One captured prerender-tier entry — the dev counterpart of a `.flight` seed. */
|
|
36
52
|
export interface DevSeed {
|
|
37
53
|
bytes: Uint8Array;
|
|
@@ -39,6 +55,11 @@ export interface DevSeed {
|
|
|
39
55
|
tags: string[];
|
|
40
56
|
/** Capture time; stands in for the manifest's buildTimestamp. */
|
|
41
57
|
capturedAt: number;
|
|
58
|
+
/**
|
|
59
|
+
* The component also has a runtime lifetime (`ttl`/`tags`, ISR): its
|
|
60
|
+
* newer renders live in the overlay, which every clear moves on from.
|
|
61
|
+
*/
|
|
62
|
+
isr: boolean;
|
|
42
63
|
}
|
|
43
64
|
/**
|
|
44
65
|
* - `off`: production (and the default). Wrappers use the build artifact and
|
|
@@ -50,7 +71,13 @@ export interface DevSeed {
|
|
|
50
71
|
* entries a save never clears).
|
|
51
72
|
*/
|
|
52
73
|
export type DevPrebuiltStoreMode = 'off' | 'active' | 'bypass';
|
|
53
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Set by the RSC entry in dev (and by tests). A change of mode starts the
|
|
76
|
+
* store empty. Setting the same mode again keeps it: the RSC entry
|
|
77
|
+
* self-accepts, so it re-runs whenever anything it imports changes (with
|
|
78
|
+
* Tailwind, every source save reaches it through the CSS), and the save
|
|
79
|
+
* has already cleared what it could have changed.
|
|
80
|
+
*/
|
|
54
81
|
export declare function setDevPrebuiltStoreMode(next: DevPrebuiltStoreMode): void;
|
|
55
82
|
export declare function isDevPrebuiltStoreActive(): boolean;
|
|
56
83
|
/** Dev without HMR: every cache.component wrapper renders live. */
|
|
@@ -73,17 +100,36 @@ export declare function devOverlayNamespace(): string | null;
|
|
|
73
100
|
export declare function devDataCacheKey(key: string): string;
|
|
74
101
|
export declare function getDevSeed(componentId: string, cacheKey: string): DevSeed | undefined;
|
|
75
102
|
/**
|
|
76
|
-
* Store a captured seed
|
|
77
|
-
* tag invalidation) happened while it
|
|
103
|
+
* Store a captured seed, announcing the component's first one. The caller
|
|
104
|
+
* has already checked that no clear (or tag invalidation) happened while it
|
|
105
|
+
* was capturing.
|
|
78
106
|
*/
|
|
79
107
|
export declare function setDevSeed(componentId: string, cacheKey: string, seed: DevSeed): void;
|
|
80
|
-
/**
|
|
81
|
-
|
|
108
|
+
/**
|
|
109
|
+
* An invalidation-epoch tag for one component (it never reaches a cache
|
|
110
|
+
* handler; the NUL keeps it apart from user tags), recorded when a scoped
|
|
111
|
+
* clear drops the component. Dev captures add it
|
|
112
|
+
* to their invalidation checks, so a scoped clear reaches a capture of the
|
|
113
|
+
* component that is in flight, including its first, which has no seed yet.
|
|
114
|
+
*/
|
|
115
|
+
export declare function devComponentTag(componentId: string): string;
|
|
116
|
+
/**
|
|
117
|
+
* A source change: drop the seeds of `componentIds`, or of every component
|
|
118
|
+
* when absent. Every clear bumps the generation (see the header).
|
|
119
|
+
*/
|
|
120
|
+
export declare function clearDevPrebuiltStore(componentIds?: Iterable<string>): void;
|
|
121
|
+
/**
|
|
122
|
+
* The invalidation-epoch key dev captures of one entry check. Unlike the
|
|
123
|
+
* overlay key it carries no generation, like the seed it guards: a capture
|
|
124
|
+
* that a scoped clear kept in flight started under an older generation,
|
|
125
|
+
* and must still see a hard reload that comes after the clear.
|
|
126
|
+
*/
|
|
127
|
+
export declare function devEntryKey(componentId: string, cacheKey: string): string;
|
|
82
128
|
/**
|
|
83
129
|
* A hard reload: discard one entry — its seed and its overlay record — so
|
|
84
|
-
* the request renders it again. Recorded as an invalidation of its
|
|
85
|
-
* first, so a capture of it already in flight (which may have read the
|
|
86
|
-
* external data) neither stores nor is joined by this request.
|
|
130
|
+
* the request renders it again. Recorded as an invalidation of both its
|
|
131
|
+
* keys first, so a capture of it already in flight (which may have read the
|
|
132
|
+
* old external data) neither stores nor is joined by this request.
|
|
87
133
|
*/
|
|
88
134
|
export declare function discardDevEntry(componentId: string, cacheKey: string, overlayKey: string): Promise<void>;
|
|
89
135
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-store.d.ts","sourceRoot":"","sources":["../../../src/server/prebuilt/dev-store.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dev-store.d.ts","sourceRoot":"","sources":["../../../src/server/prebuilt/dev-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAKH,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,mFAAmF;AACnF,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,GAAG,EAAE,OAAO,CAAC;CACd;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAA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ponentTombstoneRecord;
|
|
|
42
42
|
* become unreachable (server/prebuilt/dev-store.ts).
|
|
43
43
|
*/
|
|
44
44
|
export declare function overlayKey(componentId: string, cacheKey: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether a re-render that started at `startEpoch` may store its capture
|
|
47
|
+
* under `oKey`: nothing invalidated the key or its tags meanwhile
|
|
48
|
+
* (TIM-1028), and the overlay key has not moved on. In dev a save moves it
|
|
49
|
+
* to a new namespace, and the bytes may come from the pre-save code: stored,
|
|
50
|
+
* they would answer every request after the save.
|
|
51
|
+
*/
|
|
52
|
+
export declare function mayStoreRerender(startEpoch: number, componentId: string, cacheKey: string, oKey: string, tags: string[]): boolean;
|
|
45
53
|
export interface OverlayLookupResult {
|
|
46
|
-
|
|
47
|
-
|
|
54
|
+
/**
|
|
55
|
+
* `unreadable`: the handler read threw or timed out (cache/guarded-read.ts).
|
|
56
|
+
* Not a miss — a miss falls through to the build seed, and the overlay the
|
|
57
|
+
* read could not reach may hold that seed's tombstone. The caller renders
|
|
58
|
+
* instead of trusting the seed.
|
|
59
|
+
*/
|
|
60
|
+
kind: 'fresh' | 'stale' | 'tombstone' | 'unreadable';
|
|
61
|
+
/** The overlay value (null for tombstones and unreadable reads). */
|
|
48
62
|
record: ComponentOverlayRecord | null;
|
|
49
|
-
/** Raw flight payload bytes (decoded from base64). Null for tombstones. */
|
|
63
|
+
/** Raw flight payload bytes (decoded from base64). Null for tombstones and unreadable reads. */
|
|
50
64
|
payload: Uint8Array | null;
|
|
51
65
|
}
|
|
52
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/server/prebuilt/overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/server/prebuilt/overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,EAAi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AAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE5D;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,UAAU,EACxB,IAAI,EAAE;IACJ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,GACA,OAAO,CAAC,IAAI,CAAC,CAcf;AAMD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAG7D;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,GAAG,IAAI,CAE/D;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBtE;AA8BD;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebuilt-runtime.d.ts","sourceRoot":"","sources":["../../src/server/prebuilt-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;
|
|
1
|
+
{"version":3,"file":"prebuilt-runtime.d.ts","sourceRoot":"","sources":["../../src/server/prebuilt-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAkDH,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAkB3E;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAGlE;AAYD;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,wEAAwE;IACxE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
39
|
* client's cached layout chrome (TIM-1074). See TIM-1363.
|
|
40
40
|
*/
|
|
41
41
|
_hardNavigate?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* When true, no boundary in the tree that threw this may place it: the
|
|
44
|
+
* denying gate guards a segment of the URL's own route that the rendered
|
|
45
|
+
* tree does not contain, so none of its deny pages, nor their layouts, are
|
|
46
|
+
* here. Set by the gate an intercepted navigation renders for each such
|
|
47
|
+
* segment (TIM-1607), together with `_hardNavigate`.
|
|
48
|
+
*
|
|
49
|
+
* Flight's `onError` does not late-address it, and its row carries
|
|
50
|
+
* `leaveSpa`, which every client boundary declines but the terminal, which
|
|
51
|
+
* leaves the SPA — so the document request for the URL renders the URL's
|
|
52
|
+
* own deny page with its real status, wherever the deny lands in time.
|
|
53
|
+
*/
|
|
54
|
+
_leaveSpa?: boolean;
|
|
42
55
|
constructor(status: number, data?: JsonSerializable);
|
|
43
56
|
/**
|
|
44
57
|
* Extract the file that called deny() from the stack trace.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/server/primitives.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAQlE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,SAAS,GAAG,MAAM,GAAG,IAAI,CA8DhF;AAsBD;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,QAAQ,CAAC,CAAC,UAAU,CAAC,QAAQ;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAE5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;;;;;OAMG;IACH,a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,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,KAAK,CASlE;AAID,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,CAAC,cAAc,CAAC,QAAQ;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YAAY,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAK3C;CACF;AAID;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,KAAK,CA4BxF;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,MAAM,GAAE,MAAY,GAAG,KAAK,CAO9F;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAczD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
|
|
@@ -14,12 +14,33 @@
|
|
|
14
14
|
* escaping is required.
|
|
15
15
|
*/
|
|
16
16
|
export declare function nonceAttr(nonce: string | undefined): string;
|
|
17
|
+
/**
|
|
18
|
+
* The reason to abort a render with when its consumer releases it.
|
|
19
|
+
*
|
|
20
|
+
* The framework releases a Flight render it no longer needs — the renderer
|
|
21
|
+
* once a deny or redirect is captured, a tee once either branch is done —
|
|
22
|
+
* usually without a reason. React then reports the abort to the render's
|
|
23
|
+
* `onError` as a plain `Error("The render was aborted by the server without a
|
|
24
|
+
* reason.")`, which reads as an application failure: a `metadata()` that
|
|
25
|
+
* denies while the page is still fetching logged an unhandled render error
|
|
26
|
+
* (TIM-1597). An `AbortError` is what {@link isAbortError} already treats as
|
|
27
|
+
* not-an-error. A reason the caller did pass (a timeout, the tee's divergence
|
|
28
|
+
* guard) is kept, so those still reach the log.
|
|
29
|
+
*/
|
|
30
|
+
export declare function releaseReason(reason: unknown): unknown;
|
|
17
31
|
/**
|
|
18
32
|
* Check if an error is an abort error (connection closed by client).
|
|
19
33
|
*
|
|
20
34
|
* When the browser aborts a request (page refresh, navigation away),
|
|
21
35
|
* the AbortSignal fires and React/streams throw an AbortError. This
|
|
22
36
|
* is not an application error — suppress it from error boundaries and logs.
|
|
37
|
+
*
|
|
38
|
+
* A native `ReadableStream.tee()` cancels its source with an array of both
|
|
39
|
+
* branches' reasons (Streams spec, ReadableStreamDefaultTee), so a Web
|
|
40
|
+
* render released through a tee is aborted with `[reason1, reason2]`. That is
|
|
41
|
+
* an abort when every entry is — a tee whose branches were both released
|
|
42
|
+
* ({@link releaseReason}) — and an error when any entry is, such as the
|
|
43
|
+
* divergence guard's.
|
|
23
44
|
*/
|
|
24
45
|
export declare function isAbortError(error: unknown): boolean;
|
|
25
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-utils.d.ts","sourceRoot":"","sources":["../../src/server/render-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE3D;AAED
|
|
1
|
+
{"version":3,"file":"render-utils.d.ts","sourceRoot":"","sources":["../../src/server/render-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAEtD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -94,6 +94,20 @@ export declare function setSlotParams(segmentPath: string, params: CoercedParams
|
|
|
94
94
|
* @internal — framework use only
|
|
95
95
|
*/
|
|
96
96
|
export declare function runWithSlotSegmentParams<T>(slotSegmentPath: string | undefined, slotParams: CoercedParams, fn: () => T): T;
|
|
97
|
+
/**
|
|
98
|
+
* Run `fn` with exactly these segment params, and this matched segment
|
|
99
|
+
* path, standing in for the main route's — what a no-arg
|
|
100
|
+
* `getSegmentParams()` returns inside it.
|
|
101
|
+
*
|
|
102
|
+
* The parallel-slot scope above is one use. The other is an intercepted
|
|
103
|
+
* navigation (TIM-1607): the URL's own middleware and access.ts run while the
|
|
104
|
+
* request publishes the *rendered* route's params, and each must see the
|
|
105
|
+
* params of the route it was written for. Same Proxy, for the same reason:
|
|
106
|
+
* every write still reaches the live store.
|
|
107
|
+
*
|
|
108
|
+
* @internal — framework use only
|
|
109
|
+
*/
|
|
110
|
+
export declare function runWithSegmentParams<T>(matchedSegmentPath: string | undefined, segmentParams: CoercedParams, fn: () => T): T;
|
|
97
111
|
/**
|
|
98
112
|
* The main route's coerced params, or an empty record before route matching.
|
|
99
113
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-context.d.ts","sourceRoot":"","sources":["../../src/server/request-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,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;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAG/C;AAID;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,OAAO,EACP,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,MAAM,CAAC,QAAQ,CACnF,CAAC;AAIF,6CAA6C;AAC7C,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,GAAG,EAAE,OAAO,EACZ,EAAE,EAAE,MAAM,CAAC,EACX,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,GAAE,qBAA0B,GAC/E,CAAC,CA2BH;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK9D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAK1C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmBhE;AAqCD;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,cAAc,GAAG,IAAI,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,oBAAoB,GAAG,IAAI,CAErE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-element-builder.d.ts","sourceRoot":"","sources":["../../src/server/route-element-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;A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,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC3C,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB,wDAAwD;IACxD,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,qCAAqC;IACrC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AA4DD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,YAAY,CAAC,EAAE,mBAAmB,EAClC,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,EACxC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CAAC,kBAAkB,CAAC,CAmb7B"}
|
|
@@ -32,4 +32,11 @@ export declare function resolveAllowedMethods(mod: RouteModule): HttpMethod[];
|
|
|
32
32
|
* and merges response headers from ctx.headers.
|
|
33
33
|
*/
|
|
34
34
|
export declare function handleRouteRequest(mod: RouteModule, ctx: RouteContext): Promise<Response>;
|
|
35
|
+
/**
|
|
36
|
+
* Merge response headers from ctx.headers into the handler's response.
|
|
37
|
+
* ctx.headers (set by middleware or the handler) are applied to the final response.
|
|
38
|
+
* Handler-set headers take precedence over ctx.headers. Metadata routes
|
|
39
|
+
* behind gates merge their middleware's headers the same way.
|
|
40
|
+
*/
|
|
41
|
+
export declare function mergeResponseHeaders(res: Response, ctxHeaders: Headers): Response;
|
|
35
42
|
//# sourceMappingURL=route-handler.d.ts.map
|