@spoosh/plugin-deduplication 0.1.3 → 0.1.5

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 CHANGED
@@ -24,7 +24,7 @@ const client = new Spoosh<ApiSchema, Error>("/api").use([
24
24
  deduplicationPlugin({ write: "in-flight" }),
25
25
  ]);
26
26
 
27
- useRead((api) => api.posts.$get(), { dedupe: false });
27
+ useRead((api) => api("posts").GET(), { dedupe: false });
28
28
  ```
29
29
 
30
30
  ## Options
package/dist/index.d.mts CHANGED
@@ -53,7 +53,7 @@ declare module "@spoosh/core" {
53
53
  * ]);
54
54
  *
55
55
  * // Per-query override
56
- * useRead((api) => api.posts.$get(), {
56
+ * useRead((api) => api("posts").GET(), {
57
57
  * dedupe: false,
58
58
  * });
59
59
  * ```
package/dist/index.d.ts CHANGED
@@ -53,7 +53,7 @@ declare module "@spoosh/core" {
53
53
  * ]);
54
54
  *
55
55
  * // Per-query override
56
- * useRead((api) => api.posts.$get(), {
56
+ * useRead((api) => api("posts").GET(), {
57
57
  * dedupe: false,
58
58
  * });
59
59
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-deduplication",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Request deduplication plugin for Spoosh - prevents duplicate in-flight requests",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -11,7 +11,7 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/nxnom/spoosh/issues"
13
13
  },
14
- "homepage": "https://spoosh.dev/docs/plugins/deduplication",
14
+ "homepage": "https://spoosh.dev/react/docs/plugins/deduplication",
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
@@ -36,8 +36,8 @@
36
36
  "@spoosh/core": ">=0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@spoosh/core": "0.4.0",
40
- "@spoosh/test-utils": "0.1.4"
39
+ "@spoosh/core": "0.6.0",
40
+ "@spoosh/test-utils": "0.1.5"
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "tsup --watch",