@spoosh/plugin-optimistic 0.8.2 → 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.js CHANGED
@@ -255,7 +255,7 @@ function optimisticPlugin() {
255
255
  t?.skip("No optimistic targets");
256
256
  return next();
257
257
  }
258
- context.plugins.get("spoosh:invalidation")?.setDefaultMode("none");
258
+ context.plugins.get("spoosh:invalidation")?.disableAutoInvalidate();
259
259
  const allImmediateSnapshots = [];
260
260
  for (const target of targets) {
261
261
  const targetWithState = target;
package/dist/index.mjs CHANGED
@@ -231,7 +231,7 @@ function optimisticPlugin() {
231
231
  t?.skip("No optimistic targets");
232
232
  return next();
233
233
  }
234
- context.plugins.get("spoosh:invalidation")?.setDefaultMode("none");
234
+ context.plugins.get("spoosh:invalidation")?.disableAutoInvalidate();
235
235
  const allImmediateSnapshots = [];
236
236
  for (const target of targets) {
237
237
  const targetWithState = target;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-optimistic",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Optimistic updates plugin for Spoosh - instant UI updates with automatic rollback",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,13 +33,13 @@
33
33
  }
34
34
  },
35
35
  "peerDependencies": {
36
- "@spoosh/core": ">=0.17.0",
37
- "@spoosh/plugin-invalidation": ">=0.7.0"
36
+ "@spoosh/core": ">=0.18.0",
37
+ "@spoosh/plugin-invalidation": ">=0.11.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@spoosh/core": "0.17.1",
41
- "@spoosh/test-utils": "0.3.0",
42
- "@spoosh/plugin-invalidation": "0.10.0"
40
+ "@spoosh/core": "0.18.0",
41
+ "@spoosh/plugin-invalidation": "0.11.0",
42
+ "@spoosh/test-utils": "0.3.0"
43
43
  },
44
44
  "scripts": {
45
45
  "dev": "tsup --watch",