@cratis/arc 20.17.3 → 20.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/arc",
3
- "version": "20.17.3",
3
+ "version": "20.17.5",
4
4
  "description": "",
5
5
  "author": "Cratis",
6
6
  "license": "MIT",
@@ -26,6 +26,8 @@ export abstract class QueryFor<TDataType, TParameters = object> implements IQuer
26
26
  private _origin: string;
27
27
  private _httpHeadersCallback: GetHttpHeaders;
28
28
  abstract readonly route: string;
29
+ /** Backend fully-qualified query name used as cache key. Overridden in generated proxies. */
30
+ readonly queryName?: string;
29
31
  /* eslint-disable @typescript-eslint/no-explicit-any */
30
32
  readonly validation?: QueryValidator<any>;
31
33
  /* eslint-enable @typescript-eslint/no-explicit-any */
@@ -81,7 +81,9 @@ export class QueryInstanceCache {
81
81
 
82
82
  /**
83
83
  * Builds the cache key for a query.
84
- * @param queryTypeName The name of the query constructor (i.e. `constructor.name`).
84
+ * @param queryTypeName The stable type name for the query. Use the instance's {@link queryName}
85
+ * (a hardcoded fully-qualified string in generated proxies) rather than {@link Function.name},
86
+ * which is unstable under minification.
85
87
  * @param args Optional arguments supplied to the query.
86
88
  * @returns A stable string key.
87
89
  */