@spoosh/plugin-invalidation 0.1.0-beta.0 → 0.1.1
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/README.md +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ await trigger({ body: { title: "New Post" } });
|
|
|
42
42
|
```typescript
|
|
43
43
|
import { invalidationPlugin } from "@spoosh/plugin-invalidation";
|
|
44
44
|
|
|
45
|
-
const plugins = [invalidationPlugin()];
|
|
45
|
+
const plugins = [invalidationPlugin()] as const;
|
|
46
46
|
|
|
47
47
|
// Auto-invalidates all related queries after mutation (default)
|
|
48
48
|
const { trigger } = useWrite((api) => api.posts.$post);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-invalidation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@spoosh/core": "0.
|
|
40
|
-
"@spoosh/test-utils": "0.1.
|
|
39
|
+
"@spoosh/core": "0.2.0",
|
|
40
|
+
"@spoosh/test-utils": "0.1.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "tsup --watch",
|