@spoosh/plugin-invalidation 0.4.0 → 0.5.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.js CHANGED
@@ -74,7 +74,7 @@ function invalidationPlugin(config = {}) {
74
74
  }
75
75
  };
76
76
  },
77
- onResponse(context, response) {
77
+ afterResponse(context, response) {
78
78
  if (!response.error) {
79
79
  const tags = resolveInvalidateTags(context, defaultMode);
80
80
  if (tags.length > 0) {
package/dist/index.mjs CHANGED
@@ -48,7 +48,7 @@ function invalidationPlugin(config = {}) {
48
48
  }
49
49
  };
50
50
  },
51
- onResponse(context, response) {
51
+ afterResponse(context, response) {
52
52
  if (!response.error) {
53
53
  const tags = resolveInvalidateTags(context, defaultMode);
54
54
  if (tags.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-invalidation",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Cache invalidation plugin for Spoosh - auto-invalidates after mutations",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,10 +33,10 @@
33
33
  }
34
34
  },
35
35
  "peerDependencies": {
36
- "@spoosh/core": ">=0.6.0"
36
+ "@spoosh/core": ">=0.8.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@spoosh/core": "0.6.0",
39
+ "@spoosh/core": "0.8.0",
40
40
  "@spoosh/test-utils": "0.1.5"
41
41
  },
42
42
  "scripts": {