@clipboard-health/json-api 2.1.87 → 2.1.89

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
@@ -28,7 +28,7 @@ import { deepEqual } from "node:assert/strict";
28
28
 
29
29
  import { stringifyQuery } from "@clipboard-health/json-api";
30
30
 
31
- import { type ClientJsonApiQuery } from "../src/lib/types";
31
+ import type { ClientJsonApiQuery } from "../src/lib/types";
32
32
 
33
33
  const [date1, date2] = ["2024-01-01", "2024-01-02"];
34
34
  const query: ClientJsonApiQuery = {
@@ -67,7 +67,7 @@ import { deepEqual } from "node:assert/strict";
67
67
 
68
68
  import { parseQuery } from "@clipboard-health/json-api";
69
69
 
70
- import { type ServerJsonApiQuery } from "../src/lib/types";
70
+ import type { ServerJsonApiQuery } from "../src/lib/types";
71
71
 
72
72
  const [date1, date2] = ["2024-01-01", "2024-01-02"];
73
73
  // The URLSearchParams constructor also supports URL-encoded strings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/json-api",
3
- "version": "2.1.87",
3
+ "version": "2.1.89",
4
4
  "description": "TypeScript-friendly utilities for adhering to the JSON:API specification.",
5
5
  "keywords": [
6
6
  "api",
@@ -27,7 +27,7 @@
27
27
  "tslib": "2.8.1"
28
28
  },
29
29
  "devDependencies": {
30
- "qs": "6.15.0"
30
+ "qs": "6.15.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "qs": "^6.14"
@@ -1,4 +1,4 @@
1
- import { type ServerJsonApiQuery } from "../types";
1
+ import type { ServerJsonApiQuery } from "../types";
2
2
  /**
3
3
  * Call this function from servers to convert from {@link URLSearchParams} to {@link ServerJsonApiQuery}.
4
4
  *
@@ -10,7 +10,7 @@ import { type ServerJsonApiQuery } from "../types";
10
10
  *
11
11
  * import { parseQuery } from "@clipboard-health/json-api";
12
12
  *
13
- * import { type ServerJsonApiQuery } from "../src/lib/types";
13
+ * import type { ServerJsonApiQuery } from "../src/lib/types";
14
14
  *
15
15
  * const [date1, date2] = ["2024-01-01", "2024-01-02"];
16
16
  * // The URLSearchParams constructor also supports URL-encoded strings
@@ -13,7 +13,7 @@ const qs_1 = require("qs");
13
13
  *
14
14
  * import { parseQuery } from "@clipboard-health/json-api";
15
15
  *
16
- * import { type ServerJsonApiQuery } from "../src/lib/types";
16
+ * import type { ServerJsonApiQuery } from "../src/lib/types";
17
17
  *
18
18
  * const [date1, date2] = ["2024-01-01", "2024-01-02"];
19
19
  * // The URLSearchParams constructor also supports URL-encoded strings
@@ -1,4 +1,4 @@
1
- import { type ClientJsonApiQuery } from "../types";
1
+ import type { ClientJsonApiQuery } from "../types";
2
2
  /**
3
3
  * Converts from an ergonomic query format to URLSearchParams, providing a more user-friendly API
4
4
  * than {@link toClientSearchParams} while maintaining JSON:API compliance.
@@ -11,7 +11,7 @@ import { type ClientJsonApiQuery } from "../types";
11
11
  *
12
12
  * import { stringifyQuery } from "@clipboard-health/json-api";
13
13
  *
14
- * import { type ClientJsonApiQuery } from "../src/lib/types";
14
+ * import type { ClientJsonApiQuery } from "../src/lib/types";
15
15
  *
16
16
  * const [date1, date2] = ["2024-01-01", "2024-01-02"];
17
17
  * const query: ClientJsonApiQuery = {
@@ -14,7 +14,7 @@ const qs_1 = require("qs");
14
14
  *
15
15
  * import { stringifyQuery } from "@clipboard-health/json-api";
16
16
  *
17
- * import { type ClientJsonApiQuery } from "../src/lib/types";
17
+ * import type { ClientJsonApiQuery } from "../src/lib/types";
18
18
  *
19
19
  * const [date1, date2] = ["2024-01-01", "2024-01-02"];
20
20
  * const query: ClientJsonApiQuery = {