@ethlete/query 5.31.0 → 5.31.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.
@@ -24,6 +24,10 @@ export type InternalRunQueryExecuteOptions = {
24
24
  * - `undefined` means the request will be cached if the method is GET, OPTIONS or HEAD
25
25
  */
26
26
  useQueryRepositoryCache?: boolean;
27
+ /**
28
+ * If true, the query will be forced to use JSON.stringify on the query params.
29
+ */
30
+ forceJsonStringifyInQueryParams?: boolean;
27
31
  };
28
32
  export type QueryExecuteOptions<TArgs extends QueryArgs> = {
29
33
  executeOptions: CreateQueryExecuteOptions<TArgs>;
@@ -123,4 +123,11 @@ export interface BuildQueryStringConfig {
123
123
  * @default [isNaN, isEmptyString]
124
124
  */
125
125
  ignoredValuesFns?: Array<(value: unknown) => boolean>;
126
+ /**
127
+ * Whether to use `JSON.stringify` for nested objects.
128
+ * Should be used for GraphQL queries.
129
+ *
130
+ * @default false
131
+ */
132
+ useJsonStringify?: boolean;
126
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/query",
3
- "version": "5.31.0",
3
+ "version": "5.31.2",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.1.7",