@ethlete/query 6.0.0-next.20 → 6.0.0-next.21
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/CHANGELOG.md +17 -0
- package/fesm2022/ethlete-query.mjs +12 -2
- package/fesm2022/ethlete-query.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-query.d.ts +11 -0
package/package.json
CHANGED
package/types/ethlete-query.d.ts
CHANGED
|
@@ -2551,6 +2551,15 @@ type QueryConfig = {
|
|
|
2551
2551
|
* If true, the query will not throw an error because a "withArgs()" feature is missing.
|
|
2552
2552
|
*/
|
|
2553
2553
|
silenceMissingWithArgsFeatureError?: boolean;
|
|
2554
|
+
/**
|
|
2555
|
+
* If true, executing with `allowCache` on a request that cannot be cached is ignored instead of throwing
|
|
2556
|
+
* `ET301`.
|
|
2557
|
+
*
|
|
2558
|
+
* For the legacy interop layer: v2 had a single `skipCache` for every method, so it forwards `allowCache`
|
|
2559
|
+
* without being able to tell a cacheable request from an uncacheable one. Application code should not set
|
|
2560
|
+
* this — on a hand-written `execute()` the error it silences is a real mistake.
|
|
2561
|
+
*/
|
|
2562
|
+
silenceUncacheableAllowCacheError?: boolean;
|
|
2554
2563
|
/**
|
|
2555
2564
|
* A custom injector to use for this query.
|
|
2556
2565
|
*/
|
|
@@ -2606,6 +2615,8 @@ type QueryRepositoryRequestOptions<TArgs extends QueryArgs> = {
|
|
|
2606
2615
|
consumerDestroyRef: DestroyRef;
|
|
2607
2616
|
/** Configuration on how to run the query */
|
|
2608
2617
|
runQueryOptions?: RunQueryExecuteOptions;
|
|
2618
|
+
/** @see QueryConfig.silenceUncacheableAllowCacheError */
|
|
2619
|
+
silenceUncacheableAllowCacheError?: boolean;
|
|
2609
2620
|
};
|
|
2610
2621
|
type QueryRepositoryItem<TArgs extends QueryArgs> = {
|
|
2611
2622
|
/** The key of the request (either a cache key for cacheable requests or a UUID for uncacheable requests) */
|