@chainfuse/helpers 3.6.1 → 4.0.0

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.
@@ -11,10 +11,6 @@ export declare class BufferHelpers {
11
11
  static bufferToHex(buffer: UuidExportBlobInput): Promise<string>;
12
12
  static base64ToBuffer(rawBase64: string): Promise<ArrayBuffer>;
13
13
  static bufferToBase64(buffer: UuidExportBlobInput, urlSafe: boolean): Promise<string>;
14
- /**
15
- * @deprecated Use `BufferHelpers.generateUuid7` instead
16
- */
17
- static get generateUuid(): Promise<UuidExport>;
18
14
  static v7OptionsBase: z.ZodMiniObject<{
19
15
  /**
20
16
  * RFC "timestamp" field
package/dist/buffers.mjs CHANGED
@@ -36,12 +36,6 @@ export class BufferHelpers {
36
36
  static bufferToBase64(buffer, urlSafe) {
37
37
  return BufferHelpersInternals.node_bufferToBase64(buffer, urlSafe).catch(() => BufferHelpersInternals.browser_bufferToBase64(buffer, urlSafe));
38
38
  }
39
- /**
40
- * @deprecated Use `BufferHelpers.generateUuid7` instead
41
- */
42
- static get generateUuid() {
43
- return this.generateUuid7();
44
- }
45
39
  static v7OptionsBase = z.object({
46
40
  /**
47
41
  * RFC "timestamp" field
@@ -99,8 +93,7 @@ export class BufferHelpers {
99
93
  //
100
94
  import('@chainfuse/types/zod').then(({ PrefixedUuidRaw }) => z
101
95
  .union([
102
- //
103
- PrefixedUuidRaw.transform((prefixedUtf8) => prefixedUtf8.split('_')[1]),
96
+ z.pipe(PrefixedUuidRaw, z.transform((prefixedUtf8) => prefixedUtf8.split('_')[1])),
104
97
  z.uuid().trim().nonempty().toLowerCase(),
105
98
  ])
106
99
  .transform((value) => value)
package/dist/db.d.mts CHANGED
@@ -34,8 +34,8 @@ export declare class SQLCache<C extends CacheStorageLike> extends DrizzleCache {
34
34
  cacheTTL: z.ZodMiniDefault<z.ZodMiniNumberFormat>;
35
35
  cachePurge: z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniDate<Date>]>>;
36
36
  strategy: z.ZodMiniDefault<z.ZodMiniEnum<{
37
- explicit: "explicit";
38
37
  all: "all";
38
+ explicit: "explicit";
39
39
  }>>;
40
40
  }, z.core.$strip>;
41
41
  /**
@@ -56,7 +56,7 @@ export declare class SQLCache<C extends CacheStorageLike> extends DrizzleCache {
56
56
  * - `all`: All queries are cached globally.
57
57
  * @default 'explicit'
58
58
  */
59
- strategy(): "explicit" | "all";
59
+ strategy(): "all" | "explicit";
60
60
  /**
61
61
  * Generates a cache key as a `Request` object based on the provided tag or key.
62
62
  *
package/dist/net.d.mts CHANGED
@@ -67,9 +67,9 @@ export declare class NetHelpers {
67
67
  * @link https://blog.cloudflare.com/introducing-polish-automatic-image-optimizati/
68
68
  */
69
69
  polish: z.ZodMiniOptional<z.ZodMiniEnum<{
70
+ off: "off";
70
71
  lossy: "lossy";
71
72
  lossless: "lossless";
72
- off: "off";
73
73
  }>>;
74
74
  /**
75
75
  * Whether ScrapeShield should be enabled for this request, if otherwise configured for this zone.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/helpers",
3
- "version": "3.6.1",
3
+ "version": "4.0.0",
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": "^2.12.1",
83
+ "@chainfuse/types": "^3.0.0",
84
84
  "@discordjs/rest": "^2.6.0",
85
85
  "chalk": "^5.6.2",
86
86
  "cloudflare": "^5.0.0",
@@ -93,5 +93,5 @@
93
93
  "@cloudflare/workers-types": "^4.20250909.0",
94
94
  "@types/node": "^22.18.1"
95
95
  },
96
- "gitHead": "4259cf9c169a4aced88159526927fe52bde6d658"
96
+ "gitHead": "a53477407bf7365156b75df30b94c9ad5d58bb53"
97
97
  }