tanstack-cacher 1.4.0 → 1.4.1

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +3 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -43,6 +43,7 @@ declare class QueryCacheManager<TData, TItem> {
43
43
  refetch(key?: string | string[]): void;
44
44
  hasQuery(key?: string): boolean;
45
45
  removeQuery(key?: string): void;
46
+ getConfig(): typeof this.config;
46
47
  createHandlers(): CacheHandlers<TItem>;
47
48
  }
48
49
 
package/index.js CHANGED
@@ -352,6 +352,9 @@ var QueryCacheManager = class {
352
352
  const queryKey = key ?? this.config.queryKey;
353
353
  this.config.queryClient.removeQueries({ queryKey: [queryKey] });
354
354
  }
355
+ getConfig() {
356
+ return this.config;
357
+ }
355
358
  /**
356
359
  * Get handlers for use with mutations
357
360
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tanstack-cacher",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A lightweight cache management utility for TanStack Query that simplifies adding, updating, deleting, and synchronizing cached data",
5
5
  "license": "MIT",
6
6
  "repository": {