@spoosh/plugin-qs 0.2.0 → 0.2.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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Query string serialization plugin for Spoosh with nested object support.
4
4
 
5
- **[Documentation](https://spoosh.dev/docs/plugins/qs)** · **Requirements:** TypeScript >= 5.0 · **Peer Dependencies:** `@spoosh/core`
5
+ **[Documentation](https://spoosh.dev/docs/react/plugins/qs)** · **Requirements:** TypeScript >= 5.0 · **Peer Dependencies:** `@spoosh/core`
6
6
 
7
7
  ## Installation
8
8
 
@@ -25,7 +25,7 @@ const query = {
25
25
  filters: { status: "active", tags: ["a", "b"] },
26
26
  };
27
27
 
28
- useRead((api) => api.items.$get({ query }));
28
+ useRead((api) => api("items").GET({ query }));
29
29
  // Result: pagination[limit]=10&pagination[offset]=0&filters[status]=active&filters[tags][]=a,b
30
30
  ```
31
31
 
@@ -54,13 +54,13 @@ Override plugin defaults for specific requests:
54
54
 
55
55
  ```typescript
56
56
  // Use comma-separated arrays for this request
57
- useRead((api) => api.items.$get({ query }), { qs: { arrayFormat: "comma" } });
57
+ useRead((api) => api("items").GET({ query }), { qs: { arrayFormat: "comma" } });
58
58
 
59
59
  // Use dot notation for nested objects
60
- useRead((api) => api.search.$get({ query }), { qs: { allowDots: true } });
60
+ useRead((api) => api("search").GET({ query }), { qs: { allowDots: true } });
61
61
 
62
62
  // Include null values for this request
63
- useRead((api) => api.data.$get({ query }), { qs: { skipNulls: false } });
63
+ useRead((api) => api("data").GET({ query }), { qs: { skipNulls: false } });
64
64
  ```
65
65
 
66
66
  ## Array Formats
package/dist/index.d.mts CHANGED
@@ -23,7 +23,7 @@ type QsWriteResult = object;
23
23
  *
24
24
  * @param config - Plugin configuration
25
25
  *
26
- * @see {@link https://spoosh.dev/docs/plugins/qs | QS Plugin Documentation}
26
+ * @see {@link https://spoosh.dev/docs/react/plugins/qs | QS Plugin Documentation}
27
27
  *
28
28
  * @example
29
29
  * ```ts
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ type QsWriteResult = object;
23
23
  *
24
24
  * @param config - Plugin configuration
25
25
  *
26
- * @see {@link https://spoosh.dev/docs/plugins/qs | QS Plugin Documentation}
26
+ * @see {@link https://spoosh.dev/docs/react/plugins/qs | QS Plugin Documentation}
27
27
  *
28
28
  * @example
29
29
  * ```ts
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@spoosh/plugin-qs",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Query string serialization plugin for Spoosh with nested object support",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/nxnom/spoosh.git",
8
+ "url": "git+https://github.com/spooshdev/spoosh.git",
9
9
  "directory": "packages/plugin-qs"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/nxnom/spoosh/issues"
12
+ "url": "https://github.com/spooshdev/spoosh/issues"
13
13
  },
14
- "homepage": "https://spoosh.dev/docs/plugins/qs",
14
+ "homepage": "https://spoosh.dev/docs/react/plugins/qs",
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/qs": "^6.9.17",
44
- "@spoosh/core": "0.4.0",
45
- "@spoosh/test-utils": "0.1.4"
44
+ "@spoosh/core": "0.10.0",
45
+ "@spoosh/test-utils": "0.1.5"
46
46
  },
47
47
  "scripts": {
48
48
  "dev": "tsup --watch",