@chainfuse/helpers 4.1.8 → 4.1.9

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 (2) hide show
  1. package/dist/db.d.mts +1 -8
  2. package/package.json +3 -3
package/dist/db.d.mts CHANGED
@@ -1,14 +1,7 @@
1
+ import type { CacheStorageLike } from '@chainfuse/types';
1
2
  import { Cache as DrizzleCache, type MutationOption } from 'drizzle-orm/cache/core';
2
3
  import type { CacheConfig } from 'drizzle-orm/cache/core/types';
3
4
  import * as z from 'zod/mini';
4
- /**
5
- * Interface for CacheStorage-like objects that can be used as drop-in replacements.
6
- * This interface ensures compatibility with the Web API CacheStorage while allowing for custom implementations that provide the same core functionality.
7
- */
8
- export interface CacheStorageLike {
9
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
10
- open(cacheName: string): Promise<Cache>;
11
- }
12
5
  /**
13
6
  * SQLCache is a cache implementation for SQL query results, using Web CacheStorage (supports drop in replacements).
14
7
  * It supports caching strategies for explicit or global query caching, and provides mechanisms for cache invalidation based on affected tables or tags.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/helpers",
3
- "version": "4.1.8",
3
+ "version": "4.1.9",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "prettier": "@demosjarco/prettier-config",
82
82
  "dependencies": {
83
- "@chainfuse/types": "^4.0.9",
83
+ "@chainfuse/types": "^4.1.0",
84
84
  "@discordjs/rest": "^2.6.0",
85
85
  "chalk": "^5.6.2",
86
86
  "cloudflare": "^5.2.0",
@@ -93,5 +93,5 @@
93
93
  "@cloudflare/workers-types": "^4.20251014.0",
94
94
  "@types/node": "^24.6.0"
95
95
  },
96
- "gitHead": "0152f9e28f722d1a925594bef166656a4281000a"
96
+ "gitHead": "cf51f873b67f7ff30998d91a41283a1a52f65a0c"
97
97
  }