@upstash/redis 1.36.0-rc.7 → 1.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-YYS6F6RP.mjs → chunk-LLI2WIYN.mjs} +223 -408
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +230 -383
- package/cloudflare.mjs +14 -10
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +217 -374
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +3 -94
- package/nodejs.d.ts +3 -94
- package/nodejs.js +225 -411
- package/nodejs.mjs +9 -13
- package/package.json +1 -1
- package/{zmscore-DFUU7Vgq.d.mts → zmscore-0SAuWM0q.d.mts} +125 -336
- package/{zmscore-DFUU7Vgq.d.ts → zmscore-0SAuWM0q.d.ts} +125 -336
package/fastly.mjs
CHANGED
package/nodejs.d.mts
CHANGED
|
@@ -1,96 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand,
|
|
3
|
-
|
|
4
|
-
declare const BUILD: unique symbol;
|
|
5
|
-
declare class TextFieldBuilder<NoTokenize extends Record<"noTokenize", boolean> = {
|
|
6
|
-
noTokenize: false;
|
|
7
|
-
}, NoStem extends Record<"noStem", boolean> = {
|
|
8
|
-
noStem: false;
|
|
9
|
-
}> {
|
|
10
|
-
private _noTokenize;
|
|
11
|
-
private _noStem;
|
|
12
|
-
constructor(noTokenize?: NoTokenize, noStem?: NoStem);
|
|
13
|
-
noTokenize(): TextFieldBuilder<{
|
|
14
|
-
noTokenize: true;
|
|
15
|
-
}, NoStem>;
|
|
16
|
-
noStem(): TextFieldBuilder<NoTokenize, {
|
|
17
|
-
noStem: true;
|
|
18
|
-
}>;
|
|
19
|
-
[BUILD](): NoTokenize extends {
|
|
20
|
-
noTokenize: true;
|
|
21
|
-
} ? NoStem extends {
|
|
22
|
-
noStem: true;
|
|
23
|
-
} ? {
|
|
24
|
-
type: "TEXT";
|
|
25
|
-
noTokenize: true;
|
|
26
|
-
noStem: true;
|
|
27
|
-
} : {
|
|
28
|
-
type: "TEXT";
|
|
29
|
-
noTokenize: true;
|
|
30
|
-
} : NoStem extends {
|
|
31
|
-
noStem: true;
|
|
32
|
-
} ? {
|
|
33
|
-
type: "TEXT";
|
|
34
|
-
noStem: true;
|
|
35
|
-
} : "TEXT";
|
|
36
|
-
}
|
|
37
|
-
declare class NumericFieldBuilder<T extends NumericField["type"]> {
|
|
38
|
-
private type;
|
|
39
|
-
constructor(type: T);
|
|
40
|
-
[BUILD](): {
|
|
41
|
-
type: T;
|
|
42
|
-
fast: true;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
declare class BoolFieldBuilder<Fast extends Record<"fast", boolean> = {
|
|
46
|
-
fast: false;
|
|
47
|
-
}> {
|
|
48
|
-
private _fast;
|
|
49
|
-
constructor(fast?: Fast);
|
|
50
|
-
fast(): BoolFieldBuilder<{
|
|
51
|
-
fast: true;
|
|
52
|
-
}>;
|
|
53
|
-
[BUILD](): Fast extends {
|
|
54
|
-
fast: true;
|
|
55
|
-
} ? {
|
|
56
|
-
type: "BOOL";
|
|
57
|
-
fast: true;
|
|
58
|
-
} : "BOOL";
|
|
59
|
-
}
|
|
60
|
-
declare class DateFieldBuilder<Fast extends Record<"fast", boolean> = {
|
|
61
|
-
fast: false;
|
|
62
|
-
}> {
|
|
63
|
-
private _fast;
|
|
64
|
-
constructor(fast?: Fast);
|
|
65
|
-
fast(): DateFieldBuilder<{
|
|
66
|
-
fast: true;
|
|
67
|
-
}>;
|
|
68
|
-
[BUILD](): Fast extends {
|
|
69
|
-
fast: true;
|
|
70
|
-
} ? {
|
|
71
|
-
type: "DATE";
|
|
72
|
-
fast: true;
|
|
73
|
-
} : "DATE";
|
|
74
|
-
}
|
|
75
|
-
type FieldBuilder = TextFieldBuilder<{
|
|
76
|
-
noTokenize: boolean;
|
|
77
|
-
}, {
|
|
78
|
-
noStem: boolean;
|
|
79
|
-
}> | NumericFieldBuilder<NumericField["type"]> | BoolFieldBuilder<{
|
|
80
|
-
fast: boolean;
|
|
81
|
-
}> | DateFieldBuilder<{
|
|
82
|
-
fast: boolean;
|
|
83
|
-
}>;
|
|
84
|
-
declare const s: {
|
|
85
|
-
string(): TextFieldBuilder;
|
|
86
|
-
number<T extends NumericField["type"] = "F64">(type?: T): NumericFieldBuilder<T>;
|
|
87
|
-
boolean(): BoolFieldBuilder;
|
|
88
|
-
date(): DateFieldBuilder;
|
|
89
|
-
object<T extends ObjectFieldRecord<T>>(fields: T): { [K in keyof T]: T[K] extends FieldBuilder ? ReturnType<T[K][typeof BUILD]> : T[K]; };
|
|
90
|
-
};
|
|
91
|
-
type ObjectFieldRecord<T> = {
|
|
92
|
-
[K in keyof T]: K extends string ? K extends `${infer _}.${infer _}` ? never : T[K] extends FieldBuilder | NestedIndexSchema ? T[K] : never : never;
|
|
93
|
-
};
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } 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, 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';
|
|
94
3
|
|
|
95
4
|
/**
|
|
96
5
|
* Connection credentials for upstash redis.
|
|
@@ -169,4 +78,4 @@ declare class Redis extends Redis$1 {
|
|
|
169
78
|
static fromEnv(config?: Omit<RedisConfigNodejs, "url" | "token">): Redis;
|
|
170
79
|
}
|
|
171
80
|
|
|
172
|
-
export {
|
|
81
|
+
export { Redis, type RedisConfigNodejs, Requester };
|
package/nodejs.d.ts
CHANGED
|
@@ -1,96 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand,
|
|
3
|
-
|
|
4
|
-
declare const BUILD: unique symbol;
|
|
5
|
-
declare class TextFieldBuilder<NoTokenize extends Record<"noTokenize", boolean> = {
|
|
6
|
-
noTokenize: false;
|
|
7
|
-
}, NoStem extends Record<"noStem", boolean> = {
|
|
8
|
-
noStem: false;
|
|
9
|
-
}> {
|
|
10
|
-
private _noTokenize;
|
|
11
|
-
private _noStem;
|
|
12
|
-
constructor(noTokenize?: NoTokenize, noStem?: NoStem);
|
|
13
|
-
noTokenize(): TextFieldBuilder<{
|
|
14
|
-
noTokenize: true;
|
|
15
|
-
}, NoStem>;
|
|
16
|
-
noStem(): TextFieldBuilder<NoTokenize, {
|
|
17
|
-
noStem: true;
|
|
18
|
-
}>;
|
|
19
|
-
[BUILD](): NoTokenize extends {
|
|
20
|
-
noTokenize: true;
|
|
21
|
-
} ? NoStem extends {
|
|
22
|
-
noStem: true;
|
|
23
|
-
} ? {
|
|
24
|
-
type: "TEXT";
|
|
25
|
-
noTokenize: true;
|
|
26
|
-
noStem: true;
|
|
27
|
-
} : {
|
|
28
|
-
type: "TEXT";
|
|
29
|
-
noTokenize: true;
|
|
30
|
-
} : NoStem extends {
|
|
31
|
-
noStem: true;
|
|
32
|
-
} ? {
|
|
33
|
-
type: "TEXT";
|
|
34
|
-
noStem: true;
|
|
35
|
-
} : "TEXT";
|
|
36
|
-
}
|
|
37
|
-
declare class NumericFieldBuilder<T extends NumericField["type"]> {
|
|
38
|
-
private type;
|
|
39
|
-
constructor(type: T);
|
|
40
|
-
[BUILD](): {
|
|
41
|
-
type: T;
|
|
42
|
-
fast: true;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
declare class BoolFieldBuilder<Fast extends Record<"fast", boolean> = {
|
|
46
|
-
fast: false;
|
|
47
|
-
}> {
|
|
48
|
-
private _fast;
|
|
49
|
-
constructor(fast?: Fast);
|
|
50
|
-
fast(): BoolFieldBuilder<{
|
|
51
|
-
fast: true;
|
|
52
|
-
}>;
|
|
53
|
-
[BUILD](): Fast extends {
|
|
54
|
-
fast: true;
|
|
55
|
-
} ? {
|
|
56
|
-
type: "BOOL";
|
|
57
|
-
fast: true;
|
|
58
|
-
} : "BOOL";
|
|
59
|
-
}
|
|
60
|
-
declare class DateFieldBuilder<Fast extends Record<"fast", boolean> = {
|
|
61
|
-
fast: false;
|
|
62
|
-
}> {
|
|
63
|
-
private _fast;
|
|
64
|
-
constructor(fast?: Fast);
|
|
65
|
-
fast(): DateFieldBuilder<{
|
|
66
|
-
fast: true;
|
|
67
|
-
}>;
|
|
68
|
-
[BUILD](): Fast extends {
|
|
69
|
-
fast: true;
|
|
70
|
-
} ? {
|
|
71
|
-
type: "DATE";
|
|
72
|
-
fast: true;
|
|
73
|
-
} : "DATE";
|
|
74
|
-
}
|
|
75
|
-
type FieldBuilder = TextFieldBuilder<{
|
|
76
|
-
noTokenize: boolean;
|
|
77
|
-
}, {
|
|
78
|
-
noStem: boolean;
|
|
79
|
-
}> | NumericFieldBuilder<NumericField["type"]> | BoolFieldBuilder<{
|
|
80
|
-
fast: boolean;
|
|
81
|
-
}> | DateFieldBuilder<{
|
|
82
|
-
fast: boolean;
|
|
83
|
-
}>;
|
|
84
|
-
declare const s: {
|
|
85
|
-
string(): TextFieldBuilder;
|
|
86
|
-
number<T extends NumericField["type"] = "F64">(type?: T): NumericFieldBuilder<T>;
|
|
87
|
-
boolean(): BoolFieldBuilder;
|
|
88
|
-
date(): DateFieldBuilder;
|
|
89
|
-
object<T extends ObjectFieldRecord<T>>(fields: T): { [K in keyof T]: T[K] extends FieldBuilder ? ReturnType<T[K][typeof BUILD]> : T[K]; };
|
|
90
|
-
};
|
|
91
|
-
type ObjectFieldRecord<T> = {
|
|
92
|
-
[K in keyof T]: K extends string ? K extends `${infer _}.${infer _}` ? never : T[K] extends FieldBuilder | NestedIndexSchema ? T[K] : never : never;
|
|
93
|
-
};
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } 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, 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';
|
|
94
3
|
|
|
95
4
|
/**
|
|
96
5
|
* Connection credentials for upstash redis.
|
|
@@ -169,4 +78,4 @@ declare class Redis extends Redis$1 {
|
|
|
169
78
|
static fromEnv(config?: Omit<RedisConfigNodejs, "url" | "token">): Redis;
|
|
170
79
|
}
|
|
171
80
|
|
|
172
|
-
export {
|
|
81
|
+
export { Redis, type RedisConfigNodejs, Requester };
|