@spoosh/plugin-invalidation 0.7.1 → 0.9.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/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -29,9 +29,14 @@ interface InvalidationWriteTriggerOptions<TSchema = unknown> {
|
|
|
29
29
|
invalidate?: InvalidateOption<TSchema>;
|
|
30
30
|
}
|
|
31
31
|
type InvalidationReadOptions = object;
|
|
32
|
-
type
|
|
32
|
+
type InvalidationPagesOptions = object;
|
|
33
33
|
type InvalidationReadResult = object;
|
|
34
34
|
type InvalidationWriteResult = object;
|
|
35
|
+
interface InvalidationQueueTriggerOptions<TSchema = unknown> {
|
|
36
|
+
/** Unified invalidation configuration */
|
|
37
|
+
invalidate?: InvalidateOption<TSchema>;
|
|
38
|
+
}
|
|
39
|
+
type InvalidationQueueResult = object;
|
|
35
40
|
/**
|
|
36
41
|
* Manual invalidation - tags only, or "*" for global refetch
|
|
37
42
|
*/
|
|
@@ -105,10 +110,12 @@ declare function invalidationPlugin(config?: InvalidationPluginConfig): SpooshPl
|
|
|
105
110
|
readOptions: InvalidationReadOptions;
|
|
106
111
|
writeOptions: InvalidationWriteOptions;
|
|
107
112
|
writeTriggerOptions: InvalidationWriteTriggerOptions;
|
|
108
|
-
|
|
113
|
+
queueTriggerOptions: InvalidationQueueTriggerOptions;
|
|
114
|
+
pagesOptions: InvalidationPagesOptions;
|
|
109
115
|
readResult: InvalidationReadResult;
|
|
110
116
|
writeResult: InvalidationWriteResult;
|
|
117
|
+
queueResult: InvalidationQueueResult;
|
|
111
118
|
instanceApi: InvalidationInstanceApi;
|
|
112
119
|
}>;
|
|
113
120
|
|
|
114
|
-
export { type InvalidateOption, type
|
|
121
|
+
export { type InvalidateOption, type InvalidationMode, type InvalidationPagesOptions, type InvalidationPluginConfig, type InvalidationPluginExports, type InvalidationQueueResult, type InvalidationQueueTriggerOptions, type InvalidationReadOptions, type InvalidationReadResult, type InvalidationWriteOptions, type InvalidationWriteResult, type InvalidationWriteTriggerOptions, invalidationPlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,9 +29,14 @@ interface InvalidationWriteTriggerOptions<TSchema = unknown> {
|
|
|
29
29
|
invalidate?: InvalidateOption<TSchema>;
|
|
30
30
|
}
|
|
31
31
|
type InvalidationReadOptions = object;
|
|
32
|
-
type
|
|
32
|
+
type InvalidationPagesOptions = object;
|
|
33
33
|
type InvalidationReadResult = object;
|
|
34
34
|
type InvalidationWriteResult = object;
|
|
35
|
+
interface InvalidationQueueTriggerOptions<TSchema = unknown> {
|
|
36
|
+
/** Unified invalidation configuration */
|
|
37
|
+
invalidate?: InvalidateOption<TSchema>;
|
|
38
|
+
}
|
|
39
|
+
type InvalidationQueueResult = object;
|
|
35
40
|
/**
|
|
36
41
|
* Manual invalidation - tags only, or "*" for global refetch
|
|
37
42
|
*/
|
|
@@ -105,10 +110,12 @@ declare function invalidationPlugin(config?: InvalidationPluginConfig): SpooshPl
|
|
|
105
110
|
readOptions: InvalidationReadOptions;
|
|
106
111
|
writeOptions: InvalidationWriteOptions;
|
|
107
112
|
writeTriggerOptions: InvalidationWriteTriggerOptions;
|
|
108
|
-
|
|
113
|
+
queueTriggerOptions: InvalidationQueueTriggerOptions;
|
|
114
|
+
pagesOptions: InvalidationPagesOptions;
|
|
109
115
|
readResult: InvalidationReadResult;
|
|
110
116
|
writeResult: InvalidationWriteResult;
|
|
117
|
+
queueResult: InvalidationQueueResult;
|
|
111
118
|
instanceApi: InvalidationInstanceApi;
|
|
112
119
|
}>;
|
|
113
120
|
|
|
114
|
-
export { type InvalidateOption, type
|
|
121
|
+
export { type InvalidateOption, type InvalidationMode, type InvalidationPagesOptions, type InvalidationPluginConfig, type InvalidationPluginExports, type InvalidationQueueResult, type InvalidationQueueTriggerOptions, type InvalidationReadOptions, type InvalidationReadResult, type InvalidationWriteOptions, type InvalidationWriteResult, type InvalidationWriteTriggerOptions, invalidationPlugin };
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-invalidation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Cache invalidation plugin for Spoosh - auto-invalidates after mutations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@spoosh/core": ">=0.
|
|
36
|
+
"@spoosh/core": ">=0.15.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@spoosh/core": "0.
|
|
40
|
-
"@spoosh/test-utils": "0.
|
|
39
|
+
"@spoosh/core": "0.15.0",
|
|
40
|
+
"@spoosh/test-utils": "0.3.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "tsup --watch",
|