@upstash/redis 0.0.0-ci.f6da5d747c9564bc95fccdbfe16a9aa10cd30367-20251125191507 → 0.0.0-ci.f725f60c40a2b7f0e25dd9bf83a931c24624cdf6-20260123181037

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.
@@ -77,8 +77,18 @@ function mergeHeaders(...headers) {
77
77
  }
78
78
  return merged;
79
79
  }
80
+ function kvArrayToObject(v) {
81
+ if (typeof v === "object" && v !== null && !Array.isArray(v)) return v;
82
+ if (!Array.isArray(v)) return {};
83
+ const obj = {};
84
+ for (let i = 0; i < v.length; i += 2) {
85
+ if (typeof v[i] === "string") obj[v[i]] = v[i + 1];
86
+ }
87
+ return obj;
88
+ }
80
89
 
81
90
  // pkg/http.ts
91
+ var MAX_BUFFER_SIZE = 1024 * 1024;
82
92
  var HttpClient = class {
83
93
  baseUrl;
84
94
  headers;
@@ -202,11 +212,16 @@ var HttpClient = class {
202
212
  const decoder = new TextDecoder();
203
213
  (async () => {
204
214
  try {
215
+ let buffer = "";
205
216
  while (true) {
206
217
  const { value, done } = await reader.read();
207
218
  if (done) break;
208
- const chunk = decoder.decode(value);
209
- const lines = chunk.split("\n");
219
+ buffer += decoder.decode(value, { stream: true });
220
+ const lines = buffer.split("\n");
221
+ buffer = lines.pop() || "";
222
+ if (buffer.length > MAX_BUFFER_SIZE) {
223
+ throw new Error("Buffer size exceeded (1MB)");
224
+ }
210
225
  for (const line of lines) {
211
226
  if (line.startsWith("data: ")) {
212
227
  const data = line.slice(6);
@@ -585,6 +600,23 @@ var ExpireAtCommand = class extends Command {
585
600
  }
586
601
  };
587
602
 
603
+ // pkg/commands/fcall.ts
604
+ var FCallCommand = class extends Command {
605
+ constructor([functionName, keys, args], opts) {
606
+ super(["fcall", functionName, ...keys ? [keys.length, ...keys] : [0], ...args ?? []], opts);
607
+ }
608
+ };
609
+
610
+ // pkg/commands/fcall_ro.ts
611
+ var FCallRoCommand = class extends Command {
612
+ constructor([functionName, keys, args], opts) {
613
+ super(
614
+ ["fcall_ro", functionName, ...keys ? [keys.length, ...keys] : [0], ...args ?? []],
615
+ opts
616
+ );
617
+ }
618
+ };
619
+
588
620
  // pkg/commands/flushall.ts
589
621
  var FlushAllCommand = class extends Command {
590
622
  constructor(args, opts) {
@@ -607,6 +639,85 @@ var FlushDBCommand = class extends Command {
607
639
  }
608
640
  };
609
641
 
642
+ // pkg/commands/function_delete.ts
643
+ var FunctionDeleteCommand = class extends Command {
644
+ constructor([libraryName], opts) {
645
+ super(["function", "delete", libraryName], opts);
646
+ }
647
+ };
648
+
649
+ // pkg/commands/function_flush.ts
650
+ var FunctionFlushCommand = class extends Command {
651
+ constructor(opts) {
652
+ super(["function", "flush"], opts);
653
+ }
654
+ };
655
+
656
+ // pkg/commands/function_list.ts
657
+ var FunctionListCommand = class extends Command {
658
+ constructor([args], opts) {
659
+ const command = ["function", "list"];
660
+ if (args?.libraryName) {
661
+ command.push("libraryname", args.libraryName);
662
+ }
663
+ if (args?.withCode) {
664
+ command.push("withcode");
665
+ }
666
+ super(command, { deserialize: deserialize2, ...opts });
667
+ }
668
+ };
669
+ function deserialize2(result) {
670
+ if (!Array.isArray(result)) return [];
671
+ return result.map((libRaw) => {
672
+ const lib = kvArrayToObject(libRaw);
673
+ const functionsParsed = lib.functions.map(
674
+ (fnRaw) => kvArrayToObject(fnRaw)
675
+ );
676
+ return {
677
+ libraryName: lib.library_name,
678
+ engine: lib.engine,
679
+ functions: functionsParsed.map((fn) => ({
680
+ name: fn.name,
681
+ description: fn.description ?? void 0,
682
+ flags: fn.flags
683
+ })),
684
+ libraryCode: lib.library_code
685
+ };
686
+ });
687
+ }
688
+
689
+ // pkg/commands/function_load.ts
690
+ var FunctionLoadCommand = class extends Command {
691
+ constructor([args], opts) {
692
+ super(["function", "load", ...args.replace ? ["replace"] : [], args.code], opts);
693
+ }
694
+ };
695
+
696
+ // pkg/commands/function_stats.ts
697
+ var FunctionStatsCommand = class extends Command {
698
+ constructor(opts) {
699
+ super(["function", "stats"], { deserialize: deserialize3, ...opts });
700
+ }
701
+ };
702
+ function deserialize3(result) {
703
+ const rawEngines = kvArrayToObject(kvArrayToObject(result).engines);
704
+ const parsedEngines = Object.fromEntries(
705
+ Object.entries(rawEngines).map(([key, value]) => [key, kvArrayToObject(value)])
706
+ );
707
+ const final = {
708
+ engines: Object.fromEntries(
709
+ Object.entries(parsedEngines).map(([key, value]) => [
710
+ key,
711
+ {
712
+ librariesCount: value.libraries_count,
713
+ functionsCount: value.functions_count
714
+ }
715
+ ])
716
+ )
717
+ };
718
+ return final;
719
+ }
720
+
610
721
  // pkg/commands/geo_add.ts
611
722
  var GeoAddCommand = class extends Command {
612
723
  constructor([key, arg1, ...arg2], opts) {
@@ -953,7 +1064,7 @@ var HGetCommand = class extends Command {
953
1064
  };
954
1065
 
955
1066
  // pkg/commands/hgetall.ts
956
- function deserialize2(result) {
1067
+ function deserialize4(result) {
957
1068
  if (result.length === 0) {
958
1069
  return null;
959
1070
  }
@@ -973,7 +1084,7 @@ function deserialize2(result) {
973
1084
  var HGetAllCommand = class extends Command {
974
1085
  constructor(cmd, opts) {
975
1086
  super(["hgetall", ...cmd], {
976
- deserialize: (result) => deserialize2(result),
1087
+ deserialize: (result) => deserialize4(result),
977
1088
  ...opts
978
1089
  });
979
1090
  }
@@ -1008,7 +1119,7 @@ var HLenCommand = class extends Command {
1008
1119
  };
1009
1120
 
1010
1121
  // pkg/commands/hmget.ts
1011
- function deserialize3(fields, result) {
1122
+ function deserialize5(fields, result) {
1012
1123
  if (result.every((field) => field === null)) {
1013
1124
  return null;
1014
1125
  }
@@ -1025,7 +1136,7 @@ function deserialize3(fields, result) {
1025
1136
  var HMGetCommand = class extends Command {
1026
1137
  constructor([key, ...fields], opts) {
1027
1138
  super(["hmget", key, ...fields], {
1028
- deserialize: (result) => deserialize3(fields, result),
1139
+ deserialize: (result) => deserialize5(fields, result),
1029
1140
  ...opts
1030
1141
  });
1031
1142
  }
@@ -2002,7 +2113,7 @@ var XPendingCommand = class extends Command {
2002
2113
  };
2003
2114
 
2004
2115
  // pkg/commands/xrange.ts
2005
- function deserialize4(result) {
2116
+ function deserialize6(result) {
2006
2117
  const obj = {};
2007
2118
  for (const e of result) {
2008
2119
  for (let i = 0; i < e.length; i += 2) {
@@ -2031,7 +2142,7 @@ var XRangeCommand = class extends Command {
2031
2142
  command.push("COUNT", count);
2032
2143
  }
2033
2144
  super(command, {
2034
- deserialize: (result) => deserialize4(result),
2145
+ deserialize: (result) => deserialize6(result),
2035
2146
  ...opts
2036
2147
  });
2037
2148
  }
@@ -2094,12 +2205,12 @@ var XRevRangeCommand = class extends Command {
2094
2205
  command.push("COUNT", count);
2095
2206
  }
2096
2207
  super(command, {
2097
- deserialize: (result) => deserialize5(result),
2208
+ deserialize: (result) => deserialize7(result),
2098
2209
  ...opts
2099
2210
  });
2100
2211
  }
2101
2212
  };
2102
- function deserialize5(result) {
2213
+ function deserialize7(result) {
2103
2214
  const obj = {};
2104
2215
  for (const e of result) {
2105
2216
  for (let i = 0; i < e.length; i += 2) {
@@ -3208,6 +3319,38 @@ var Pipeline = class {
3208
3319
  type: (...args) => this.chain(new JsonTypeCommand(args, this.commandOptions))
3209
3320
  };
3210
3321
  }
3322
+ get functions() {
3323
+ return {
3324
+ /**
3325
+ * @see https://redis.io/docs/latest/commands/function-load/
3326
+ */
3327
+ load: (...args) => this.chain(new FunctionLoadCommand(args, this.commandOptions)),
3328
+ /**
3329
+ * @see https://redis.io/docs/latest/commands/function-list/
3330
+ */
3331
+ list: (...args) => this.chain(new FunctionListCommand(args, this.commandOptions)),
3332
+ /**
3333
+ * @see https://redis.io/docs/latest/commands/function-delete/
3334
+ */
3335
+ delete: (...args) => this.chain(new FunctionDeleteCommand(args, this.commandOptions)),
3336
+ /**
3337
+ * @see https://redis.io/docs/latest/commands/function-flush/
3338
+ */
3339
+ flush: () => this.chain(new FunctionFlushCommand(this.commandOptions)),
3340
+ /**
3341
+ * @see https://redis.io/docs/latest/commands/function-stats/
3342
+ */
3343
+ stats: () => this.chain(new FunctionStatsCommand(this.commandOptions)),
3344
+ /**
3345
+ * @see https://redis.io/docs/latest/commands/fcall/
3346
+ */
3347
+ call: (...args) => this.chain(new FCallCommand(args, this.commandOptions)),
3348
+ /**
3349
+ * @see https://redis.io/docs/latest/commands/fcall_ro/
3350
+ */
3351
+ callRo: (...args) => this.chain(new FCallRoCommand(args, this.commandOptions))
3352
+ };
3353
+ }
3211
3354
  };
3212
3355
 
3213
3356
  // pkg/auto-pipeline.ts
@@ -3229,7 +3372,7 @@ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
3229
3372
  "zrange",
3230
3373
  "exec"
3231
3374
  ]);
3232
- function createAutoPipelineProxy(_redis, json) {
3375
+ function createAutoPipelineProxy(_redis, namespace = "root") {
3233
3376
  const redis = _redis;
3234
3377
  if (!redis.autoPipelineExecutor) {
3235
3378
  redis.autoPipelineExecutor = new AutoPipelineExecutor(redis);
@@ -3239,29 +3382,31 @@ function createAutoPipelineProxy(_redis, json) {
3239
3382
  if (command === "pipelineCounter") {
3240
3383
  return redis2.autoPipelineExecutor.pipelineCounter;
3241
3384
  }
3242
- if (command === "json") {
3243
- return createAutoPipelineProxy(redis2, true);
3385
+ if (namespace === "root" && command === "json") {
3386
+ return createAutoPipelineProxy(redis2, "json");
3387
+ }
3388
+ if (namespace === "root" && command === "functions") {
3389
+ return createAutoPipelineProxy(redis2, "functions");
3244
3390
  }
3245
- const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
3246
- const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
3247
- if (commandInRedisButNotPipeline || isCommandExcluded) {
3248
- return redis2[command];
3391
+ if (namespace === "root") {
3392
+ const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
3393
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
3394
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
3395
+ return redis2[command];
3396
+ }
3249
3397
  }
3250
- const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
3398
+ const pipeline = redis2.autoPipelineExecutor.pipeline;
3399
+ const targetFunction = namespace === "json" ? pipeline.json[command] : namespace === "functions" ? pipeline.functions[command] : pipeline[command];
3400
+ const isFunction = typeof targetFunction === "function";
3251
3401
  if (isFunction) {
3252
3402
  return (...args) => {
3253
- return redis2.autoPipelineExecutor.withAutoPipeline((pipeline) => {
3254
- if (json) {
3255
- pipeline.json[command](
3256
- ...args
3257
- );
3258
- } else {
3259
- pipeline[command](...args);
3260
- }
3403
+ return redis2.autoPipelineExecutor.withAutoPipeline((pipeline2) => {
3404
+ const targetFunction2 = namespace === "json" ? pipeline2.json[command] : namespace === "functions" ? pipeline2.functions[command] : pipeline2[command];
3405
+ targetFunction2(...args);
3261
3406
  });
3262
3407
  };
3263
3408
  }
3264
- return redis2.autoPipelineExecutor.pipeline[command];
3409
+ return targetFunction;
3265
3410
  }
3266
3411
  });
3267
3412
  }
@@ -3753,6 +3898,40 @@ var Redis = class {
3753
3898
  type: (...args) => new JsonTypeCommand(args, this.opts).exec(this.client)
3754
3899
  };
3755
3900
  }
3901
+ get functions() {
3902
+ return {
3903
+ /**
3904
+ * @see https://redis.io/docs/latest/commands/function-load/
3905
+ */
3906
+ load: (...args) => new FunctionLoadCommand(args, this.opts).exec(this.client),
3907
+ /**
3908
+ * @see https://redis.io/docs/latest/commands/function-list/
3909
+ */
3910
+ list: (...args) => new FunctionListCommand(args, this.opts).exec(this.client),
3911
+ /**
3912
+ * @see https://redis.io/docs/latest/commands/function-delete/
3913
+ */
3914
+ delete: (...args) => new FunctionDeleteCommand(args, this.opts).exec(this.client),
3915
+ /**
3916
+ * @see https://redis.io/docs/latest/commands/function-flush/
3917
+ */
3918
+ flush: () => new FunctionFlushCommand(this.opts).exec(this.client),
3919
+ /**
3920
+ * @see https://redis.io/docs/latest/commands/function-stats/
3921
+ *
3922
+ * Note: `running_script` field is not supported and therefore not included in the type.
3923
+ */
3924
+ stats: () => new FunctionStatsCommand(this.opts).exec(this.client),
3925
+ /**
3926
+ * @see https://redis.io/docs/latest/commands/fcall/
3927
+ */
3928
+ call: (...args) => new FCallCommand(args, this.opts).exec(this.client),
3929
+ /**
3930
+ * @see https://redis.io/docs/latest/commands/fcall_ro/
3931
+ */
3932
+ callRo: (...args) => new FCallRoCommand(args, this.opts).exec(this.client)
3933
+ };
3934
+ }
3756
3935
  /**
3757
3936
  * Wrap a new middleware around the HTTP client.
3758
3937
  */
package/cloudflare.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-xbfRql7X.mjs';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, N as GetSetCommand, O as HDelCommand, Q as HExistsCommand, T as HExpireAtCommand, S as HExpireCommand, V as HExpireTimeCommand, a1 as HGetAllCommand, a0 as HGetCommand, a2 as HIncrByCommand, a3 as HIncrByFloatCommand, a4 as HKeysCommand, a5 as HLenCommand, a6 as HMGetCommand, a7 as HMSetCommand, Y as HPExpireAtCommand, X as HPExpireCommand, Z as HPExpireTimeCommand, _ as HPTtlCommand, $ as HPersistCommand, a8 as HRandFieldCommand, a9 as HScanCommand, aa as HSetCommand, ab as HSetNXCommand, ac as HStrLenCommand, W as HTtlCommand, ad as HValsCommand, af as IncrByCommand, ag as IncrByFloatCommand, ae as IncrCommand, ah as JsonArrAppendCommand, ai as JsonArrIndexCommand, aj as JsonArrInsertCommand, ak as JsonArrLenCommand, al as JsonArrPopCommand, am as JsonArrTrimCommand, an as JsonClearCommand, ao as JsonDelCommand, ap as JsonForgetCommand, aq as JsonGetCommand, as as JsonMGetCommand, ar as JsonMergeCommand, at as JsonNumIncrByCommand, au as JsonNumMultByCommand, av as JsonObjKeysCommand, aw as JsonObjLenCommand, ax as JsonRespCommand, ay as JsonSetCommand, az as JsonStrAppendCommand, aA as JsonStrLenCommand, aB as JsonToggleCommand, aC as JsonTypeCommand, aD as KeysCommand, aE as LIndexCommand, aF as LInsertCommand, aG as LLenCommand, aH as LMoveCommand, aI as LPopCommand, aJ as LPushCommand, aK as LPushXCommand, aL as LRangeCommand, aM as LRemCommand, aN as LSetCommand, aO as LTrimCommand, aP as MGetCommand, aQ as MSetCommand, aR as MSetNXCommand, aU as PExpireAtCommand, aT as PExpireCommand, aW as PSetEXCommand, aX as PTtlCommand, aS as PersistCommand, aV as PingCommand, P as Pipeline, aY as PublishCommand, b0 as RPopCommand, b1 as RPushCommand, b2 as RPushXCommand, aZ as RandomKeyCommand, a_ as RenameCommand, a$ as RenameNXCommand, c as Requester, b3 as SAddCommand, b6 as SCardCommand, ba as SDiffCommand, bb as SDiffStoreCommand, bi as SInterCommand, bj as SInterStoreCommand, bk as SIsMemberCommand, bm as SMIsMemberCommand, bl as SMembersCommand, bn as SMoveCommand, bo as SPopCommand, bp as SRandMemberCommand, bq as SRemCommand, br as SScanCommand, bt as SUnionCommand, bu as SUnionStoreCommand, b4 as ScanCommand, b5 as ScanCommandOptions, bD as ScoreMember, b7 as ScriptExistsCommand, b8 as ScriptFlushCommand, b9 as ScriptLoadCommand, be as SetBitCommand, bc as SetCommand, bd as SetCommandOptions, bf as SetExCommand, bg as SetNxCommand, bh as SetRangeCommand, bs as StrLenCommand, bv as TimeCommand, bw as TouchCommand, bx as TtlCommand, by as Type, bz as TypeCommand, bA as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bB as XAddCommand, bC as XRangeCommand, bF as ZAddCommand, bE as ZAddCommandOptions, bG as ZCardCommand, bH as ZCountCommand, bI as ZDiffStoreCommand, bJ as ZIncrByCommand, bK as ZInterStoreCommand, bL as ZInterStoreCommandOptions, bM as ZLexCountCommand, bN as ZMScoreCommand, bO as ZPopMaxCommand, bP as ZPopMinCommand, bQ as ZRangeCommand, bR as ZRangeCommandOptions, bS as ZRankCommand, bT as ZRemCommand, bU as ZRemRangeByLexCommand, bV as ZRemRangeByRankCommand, bW as ZRemRangeByScoreCommand, bX as ZRevRankCommand, bY as ZScanCommand, bZ as ZScoreCommand, b_ as ZUnionCommand, b$ as ZUnionCommandOptions, c0 as ZUnionStoreCommand, c1 as ZUnionStoreCommandOptions, e as errors } from './zmscore-xbfRql7X.mjs';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-0SAuWM0q.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, N as GetSetCommand, O as HDelCommand, Q as HExistsCommand, T as HExpireAtCommand, S as HExpireCommand, V as HExpireTimeCommand, a1 as HGetAllCommand, a0 as HGetCommand, a2 as HIncrByCommand, a3 as HIncrByFloatCommand, a4 as HKeysCommand, a5 as HLenCommand, a6 as HMGetCommand, a7 as HMSetCommand, Y as HPExpireAtCommand, X as HPExpireCommand, Z as HPExpireTimeCommand, _ as HPTtlCommand, $ as HPersistCommand, a8 as HRandFieldCommand, a9 as HScanCommand, aa as HSetCommand, ab as HSetNXCommand, ac as HStrLenCommand, W as HTtlCommand, ad as HValsCommand, af as IncrByCommand, ag as IncrByFloatCommand, ae as IncrCommand, ah as JsonArrAppendCommand, ai as JsonArrIndexCommand, aj as JsonArrInsertCommand, ak as JsonArrLenCommand, al as JsonArrPopCommand, am as JsonArrTrimCommand, an as JsonClearCommand, ao as JsonDelCommand, ap as JsonForgetCommand, aq as JsonGetCommand, as as JsonMGetCommand, ar as JsonMergeCommand, at as JsonNumIncrByCommand, au as JsonNumMultByCommand, av as JsonObjKeysCommand, aw as JsonObjLenCommand, ax as JsonRespCommand, ay as JsonSetCommand, az as JsonStrAppendCommand, aA as JsonStrLenCommand, aB as JsonToggleCommand, aC as JsonTypeCommand, aD as KeysCommand, aE as LIndexCommand, aF as LInsertCommand, aG as LLenCommand, aH as LMoveCommand, aI as LPopCommand, aJ as LPushCommand, aK as LPushXCommand, aL as LRangeCommand, aM as LRemCommand, aN as LSetCommand, aO as LTrimCommand, aP as MGetCommand, aQ as MSetCommand, aR as MSetNXCommand, aU as PExpireAtCommand, aT as PExpireCommand, aW as PSetEXCommand, aX as PTtlCommand, aS as PersistCommand, aV as PingCommand, P as Pipeline, aY as PublishCommand, b0 as RPopCommand, b1 as RPushCommand, b2 as RPushXCommand, aZ as RandomKeyCommand, a_ as RenameCommand, a$ as RenameNXCommand, c as Requester, b3 as SAddCommand, b6 as SCardCommand, ba as SDiffCommand, bb as SDiffStoreCommand, bi as SInterCommand, bj as SInterStoreCommand, bk as SIsMemberCommand, bm as SMIsMemberCommand, bl as SMembersCommand, bn as SMoveCommand, bo as SPopCommand, bp as SRandMemberCommand, bq as SRemCommand, br as SScanCommand, bt as SUnionCommand, bu as SUnionStoreCommand, b4 as ScanCommand, b5 as ScanCommandOptions, bD as ScoreMember, b7 as ScriptExistsCommand, b8 as ScriptFlushCommand, b9 as ScriptLoadCommand, be as SetBitCommand, bc as SetCommand, bd as SetCommandOptions, bf as SetExCommand, bg as SetNxCommand, bh as SetRangeCommand, bs as StrLenCommand, bv as TimeCommand, bw as TouchCommand, bx as TtlCommand, by as Type, bz as TypeCommand, bA as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bB as XAddCommand, bC as XRangeCommand, bF as ZAddCommand, bE as ZAddCommandOptions, bG as ZCardCommand, bH as ZCountCommand, bI as ZDiffStoreCommand, bJ as ZIncrByCommand, bK as ZInterStoreCommand, bL as ZInterStoreCommandOptions, bM as ZLexCountCommand, bN as ZMScoreCommand, bO as ZPopMaxCommand, bP as ZPopMinCommand, bQ as ZRangeCommand, bR as ZRangeCommandOptions, bS as ZRankCommand, bT as ZRemCommand, bU as ZRemRangeByLexCommand, bV as ZRemRangeByRankCommand, bW as ZRemRangeByScoreCommand, bX as ZRevRankCommand, bY as ZScanCommand, bZ as ZScoreCommand, b_ as ZUnionCommand, b$ as ZUnionCommandOptions, c0 as ZUnionStoreCommand, c1 as ZUnionStoreCommandOptions, e as errors } from './zmscore-0SAuWM0q.mjs';
3
3
 
4
4
  type Env = {
5
5
  UPSTASH_DISABLE_TELEMETRY?: string;
package/cloudflare.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-xbfRql7X.js';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, N as GetSetCommand, O as HDelCommand, Q as HExistsCommand, T as HExpireAtCommand, S as HExpireCommand, V as HExpireTimeCommand, a1 as HGetAllCommand, a0 as HGetCommand, a2 as HIncrByCommand, a3 as HIncrByFloatCommand, a4 as HKeysCommand, a5 as HLenCommand, a6 as HMGetCommand, a7 as HMSetCommand, Y as HPExpireAtCommand, X as HPExpireCommand, Z as HPExpireTimeCommand, _ as HPTtlCommand, $ as HPersistCommand, a8 as HRandFieldCommand, a9 as HScanCommand, aa as HSetCommand, ab as HSetNXCommand, ac as HStrLenCommand, W as HTtlCommand, ad as HValsCommand, af as IncrByCommand, ag as IncrByFloatCommand, ae as IncrCommand, ah as JsonArrAppendCommand, ai as JsonArrIndexCommand, aj as JsonArrInsertCommand, ak as JsonArrLenCommand, al as JsonArrPopCommand, am as JsonArrTrimCommand, an as JsonClearCommand, ao as JsonDelCommand, ap as JsonForgetCommand, aq as JsonGetCommand, as as JsonMGetCommand, ar as JsonMergeCommand, at as JsonNumIncrByCommand, au as JsonNumMultByCommand, av as JsonObjKeysCommand, aw as JsonObjLenCommand, ax as JsonRespCommand, ay as JsonSetCommand, az as JsonStrAppendCommand, aA as JsonStrLenCommand, aB as JsonToggleCommand, aC as JsonTypeCommand, aD as KeysCommand, aE as LIndexCommand, aF as LInsertCommand, aG as LLenCommand, aH as LMoveCommand, aI as LPopCommand, aJ as LPushCommand, aK as LPushXCommand, aL as LRangeCommand, aM as LRemCommand, aN as LSetCommand, aO as LTrimCommand, aP as MGetCommand, aQ as MSetCommand, aR as MSetNXCommand, aU as PExpireAtCommand, aT as PExpireCommand, aW as PSetEXCommand, aX as PTtlCommand, aS as PersistCommand, aV as PingCommand, P as Pipeline, aY as PublishCommand, b0 as RPopCommand, b1 as RPushCommand, b2 as RPushXCommand, aZ as RandomKeyCommand, a_ as RenameCommand, a$ as RenameNXCommand, c as Requester, b3 as SAddCommand, b6 as SCardCommand, ba as SDiffCommand, bb as SDiffStoreCommand, bi as SInterCommand, bj as SInterStoreCommand, bk as SIsMemberCommand, bm as SMIsMemberCommand, bl as SMembersCommand, bn as SMoveCommand, bo as SPopCommand, bp as SRandMemberCommand, bq as SRemCommand, br as SScanCommand, bt as SUnionCommand, bu as SUnionStoreCommand, b4 as ScanCommand, b5 as ScanCommandOptions, bD as ScoreMember, b7 as ScriptExistsCommand, b8 as ScriptFlushCommand, b9 as ScriptLoadCommand, be as SetBitCommand, bc as SetCommand, bd as SetCommandOptions, bf as SetExCommand, bg as SetNxCommand, bh as SetRangeCommand, bs as StrLenCommand, bv as TimeCommand, bw as TouchCommand, bx as TtlCommand, by as Type, bz as TypeCommand, bA as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bB as XAddCommand, bC as XRangeCommand, bF as ZAddCommand, bE as ZAddCommandOptions, bG as ZCardCommand, bH as ZCountCommand, bI as ZDiffStoreCommand, bJ as ZIncrByCommand, bK as ZInterStoreCommand, bL as ZInterStoreCommandOptions, bM as ZLexCountCommand, bN as ZMScoreCommand, bO as ZPopMaxCommand, bP as ZPopMinCommand, bQ as ZRangeCommand, bR as ZRangeCommandOptions, bS as ZRankCommand, bT as ZRemCommand, bU as ZRemRangeByLexCommand, bV as ZRemRangeByRankCommand, bW as ZRemRangeByScoreCommand, bX as ZRevRankCommand, bY as ZScanCommand, bZ as ZScoreCommand, b_ as ZUnionCommand, b$ as ZUnionCommandOptions, c0 as ZUnionStoreCommand, c1 as ZUnionStoreCommandOptions, e as errors } from './zmscore-xbfRql7X.js';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-0SAuWM0q.js';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, J as GetBitCommand, I as GetCommand, K as GetDelCommand, L as GetExCommand, M as GetRangeCommand, N as GetSetCommand, O as HDelCommand, Q as HExistsCommand, T as HExpireAtCommand, S as HExpireCommand, V as HExpireTimeCommand, a1 as HGetAllCommand, a0 as HGetCommand, a2 as HIncrByCommand, a3 as HIncrByFloatCommand, a4 as HKeysCommand, a5 as HLenCommand, a6 as HMGetCommand, a7 as HMSetCommand, Y as HPExpireAtCommand, X as HPExpireCommand, Z as HPExpireTimeCommand, _ as HPTtlCommand, $ as HPersistCommand, a8 as HRandFieldCommand, a9 as HScanCommand, aa as HSetCommand, ab as HSetNXCommand, ac as HStrLenCommand, W as HTtlCommand, ad as HValsCommand, af as IncrByCommand, ag as IncrByFloatCommand, ae as IncrCommand, ah as JsonArrAppendCommand, ai as JsonArrIndexCommand, aj as JsonArrInsertCommand, ak as JsonArrLenCommand, al as JsonArrPopCommand, am as JsonArrTrimCommand, an as JsonClearCommand, ao as JsonDelCommand, ap as JsonForgetCommand, aq as JsonGetCommand, as as JsonMGetCommand, ar as JsonMergeCommand, at as JsonNumIncrByCommand, au as JsonNumMultByCommand, av as JsonObjKeysCommand, aw as JsonObjLenCommand, ax as JsonRespCommand, ay as JsonSetCommand, az as JsonStrAppendCommand, aA as JsonStrLenCommand, aB as JsonToggleCommand, aC as JsonTypeCommand, aD as KeysCommand, aE as LIndexCommand, aF as LInsertCommand, aG as LLenCommand, aH as LMoveCommand, aI as LPopCommand, aJ as LPushCommand, aK as LPushXCommand, aL as LRangeCommand, aM as LRemCommand, aN as LSetCommand, aO as LTrimCommand, aP as MGetCommand, aQ as MSetCommand, aR as MSetNXCommand, aU as PExpireAtCommand, aT as PExpireCommand, aW as PSetEXCommand, aX as PTtlCommand, aS as PersistCommand, aV as PingCommand, P as Pipeline, aY as PublishCommand, b0 as RPopCommand, b1 as RPushCommand, b2 as RPushXCommand, aZ as RandomKeyCommand, a_ as RenameCommand, a$ as RenameNXCommand, c as Requester, b3 as SAddCommand, b6 as SCardCommand, ba as SDiffCommand, bb as SDiffStoreCommand, bi as SInterCommand, bj as SInterStoreCommand, bk as SIsMemberCommand, bm as SMIsMemberCommand, bl as SMembersCommand, bn as SMoveCommand, bo as SPopCommand, bp as SRandMemberCommand, bq as SRemCommand, br as SScanCommand, bt as SUnionCommand, bu as SUnionStoreCommand, b4 as ScanCommand, b5 as ScanCommandOptions, bD as ScoreMember, b7 as ScriptExistsCommand, b8 as ScriptFlushCommand, b9 as ScriptLoadCommand, be as SetBitCommand, bc as SetCommand, bd as SetCommandOptions, bf as SetExCommand, bg as SetNxCommand, bh as SetRangeCommand, bs as StrLenCommand, bv as TimeCommand, bw as TouchCommand, bx as TtlCommand, by as Type, bz as TypeCommand, bA as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bB as XAddCommand, bC as XRangeCommand, bF as ZAddCommand, bE as ZAddCommandOptions, bG as ZCardCommand, bH as ZCountCommand, bI as ZDiffStoreCommand, bJ as ZIncrByCommand, bK as ZInterStoreCommand, bL as ZInterStoreCommandOptions, bM as ZLexCountCommand, bN as ZMScoreCommand, bO as ZPopMaxCommand, bP as ZPopMinCommand, bQ as ZRangeCommand, bR as ZRangeCommandOptions, bS as ZRankCommand, bT as ZRemCommand, bU as ZRemRangeByLexCommand, bV as ZRemRangeByRankCommand, bW as ZRemRangeByScoreCommand, bX as ZRevRankCommand, bY as ZScanCommand, bZ as ZScoreCommand, b_ as ZUnionCommand, b$ as ZUnionCommandOptions, c0 as ZUnionStoreCommand, c1 as ZUnionStoreCommandOptions, e as errors } from './zmscore-0SAuWM0q.js';
3
3
 
4
4
  type Env = {
5
5
  UPSTASH_DISABLE_TELEMETRY?: string;