@void/isr 1.1.0 → 1.1.11
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/index.d.mts +16 -4
- package/dist/index.mjs +16 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -23,8 +23,10 @@ export declare function canonicalIsrPathname(pathname: string): string;
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function isrCachePrefix(projectId: string, deploymentId?: string): string;
|
|
25
25
|
/**
|
|
26
|
-
* Like `isrCachePrefix`, for hostless `v2` keys.
|
|
27
|
-
*
|
|
26
|
+
* Like `isrCachePrefix`, for hostless `v2` keys.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated Void no longer writes hostless `v2` keys and does not use this
|
|
29
|
+
* helper. Removed in the next major version.
|
|
28
30
|
*/
|
|
29
31
|
export declare function isrLegacyCachePrefix(projectId: string, deploymentId?: string): string;
|
|
30
32
|
/**
|
|
@@ -39,9 +41,19 @@ export declare function isrLegacyCachePrefix(projectId: string, deploymentId?: s
|
|
|
39
41
|
export declare function isrCacheKey(projectId: string, deploymentId: string, host: string, pathname: string, originalUrl?: string | null): string;
|
|
40
42
|
/** Prefix for listing/purging the `#rw=` variant keys of a pathname (not its direct-hit key). */
|
|
41
43
|
export declare function isrCacheVariantPrefix(projectId: string, deploymentId: string, host: string, pathname: string): string;
|
|
42
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Hostless `v2` direct-hit key for a pathname.
|
|
46
|
+
*
|
|
47
|
+
* @deprecated Void no longer writes hostless `v2` keys and does not use this
|
|
48
|
+
* helper. Removed in the next major version.
|
|
49
|
+
*/
|
|
43
50
|
export declare function isrLegacyCacheKey(projectId: string, deploymentId: string, pathname: string): string;
|
|
44
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* Hostless `v2` rewrite-variant prefix for a pathname.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated Void no longer writes hostless `v2` keys and does not use this
|
|
55
|
+
* helper. Removed in the next major version.
|
|
56
|
+
*/
|
|
45
57
|
export declare function isrLegacyCacheVariantPrefix(projectId: string, deploymentId: string, pathname: string): string;
|
|
46
58
|
/**
|
|
47
59
|
* Hash an original URL into a 16-hex-char variant token (FNV-1a 64-bit), used
|
package/dist/index.mjs
CHANGED
|
@@ -54,8 +54,10 @@ function isrCachePrefix(projectId, deploymentId) {
|
|
|
54
54
|
return versionedIsrCachePrefix(projectId, ISR_CACHE_KEY_VERSION, deploymentId);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Like `isrCachePrefix`, for hostless `v2` keys.
|
|
58
|
-
*
|
|
57
|
+
* Like `isrCachePrefix`, for hostless `v2` keys.
|
|
58
|
+
*
|
|
59
|
+
* @deprecated Void no longer writes hostless `v2` keys and does not use this
|
|
60
|
+
* helper. Removed in the next major version.
|
|
59
61
|
*/
|
|
60
62
|
function isrLegacyCachePrefix(projectId, deploymentId) {
|
|
61
63
|
return versionedIsrCachePrefix(projectId, ISR_LEGACY_CACHE_KEY_VERSION, deploymentId);
|
|
@@ -80,11 +82,21 @@ function isrCacheKey(projectId, deploymentId, host, pathname, originalUrl) {
|
|
|
80
82
|
function isrCacheVariantPrefix(projectId, deploymentId, host, pathname) {
|
|
81
83
|
return `${isrCachePrefix(projectId, deploymentId)}${host}/${normalizeIsrPath(pathname)}${ISR_VARIANT_SEPARATOR}`;
|
|
82
84
|
}
|
|
83
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Hostless `v2` direct-hit key for a pathname.
|
|
87
|
+
*
|
|
88
|
+
* @deprecated Void no longer writes hostless `v2` keys and does not use this
|
|
89
|
+
* helper. Removed in the next major version.
|
|
90
|
+
*/
|
|
84
91
|
function isrLegacyCacheKey(projectId, deploymentId, pathname) {
|
|
85
92
|
return `${isrLegacyCachePrefix(projectId, deploymentId)}${normalizeIsrPath(pathname)}`;
|
|
86
93
|
}
|
|
87
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Hostless `v2` rewrite-variant prefix for a pathname.
|
|
96
|
+
*
|
|
97
|
+
* @deprecated Void no longer writes hostless `v2` keys and does not use this
|
|
98
|
+
* helper. Removed in the next major version.
|
|
99
|
+
*/
|
|
88
100
|
function isrLegacyCacheVariantPrefix(projectId, deploymentId, pathname) {
|
|
89
101
|
return `${isrLegacyCachePrefix(projectId, deploymentId)}${normalizeIsrPath(pathname)}${ISR_VARIANT_SEPARATOR}`;
|
|
90
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/isr",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Incremental revalidation and cache helpers for Void runtimes.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@cloudflare/workers-types": "^5.20261014.1",
|
|
38
|
-
"@void/edge": "1.1.
|
|
38
|
+
"@void/edge": "1.1.11"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "7.0.2",
|