@uniformdev/next-app-router 20.81.0 → 20.81.1-alpha.7.sha-91a5b13e0c
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/dist/{UniformComposition-DBO-oo7J.d.ts → UniformComposition-C00_YDOg.d.ts} +11 -31
- package/dist/{UniformComposition-le6UEB_r.d.mts → UniformComposition-DiArCpVQ.d.mts} +11 -31
- package/dist/cache.d.mts +24 -6
- package/dist/cache.d.ts +24 -6
- package/dist/cache.js +410 -831
- package/dist/cache.mjs +405 -829
- package/dist/compat.d.mts +2 -4
- package/dist/compat.d.ts +2 -4
- package/dist/component.d.mts +10 -1
- package/dist/component.d.ts +10 -1
- package/dist/component.js +113 -617
- package/dist/component.mjs +112 -640
- package/dist/composition-BvOM-LIW.d.mts +28 -0
- package/dist/composition-BvOM-LIW.d.ts +28 -0
- package/dist/config/default.js +0 -1
- package/dist/config/default.mjs +0 -1
- package/dist/createCachedManifestProvider-C7faGJJ8.d.mts +69 -0
- package/dist/createCachedManifestProvider-C7faGJJ8.d.ts +69 -0
- package/dist/edge.d.mts +57 -0
- package/dist/edge.d.ts +57 -0
- package/dist/edge.js +1105 -0
- package/dist/edge.mjs +1073 -0
- package/dist/handler.d.mts +15 -2
- package/dist/handler.d.ts +15 -2
- package/dist/handler.js +134 -628
- package/dist/handler.mjs +132 -626
- package/dist/index.d.mts +73 -42
- package/dist/index.d.ts +73 -42
- package/dist/index.esm.js +2032 -5629
- package/dist/index.js +2068 -5661
- package/dist/index.mjs +2032 -5629
- package/dist/middleware.d.mts +52 -13
- package/dist/middleware.d.ts +52 -13
- package/dist/middleware.js +410 -5746
- package/dist/middleware.mjs +417 -5776
- package/dist/resolveRouteFromPath-BHJGOpBN.d.ts +82 -0
- package/dist/resolveRouteFromPath-BsZUVkRX.d.mts +82 -0
- package/dist/vercel.d.mts +24 -0
- package/dist/vercel.d.ts +24 -0
- package/dist/vercel.js +703 -0
- package/dist/vercel.mjs +675 -0
- package/package.json +37 -9
- package/dist/client-BElN_CWD.d.mts +0 -786
- package/dist/client-BElN_CWD.d.ts +0 -786
- package/dist/resolveRouteFromCode-BOvjIvM2.d.ts +0 -18
- package/dist/resolveRouteFromCode-CuJ4JHeb.d.mts +0 -18
package/dist/handler.d.mts
CHANGED
|
@@ -24,6 +24,19 @@ declare const createPreviewGETRouteHandler: (options?: CreatePreviewGETRouteHand
|
|
|
24
24
|
|
|
25
25
|
declare const createPreviewOPTIONSRouteHandler: () => () => Promise<Response>;
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
type CreatePreviewPOSTRouteHandlerOptions = {
|
|
28
|
+
/**
|
|
29
|
+
* Called with the cache tags a webhook revalidated, after `revalidateTag`. Use it to expire the
|
|
30
|
+
* same tags in caches Next.js does not manage, for example `expireVercelRuntimeCacheTags` from
|
|
31
|
+
* `@uniformdev/next-app-router/vercel` when the edge middleware uses `vercelManifestProvider`.
|
|
32
|
+
* A rejection fails the webhook request, so the sender retries it.
|
|
33
|
+
*/
|
|
34
|
+
onRevalidateTags?: (tags: string[]) => void | Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Creates the POST handler for the preview route, which receives Uniform webhooks and revalidates
|
|
38
|
+
* the cache tags and paths the change affects.
|
|
39
|
+
*/
|
|
40
|
+
declare const createPreviewPOSTRouteHandler: (options?: CreatePreviewPOSTRouteHandlerOptions) => (request: NextRequest) => Promise<Response>;
|
|
28
41
|
|
|
29
|
-
export { createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
|
42
|
+
export { type CreatePreviewPOSTRouteHandlerOptions, createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
package/dist/handler.d.ts
CHANGED
|
@@ -24,6 +24,19 @@ declare const createPreviewGETRouteHandler: (options?: CreatePreviewGETRouteHand
|
|
|
24
24
|
|
|
25
25
|
declare const createPreviewOPTIONSRouteHandler: () => () => Promise<Response>;
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
type CreatePreviewPOSTRouteHandlerOptions = {
|
|
28
|
+
/**
|
|
29
|
+
* Called with the cache tags a webhook revalidated, after `revalidateTag`. Use it to expire the
|
|
30
|
+
* same tags in caches Next.js does not manage, for example `expireVercelRuntimeCacheTags` from
|
|
31
|
+
* `@uniformdev/next-app-router/vercel` when the edge middleware uses `vercelManifestProvider`.
|
|
32
|
+
* A rejection fails the webhook request, so the sender retries it.
|
|
33
|
+
*/
|
|
34
|
+
onRevalidateTags?: (tags: string[]) => void | Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Creates the POST handler for the preview route, which receives Uniform webhooks and revalidates
|
|
38
|
+
* the cache tags and paths the change affects.
|
|
39
|
+
*/
|
|
40
|
+
declare const createPreviewPOSTRouteHandler: (options?: CreatePreviewPOSTRouteHandlerOptions) => (request: NextRequest) => Promise<Response>;
|
|
28
41
|
|
|
29
|
-
export { createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|
|
42
|
+
export { type CreatePreviewPOSTRouteHandlerOptions, createPreviewGETRouteHandler, createPreviewOPTIONSRouteHandler, createPreviewPOSTRouteHandler };
|