@void/isr 0.28.0 → 1.1.0
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/runtime.d.mts +2 -2
- package/dist/runtime.mjs +2 -2
- package/package.json +4 -4
package/dist/runtime.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
2
|
import { IsrCacheEntry, IsrCacheMetadata, QueryAllowlist, SHARED_CACHE_POLICY_HEADER, SHARED_CACHE_POLICY_VERSION, extractPageDataFromHtml, hasCurrentSharedCachePolicy, hasSharedCacheOptOut, isSharedCacheableResponse, isStale, isrCacheResponse, markSharedCachePolicy, normalizePageDataForJsonCache, packIsrValue, resolvePathTtl, resolveRevalidateTtl, serializeHeaders, shouldBypassIsr, unpackIsrValue } from "./core.mjs";
|
|
3
3
|
import { canonicalIsrPathname, denormalizeIsrPath, normalizeIsrPath } from "./index.mjs";
|
|
4
|
-
import { matchSegmentPattern } from "@void/edge";
|
|
4
|
+
import { matchSegmentPattern as matchLiteralPattern } from "@void/edge";
|
|
5
5
|
//#region src/runtime.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Single-tenant ISR cache for a direct Cloudflare Worker (Void apps and
|
|
@@ -93,4 +93,4 @@ export declare function handleFrameworkIsr(request: Request, env: IsrCacheEnv, c
|
|
|
93
93
|
*/
|
|
94
94
|
export declare function handleIsr(request: Request, env: IsrCacheEnv, ctx: ExecutionContext, options: HandleIsrOptions, render: RenderFn): Promise<Response | null>;
|
|
95
95
|
//#endregion
|
|
96
|
-
export { type IsrCacheEntry, type IsrCacheMetadata, SHARED_CACHE_POLICY_HEADER, SHARED_CACHE_POLICY_VERSION, canonicalIsrPathname, denormalizeIsrPath, extractPageDataFromHtml, hasCurrentSharedCachePolicy, hasSharedCacheOptOut, isSharedCacheableResponse, isStale, isrCacheResponse, markSharedCachePolicy,
|
|
96
|
+
export { type IsrCacheEntry, type IsrCacheMetadata, SHARED_CACHE_POLICY_HEADER, SHARED_CACHE_POLICY_VERSION, canonicalIsrPathname, denormalizeIsrPath, extractPageDataFromHtml, hasCurrentSharedCachePolicy, hasSharedCacheOptOut, isSharedCacheableResponse, isStale, isrCacheResponse, markSharedCachePolicy, matchLiteralPattern, normalizeIsrPath, normalizePageDataForJsonCache, packIsrValue, resolvePathTtl, resolveRevalidateTtl, serializeHeaders, shouldBypassIsr, unpackIsrValue };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalIsrPathname, denormalizeIsrPath, isrCacheKey, isrCachePrefix, isrCacheVariantPrefix, isrEdgeCacheUrl, normalizeIsrPath } from "./index.mjs";
|
|
2
2
|
import { SHARED_CACHE_POLICY_HEADER, SHARED_CACHE_POLICY_VERSION, buildVariantOriginalUrl, decodeIsrCacheEntry, extractPageDataFromHtml, hasCurrentSharedCachePolicy, hasSharedCacheOptOut, hasUnlistedQueryParams, isFrameworkDocumentRequest, isSharedCacheableResponse, isStale, isrCacheResponse, markSharedCachePolicy, normalizePageDataForJsonCache, packIsrValue, resolvePageTtl, resolvePathTtl, resolveRevalidateTtl, serializeHeaders, shouldBypassIsr, unpackIsrValue } from "./core.mjs";
|
|
3
|
-
import { matchSegmentPattern } from "@void/edge";
|
|
3
|
+
import { matchSegmentPattern as matchLiteralPattern } from "@void/edge";
|
|
4
4
|
//#region src/runtime.ts
|
|
5
5
|
const MAX_ISR_VARIANTS_PER_PATH = 200;
|
|
6
6
|
const ISR_STALE_EVICT_GRACE_MS = 864e5;
|
|
@@ -355,4 +355,4 @@ async function handleIsrInternal(request, env, ctx, options, render, htmlOnly) {
|
|
|
355
355
|
return response;
|
|
356
356
|
}
|
|
357
357
|
//#endregion
|
|
358
|
-
export { MAX_ISR_VARIANTS_PER_PATH, SHARED_CACHE_POLICY_HEADER, SHARED_CACHE_POLICY_VERSION, canonicalIsrPathname, clientRevalidateResponse, cloneWithoutVoidPages, deleteIsrCache, denormalizeIsrPath, extractPageDataFromHtml, handleFrameworkIsr, handleIsr, hasCurrentSharedCachePolicy, hasSharedCacheOptOut, hostRegistryKey, htmlEdgeKey, isEventStreamResponse, isSharedCacheableResponse, isStale, isrCacheResponse, isrKey, isrPrefix, isrVariantPrefix, jsonEdgeKey, listIsrHosts, markSharedCachePolicy,
|
|
358
|
+
export { MAX_ISR_VARIANTS_PER_PATH, SHARED_CACHE_POLICY_HEADER, SHARED_CACHE_POLICY_VERSION, canonicalIsrPathname, clientRevalidateResponse, cloneWithoutVoidPages, deleteIsrCache, denormalizeIsrPath, extractPageDataFromHtml, handleFrameworkIsr, handleIsr, hasCurrentSharedCachePolicy, hasSharedCacheOptOut, hostRegistryKey, htmlEdgeKey, isEventStreamResponse, isSharedCacheableResponse, isStale, isrCacheResponse, isrKey, isrPrefix, isrVariantPrefix, jsonEdgeKey, listIsrHosts, markSharedCachePolicy, matchLiteralPattern, normalizeIsrPath, normalizePageDataForJsonCache, packIsrValue, populateJsonEdgeCache, readIsrCache, resolvePathTtl, resolveRevalidateTtl, serializeHeaders, shouldBypassIsr, unpackIsrValue, writeIsrCache };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/isr",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Incremental revalidation and cache helpers for Void runtimes.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@cloudflare/workers-types": "^5.
|
|
38
|
-
"@void/edge": "
|
|
37
|
+
"@cloudflare/workers-types": "^5.20261014.1",
|
|
38
|
+
"@void/edge": "1.1.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "7.0.2",
|
|
42
|
-
"vite-plus": "1.
|
|
42
|
+
"vite-plus": "1.2.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "vp pack",
|