@spoosh/plugin-invalidation 0.5.0 → 0.5.2
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 +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -112,14 +112,14 @@ await trigger({
|
|
|
112
112
|
|
|
113
113
|
### Plugin Config
|
|
114
114
|
|
|
115
|
-
| Option | Type | Default | Description
|
|
116
|
-
| ------------- | --------------------------- | ------- |
|
|
115
|
+
| Option | Type | Default | Description |
|
|
116
|
+
| ------------- | --------------------------- | ------- | --------------------------------------------------- |
|
|
117
117
|
| `defaultMode` | `"all" \| "self" \| "none"` | `"all"` | Default invalidation mode when option not specified |
|
|
118
118
|
|
|
119
119
|
### Per-Request Options
|
|
120
120
|
|
|
121
|
-
| Option | Type | Description
|
|
122
|
-
| ------------ | --------------------------------------- |
|
|
121
|
+
| Option | Type | Description |
|
|
122
|
+
| ------------ | --------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
123
123
|
| `invalidate` | `"all" \| "self" \| "none" \| string[]` | Mode only (string), tags only (array), or mode + tags (array with 'all'/'self' keyword at any position) |
|
|
124
124
|
|
|
125
125
|
### Invalidation Modes
|
|
@@ -151,6 +151,6 @@ socket.on("data-changed", (tags) => {
|
|
|
151
151
|
});
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
| Method | Description
|
|
155
|
-
| ------------ |
|
|
156
|
-
| `invalidate` | Manually invalidate cache entries by tags
|
|
154
|
+
| Method | Description |
|
|
155
|
+
| ------------ | ----------------------------------------- |
|
|
156
|
+
| `invalidate` | Manually invalidate cache entries by tags |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spoosh/plugin-invalidation",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Cache invalidation plugin for Spoosh - auto-invalidates after mutations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@spoosh/core": ">=0.8.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@spoosh/core": "0.
|
|
39
|
+
"@spoosh/core": "0.9.2",
|
|
40
40
|
"@spoosh/test-utils": "0.1.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|