@upstash/redis 1.36.3 → 1.36.4-rc1

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.
@@ -3782,6 +3782,7 @@ var Script = class {
3782
3782
  * future major release.
3783
3783
  */
3784
3784
  sha1;
3785
+ initPromise;
3785
3786
  redis;
3786
3787
  constructor(redis, script) {
3787
3788
  this.redis = redis;
@@ -3792,9 +3793,13 @@ var Script = class {
3792
3793
  /**
3793
3794
  * Initialize the script by computing its SHA-1 hash.
3794
3795
  */
3795
- async init(script) {
3796
- if (this.sha1) return;
3797
- this.sha1 = await this.digest(script);
3796
+ init(script) {
3797
+ if (!this.initPromise) {
3798
+ this.initPromise = this.digest(script).then((sha1) => {
3799
+ this.sha1 = sha1;
3800
+ });
3801
+ }
3802
+ return this.initPromise;
3798
3803
  }
3799
3804
  /**
3800
3805
  * Send an `EVAL` command to redis.
@@ -3849,6 +3854,7 @@ var ScriptRO = class {
3849
3854
  * future major release.
3850
3855
  */
3851
3856
  sha1;
3857
+ initPromise;
3852
3858
  redis;
3853
3859
  constructor(redis, script) {
3854
3860
  this.redis = redis;
@@ -3856,9 +3862,13 @@ var ScriptRO = class {
3856
3862
  this.script = script;
3857
3863
  void this.init(script);
3858
3864
  }
3859
- async init(script) {
3860
- if (this.sha1) return;
3861
- this.sha1 = await this.digest(script);
3865
+ init(script) {
3866
+ if (!this.initPromise) {
3867
+ this.initPromise = this.digest(script).then((sha1) => {
3868
+ this.sha1 = sha1;
3869
+ });
3870
+ }
3871
+ return this.initPromise;
3862
3872
  }
3863
3873
  /**
3864
3874
  * Send an `EVAL_RO` command to redis.
@@ -4848,7 +4858,7 @@ var Redis = class {
4848
4858
  };
4849
4859
 
4850
4860
  // version.ts
4851
- var VERSION = "v1.36.3";
4861
+ var VERSION = "1.36.4-rc1";
4852
4862
 
4853
4863
  export {
4854
4864
  error_exports,
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-DcU8fVDf.mjs';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DcU8fVDf.mjs';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.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-DcU8fVDf.js';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DcU8fVDf.js';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.js';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.js';
3
3
 
4
4
  type Env = {
5
5
  UPSTASH_DISABLE_TELEMETRY?: string;
package/cloudflare.js CHANGED
@@ -3803,6 +3803,7 @@ var Script = class {
3803
3803
  * future major release.
3804
3804
  */
3805
3805
  sha1;
3806
+ initPromise;
3806
3807
  redis;
3807
3808
  constructor(redis, script) {
3808
3809
  this.redis = redis;
@@ -3813,9 +3814,13 @@ var Script = class {
3813
3814
  /**
3814
3815
  * Initialize the script by computing its SHA-1 hash.
3815
3816
  */
3816
- async init(script) {
3817
- if (this.sha1) return;
3818
- this.sha1 = await this.digest(script);
3817
+ init(script) {
3818
+ if (!this.initPromise) {
3819
+ this.initPromise = this.digest(script).then((sha1) => {
3820
+ this.sha1 = sha1;
3821
+ });
3822
+ }
3823
+ return this.initPromise;
3819
3824
  }
3820
3825
  /**
3821
3826
  * Send an `EVAL` command to redis.
@@ -3870,6 +3875,7 @@ var ScriptRO = class {
3870
3875
  * future major release.
3871
3876
  */
3872
3877
  sha1;
3878
+ initPromise;
3873
3879
  redis;
3874
3880
  constructor(redis, script) {
3875
3881
  this.redis = redis;
@@ -3877,9 +3883,13 @@ var ScriptRO = class {
3877
3883
  this.script = script;
3878
3884
  void this.init(script);
3879
3885
  }
3880
- async init(script) {
3881
- if (this.sha1) return;
3882
- this.sha1 = await this.digest(script);
3886
+ init(script) {
3887
+ if (!this.initPromise) {
3888
+ this.initPromise = this.digest(script).then((sha1) => {
3889
+ this.sha1 = sha1;
3890
+ });
3891
+ }
3892
+ return this.initPromise;
3883
3893
  }
3884
3894
  /**
3885
3895
  * Send an `EVAL_RO` command to redis.
@@ -4869,7 +4879,7 @@ var Redis = class {
4869
4879
  };
4870
4880
 
4871
4881
  // version.ts
4872
- var VERSION = "v1.36.3";
4882
+ var VERSION = "1.36.4-rc1";
4873
4883
 
4874
4884
  // platforms/cloudflare.ts
4875
4885
  var Redis2 = class _Redis extends Redis {
package/cloudflare.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-NB23BFCV.mjs";
6
+ } from "./chunk-4PP6H3CI.mjs";
7
7
 
8
8
  // platforms/cloudflare.ts
9
9
  var Redis2 = class _Redis extends Redis {
package/fastly.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-DcU8fVDf.mjs';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DcU8fVDf.mjs';
1
+ import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.mjs';
3
3
 
4
4
  /**
5
5
  * Connection credentials for upstash redis.
package/fastly.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-DcU8fVDf.js';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DcU8fVDf.js';
1
+ import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.js';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.js';
3
3
 
4
4
  /**
5
5
  * Connection credentials for upstash redis.
package/fastly.js CHANGED
@@ -3803,6 +3803,7 @@ var Script = class {
3803
3803
  * future major release.
3804
3804
  */
3805
3805
  sha1;
3806
+ initPromise;
3806
3807
  redis;
3807
3808
  constructor(redis, script) {
3808
3809
  this.redis = redis;
@@ -3813,9 +3814,13 @@ var Script = class {
3813
3814
  /**
3814
3815
  * Initialize the script by computing its SHA-1 hash.
3815
3816
  */
3816
- async init(script) {
3817
- if (this.sha1) return;
3818
- this.sha1 = await this.digest(script);
3817
+ init(script) {
3818
+ if (!this.initPromise) {
3819
+ this.initPromise = this.digest(script).then((sha1) => {
3820
+ this.sha1 = sha1;
3821
+ });
3822
+ }
3823
+ return this.initPromise;
3819
3824
  }
3820
3825
  /**
3821
3826
  * Send an `EVAL` command to redis.
@@ -3870,6 +3875,7 @@ var ScriptRO = class {
3870
3875
  * future major release.
3871
3876
  */
3872
3877
  sha1;
3878
+ initPromise;
3873
3879
  redis;
3874
3880
  constructor(redis, script) {
3875
3881
  this.redis = redis;
@@ -3877,9 +3883,13 @@ var ScriptRO = class {
3877
3883
  this.script = script;
3878
3884
  void this.init(script);
3879
3885
  }
3880
- async init(script) {
3881
- if (this.sha1) return;
3882
- this.sha1 = await this.digest(script);
3886
+ init(script) {
3887
+ if (!this.initPromise) {
3888
+ this.initPromise = this.digest(script).then((sha1) => {
3889
+ this.sha1 = sha1;
3890
+ });
3891
+ }
3892
+ return this.initPromise;
3883
3893
  }
3884
3894
  /**
3885
3895
  * Send an `EVAL_RO` command to redis.
@@ -4869,7 +4879,7 @@ var Redis = class {
4869
4879
  };
4870
4880
 
4871
4881
  // version.ts
4872
- var VERSION = "v1.36.3";
4882
+ var VERSION = "1.36.4-rc1";
4873
4883
 
4874
4884
  // platforms/fastly.ts
4875
4885
  var Redis2 = class extends Redis {
package/fastly.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-NB23BFCV.mjs";
6
+ } from "./chunk-4PP6H3CI.mjs";
7
7
 
8
8
  // platforms/fastly.ts
9
9
  var Redis2 = class extends Redis {
package/nodejs.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-DcU8fVDf.mjs';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DcU8fVDf.mjs';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-Dq2s28SC.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.mjs';
3
3
 
4
4
  /**
5
5
  * Connection credentials for upstash redis.
package/nodejs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-DcU8fVDf.js';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DcU8fVDf.js';
1
+ import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-Dq2s28SC.js';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.js';
3
3
 
4
4
  /**
5
5
  * Connection credentials for upstash redis.
package/nodejs.js CHANGED
@@ -3803,6 +3803,7 @@ var Script = class {
3803
3803
  * future major release.
3804
3804
  */
3805
3805
  sha1;
3806
+ initPromise;
3806
3807
  redis;
3807
3808
  constructor(redis, script) {
3808
3809
  this.redis = redis;
@@ -3813,9 +3814,13 @@ var Script = class {
3813
3814
  /**
3814
3815
  * Initialize the script by computing its SHA-1 hash.
3815
3816
  */
3816
- async init(script) {
3817
- if (this.sha1) return;
3818
- this.sha1 = await this.digest(script);
3817
+ init(script) {
3818
+ if (!this.initPromise) {
3819
+ this.initPromise = this.digest(script).then((sha1) => {
3820
+ this.sha1 = sha1;
3821
+ });
3822
+ }
3823
+ return this.initPromise;
3819
3824
  }
3820
3825
  /**
3821
3826
  * Send an `EVAL` command to redis.
@@ -3870,6 +3875,7 @@ var ScriptRO = class {
3870
3875
  * future major release.
3871
3876
  */
3872
3877
  sha1;
3878
+ initPromise;
3873
3879
  redis;
3874
3880
  constructor(redis, script) {
3875
3881
  this.redis = redis;
@@ -3877,9 +3883,13 @@ var ScriptRO = class {
3877
3883
  this.script = script;
3878
3884
  void this.init(script);
3879
3885
  }
3880
- async init(script) {
3881
- if (this.sha1) return;
3882
- this.sha1 = await this.digest(script);
3886
+ init(script) {
3887
+ if (!this.initPromise) {
3888
+ this.initPromise = this.digest(script).then((sha1) => {
3889
+ this.sha1 = sha1;
3890
+ });
3891
+ }
3892
+ return this.initPromise;
3883
3893
  }
3884
3894
  /**
3885
3895
  * Send an `EVAL_RO` command to redis.
@@ -4869,7 +4879,7 @@ var Redis = class {
4869
4879
  };
4870
4880
 
4871
4881
  // version.ts
4872
- var VERSION = "v1.36.3";
4882
+ var VERSION = "1.36.4-rc1";
4873
4883
 
4874
4884
  // platforms/nodejs.ts
4875
4885
  if (typeof atob === "undefined") {
package/nodejs.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-NB23BFCV.mjs";
6
+ } from "./chunk-4PP6H3CI.mjs";
7
7
 
8
8
  // platforms/nodejs.ts
9
9
  if (typeof atob === "undefined") {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@upstash/redis","version":"v1.36.3","main":"./nodejs.js","module":"./nodejs.mjs","types":"./nodejs.d.ts","exports":{".":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./node":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.js":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.mjs":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./fastly":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.js":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.mjs":{"import":"./fastly.mjs","require":"./fastly.js"}},"description":"An HTTP/REST based Redis client built on top of Upstash REST API.","repository":{"type":"git","url":"git@github.com:upstash/redis-js.git"},"keywords":["redis","database","serverless","edge","upstash"],"files":["./*"],"scripts":{"build":"tsup && cp package.json README.md LICENSE dist/","test":"bun test pkg","fmt":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --quiet --fix","format":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"","lint:fix":"eslint . -c .ts,.tsx,.js,.jsx --fix","commit":"cz","lint:format":"bun run lint:fix && bun run format","check-exports":"bun run build && cd dist && attw -P"},"author":"Andreas Thomas <dev@chronark.com>","license":"MIT","bugs":{"url":"https://github.com/upstash/upstash-redis/issues"},"homepage":"https://github.com/upstash/upstash-redis#readme","devDependencies":{"@biomejs/biome":"latest","@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@typescript-eslint/eslint-plugin":"8.4.0","@typescript-eslint/parser":"8.4.0","bun-types":"1.0.33","eslint":"9.10.0","eslint-plugin-unicorn":"55.0.0","husky":"^9.1.1","prettier":"^3.3.3","tsup":"^8.2.3","typescript":"latest"},"dependencies":{"uncrypto":"^0.1.3"}}
1
+ {"name":"@upstash/redis","version":"1.36.4-rc1","main":"./nodejs.js","module":"./nodejs.mjs","types":"./nodejs.d.ts","exports":{".":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./node":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.js":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.mjs":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./fastly":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.js":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.mjs":{"import":"./fastly.mjs","require":"./fastly.js"}},"description":"An HTTP/REST based Redis client built on top of Upstash REST API.","repository":{"type":"git","url":"git@github.com:upstash/redis-js.git"},"keywords":["redis","database","serverless","edge","upstash"],"files":["./*"],"scripts":{"build":"tsup && cp package.json README.md LICENSE dist/","test":"bun test pkg","fmt":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --quiet --fix","format":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"","lint:fix":"eslint . -c .ts,.tsx,.js,.jsx --fix","commit":"cz","lint:format":"bun run lint:fix && bun run format","check-exports":"bun run build && cd dist && attw -P"},"author":"Andreas Thomas <dev@chronark.com>","license":"MIT","bugs":{"url":"https://github.com/upstash/upstash-redis/issues"},"homepage":"https://github.com/upstash/upstash-redis#readme","devDependencies":{"@biomejs/biome":"latest","@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@typescript-eslint/eslint-plugin":"8.4.0","@typescript-eslint/parser":"8.4.0","bun-types":"1.0.33","eslint":"9.10.0","eslint-plugin-unicorn":"55.0.0","husky":"^9.1.1","prettier":"^3.3.3","tsup":"^8.2.3","typescript":"latest"},"dependencies":{"uncrypto":"^0.1.3"}}
@@ -3254,6 +3254,7 @@ declare class Script<TResult = unknown> {
3254
3254
  * future major release.
3255
3255
  */
3256
3256
  sha1: string;
3257
+ private initPromise;
3257
3258
  private readonly redis;
3258
3259
  constructor(redis: Redis, script: string);
3259
3260
  /**
@@ -3307,6 +3308,7 @@ declare class ScriptRO<TResult = unknown> {
3307
3308
  * future major release.
3308
3309
  */
3309
3310
  sha1: string;
3311
+ private initPromise;
3310
3312
  private readonly redis;
3311
3313
  constructor(redis: Redis, script: string);
3312
3314
  private init;
@@ -3254,6 +3254,7 @@ declare class Script<TResult = unknown> {
3254
3254
  * future major release.
3255
3255
  */
3256
3256
  sha1: string;
3257
+ private initPromise;
3257
3258
  private readonly redis;
3258
3259
  constructor(redis: Redis, script: string);
3259
3260
  /**
@@ -3307,6 +3308,7 @@ declare class ScriptRO<TResult = unknown> {
3307
3308
  * future major release.
3308
3309
  */
3309
3310
  sha1: string;
3311
+ private initPromise;
3310
3312
  private readonly redis;
3311
3313
  constructor(redis: Redis, script: string);
3312
3314
  private init;