@upstash/redis 1.19.2 → 1.20.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/esm/pkg/commands/command.js +12 -3
- package/esm/pkg/commands/json_arrappend.js +9 -0
- package/esm/pkg/commands/json_arrindex.js +9 -0
- package/esm/pkg/commands/json_arrinsert.js +9 -0
- package/esm/pkg/commands/json_arrlen.js +9 -0
- package/esm/pkg/commands/json_arrpop.js +9 -0
- package/esm/pkg/commands/json_arrtrim.js +12 -0
- package/esm/pkg/commands/json_clear.js +9 -0
- package/esm/pkg/commands/json_del.js +9 -0
- package/esm/pkg/commands/json_forget.js +9 -0
- package/esm/pkg/commands/json_get.js +30 -0
- package/esm/pkg/commands/json_mget.js +9 -0
- package/esm/pkg/commands/json_numincrby.js +9 -0
- package/esm/pkg/commands/json_nummultby.js +9 -0
- package/esm/pkg/commands/json_objkeys.js +9 -0
- package/esm/pkg/commands/json_objlen.js +9 -0
- package/esm/pkg/commands/json_resp.js +9 -0
- package/esm/pkg/commands/json_set.js +18 -0
- package/esm/pkg/commands/json_strappend.js +9 -0
- package/esm/pkg/commands/json_strlen.js +9 -0
- package/esm/pkg/commands/json_toggle.js +9 -0
- package/esm/pkg/commands/json_type.js +9 -0
- package/esm/pkg/commands/mod.js +22 -1
- package/esm/pkg/http.js +0 -9
- package/esm/pkg/pipeline.js +93 -1
- package/esm/pkg/redis.js +99 -1
- package/esm/platforms/cloudflare.js +6 -6
- package/esm/platforms/fastly.js +5 -0
- package/esm/platforms/node_with_fetch.js +10 -11
- package/esm/platforms/nodejs.js +10 -11
- package/esm/version.js +1 -1
- package/package.json +41 -16
- package/script/pkg/commands/command.js +12 -3
- package/script/pkg/commands/json_arrappend.js +13 -0
- package/script/pkg/commands/json_arrindex.js +13 -0
- package/script/pkg/commands/json_arrinsert.js +13 -0
- package/script/pkg/commands/json_arrlen.js +13 -0
- package/script/pkg/commands/json_arrpop.js +13 -0
- package/script/pkg/commands/json_arrtrim.js +16 -0
- package/script/pkg/commands/json_clear.js +13 -0
- package/script/pkg/commands/json_del.js +13 -0
- package/script/pkg/commands/json_forget.js +13 -0
- package/script/pkg/commands/json_get.js +34 -0
- package/script/pkg/commands/json_mget.js +13 -0
- package/script/pkg/commands/json_numincrby.js +13 -0
- package/script/pkg/commands/json_nummultby.js +13 -0
- package/script/pkg/commands/json_objkeys.js +13 -0
- package/script/pkg/commands/json_objlen.js +13 -0
- package/script/pkg/commands/json_resp.js +13 -0
- package/script/pkg/commands/json_set.js +22 -0
- package/script/pkg/commands/json_strappend.js +13 -0
- package/script/pkg/commands/json_strlen.js +13 -0
- package/script/pkg/commands/json_toggle.js +13 -0
- package/script/pkg/commands/json_type.js +13 -0
- package/script/pkg/commands/mod.js +22 -1
- package/script/pkg/http.js +0 -9
- package/script/pkg/pipeline.js +92 -0
- package/script/pkg/redis.js +98 -0
- package/script/platforms/cloudflare.js +6 -6
- package/script/platforms/fastly.js +5 -0
- package/script/platforms/node_with_fetch.js +10 -11
- package/script/platforms/nodejs.js +10 -11
- package/script/version.js +1 -1
- package/types/pkg/commands/command.d.ts +5 -5
- package/types/pkg/commands/json_arrappend.d.ts +7 -0
- package/types/pkg/commands/json_arrindex.d.ts +13 -0
- package/types/pkg/commands/json_arrinsert.d.ts +7 -0
- package/types/pkg/commands/json_arrlen.d.ts +7 -0
- package/types/pkg/commands/json_arrpop.d.ts +7 -0
- package/types/pkg/commands/json_arrtrim.d.ts +7 -0
- package/types/pkg/commands/json_clear.d.ts +7 -0
- package/types/pkg/commands/json_del.d.ts +7 -0
- package/types/pkg/commands/json_forget.d.ts +7 -0
- package/types/pkg/commands/json_get.d.ts +15 -0
- package/types/pkg/commands/json_mget.d.ts +7 -0
- package/types/pkg/commands/json_numincrby.d.ts +7 -0
- package/types/pkg/commands/json_nummultby.d.ts +7 -0
- package/types/pkg/commands/json_objkeys.d.ts +7 -0
- package/types/pkg/commands/json_objlen.d.ts +7 -0
- package/types/pkg/commands/json_resp.d.ts +7 -0
- package/types/pkg/commands/json_set.d.ts +18 -0
- package/types/pkg/commands/json_strappend.d.ts +7 -0
- package/types/pkg/commands/json_strlen.d.ts +7 -0
- package/types/pkg/commands/json_toggle.d.ts +7 -0
- package/types/pkg/commands/json_type.d.ts +7 -0
- package/types/pkg/commands/mod.d.ts +22 -1
- package/types/pkg/commands/scan.d.ts +1 -1
- package/types/pkg/commands/script_flush.d.ts +1 -1
- package/types/pkg/commands/set.d.ts +1 -1
- package/types/pkg/commands/type.d.ts +1 -1
- package/types/pkg/commands/zadd.d.ts +3 -3
- package/types/pkg/commands/zinterstore.d.ts +1 -1
- package/types/pkg/commands/zrange.d.ts +1 -1
- package/types/pkg/commands/zunionstore.d.ts +1 -1
- package/types/pkg/http.d.ts +6 -7
- package/types/pkg/pipeline.d.ts +27 -1
- package/types/pkg/redis.d.ts +96 -10
- package/types/pkg/types.d.ts +11 -2
- package/types/platforms/cloudflare.d.ts +2 -2
- package/types/platforms/fastly.d.ts +1 -1
- package/types/platforms/node_with_fetch.d.ts +1 -1
- package/types/platforms/nodejs.d.ts +1 -1
- package/types/version.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, CommandOptions } from "./command.js";
|
|
2
|
-
export
|
|
2
|
+
export type ZAddCommandOptions = ({
|
|
3
3
|
nx: true;
|
|
4
4
|
xx?: never;
|
|
5
5
|
} | {
|
|
@@ -11,10 +11,10 @@ export declare type ZAddCommandOptions = ({
|
|
|
11
11
|
}) & {
|
|
12
12
|
ch?: true;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ZAddCommandOptionsWithIncr = ZAddCommandOptions & {
|
|
15
15
|
incr: true;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ScoreMember<TData> = {
|
|
18
18
|
score: number;
|
|
19
19
|
member: TData;
|
|
20
20
|
};
|
package/types/pkg/http.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Telemetry } from "./types.js";
|
|
2
|
-
export
|
|
2
|
+
export type UpstashRequest = {
|
|
3
3
|
path?: string[];
|
|
4
4
|
/**
|
|
5
5
|
* Request body will be serialized to json
|
|
6
6
|
*/
|
|
7
7
|
body?: unknown;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type UpstashResponse<TResult> = {
|
|
10
10
|
result?: TResult;
|
|
11
11
|
error?: string;
|
|
12
12
|
};
|
|
13
13
|
export interface Requester {
|
|
14
14
|
request: <TResult = unknown>(req: UpstashRequest) => Promise<UpstashResponse<TResult>>;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type RetryConfig = false | {
|
|
17
17
|
/**
|
|
18
18
|
* The number of retries to attempt before giving up.
|
|
19
19
|
*
|
|
@@ -30,10 +30,10 @@ export declare type RetryConfig = false | {
|
|
|
30
30
|
*/
|
|
31
31
|
backoff?: (retryCount: number) => number;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type Options = {
|
|
34
34
|
backend?: string;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type RequesterConfig = {
|
|
37
37
|
/**
|
|
38
38
|
* Configure the retry behaviour in case of network errors
|
|
39
39
|
*/
|
|
@@ -62,13 +62,12 @@ export declare type RequesterConfig = {
|
|
|
62
62
|
*/
|
|
63
63
|
responseEncoding?: false | "base64";
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type HttpClientConfig = {
|
|
66
66
|
headers?: Record<string, string>;
|
|
67
67
|
baseUrl: string;
|
|
68
68
|
options?: Options;
|
|
69
69
|
retry?: RetryConfig;
|
|
70
70
|
agent?: any;
|
|
71
|
-
telemetry?: Telemetry;
|
|
72
71
|
} & RequesterConfig;
|
|
73
72
|
export declare class HttpClient implements Requester {
|
|
74
73
|
baseUrl: string;
|
package/types/pkg/pipeline.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DelCommand, ExistsCommand, FlushAllCommand, MGetCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
|
|
1
|
+
import { DelCommand, ExistsCommand, FlushAllCommand, JsonArrAppendCommand, JsonArrIndexCommand, JsonArrInsertCommand, JsonArrLenCommand, JsonArrPopCommand, JsonArrTrimCommand, JsonClearCommand, JsonDelCommand, JsonForgetCommand, JsonGetCommand, JsonMGetCommand, JsonNumIncrByCommand, JsonNumMultByCommand, JsonObjKeysCommand, JsonObjLenCommand, JsonRespCommand, JsonSetCommand, JsonStrAppendCommand, JsonStrLenCommand, JsonToggleCommand, JsonTypeCommand, MGetCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
|
|
2
2
|
import { CommandOptions } from "./commands/command.js";
|
|
3
3
|
import { Requester } from "./http.js";
|
|
4
4
|
import { CommandArgs } from "./types.js";
|
|
@@ -574,4 +574,30 @@ export declare class Pipeline {
|
|
|
574
574
|
* @see https://redis.io/commands/zunionstore
|
|
575
575
|
*/
|
|
576
576
|
zunionstore: (destination: string, numKeys: number, keys: string[], opts?: import("./commands/zunionstore.js").ZUnionStoreCommandOptions | undefined) => this;
|
|
577
|
+
/**
|
|
578
|
+
* @see https://redis.io/commands/?group=json
|
|
579
|
+
*/
|
|
580
|
+
get json(): {
|
|
581
|
+
arrappend: (...args: CommandArgs<typeof JsonArrAppendCommand>) => Pipeline;
|
|
582
|
+
arrindex: (...args: CommandArgs<typeof JsonArrIndexCommand>) => Pipeline;
|
|
583
|
+
arrinsert: (...args: CommandArgs<typeof JsonArrInsertCommand>) => Pipeline;
|
|
584
|
+
arrlen: (...args: CommandArgs<typeof JsonArrLenCommand>) => Pipeline;
|
|
585
|
+
arrpop: (...args: CommandArgs<typeof JsonArrPopCommand>) => Pipeline;
|
|
586
|
+
arrtrim: (...args: CommandArgs<typeof JsonArrTrimCommand>) => Pipeline;
|
|
587
|
+
clear: (...args: CommandArgs<typeof JsonClearCommand>) => Pipeline;
|
|
588
|
+
del: (...args: CommandArgs<typeof JsonDelCommand>) => Pipeline;
|
|
589
|
+
forget: (...args: CommandArgs<typeof JsonForgetCommand>) => Pipeline;
|
|
590
|
+
get: (...args: CommandArgs<typeof JsonGetCommand>) => Pipeline;
|
|
591
|
+
mget: (...args: CommandArgs<typeof JsonMGetCommand>) => Pipeline;
|
|
592
|
+
numincrby: (...args: CommandArgs<typeof JsonNumIncrByCommand>) => Pipeline;
|
|
593
|
+
nummultby: (...args: CommandArgs<typeof JsonNumMultByCommand>) => Pipeline;
|
|
594
|
+
objkeys: (...args: CommandArgs<typeof JsonObjKeysCommand>) => Pipeline;
|
|
595
|
+
objlen: (...args: CommandArgs<typeof JsonObjLenCommand>) => Pipeline;
|
|
596
|
+
resp: (...args: CommandArgs<typeof JsonRespCommand>) => Pipeline;
|
|
597
|
+
set: (...args: CommandArgs<typeof JsonSetCommand>) => Pipeline;
|
|
598
|
+
strappend: (...args: CommandArgs<typeof JsonStrAppendCommand>) => Pipeline;
|
|
599
|
+
strlen: (...args: CommandArgs<typeof JsonStrLenCommand>) => Pipeline;
|
|
600
|
+
toggle: (...args: CommandArgs<typeof JsonToggleCommand>) => Pipeline;
|
|
601
|
+
type: (...args: CommandArgs<typeof JsonTypeCommand>) => Pipeline;
|
|
602
|
+
};
|
|
577
603
|
}
|
package/types/pkg/redis.d.ts
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import { CommandOptions, DelCommand, ExistsCommand, FlushAllCommand, MGetCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
|
|
1
|
+
import { CommandOptions, DelCommand, ExistsCommand, FlushAllCommand, JsonGetCommand, MGetCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
|
|
2
2
|
import { Requester, UpstashRequest, UpstashResponse } from "./http.js";
|
|
3
3
|
import { Pipeline } from "./pipeline.js";
|
|
4
4
|
import type { CommandArgs } from "./types.js";
|
|
5
5
|
import { Script } from "./script.js";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Automatically try to deserialize the returned data from upstash using `JSON.deserialize`
|
|
9
|
-
*
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
automaticDeserialization?: boolean;
|
|
13
|
-
};
|
|
6
|
+
import { RedisOptions, Telemetry } from "./types.js";
|
|
14
7
|
/**
|
|
15
8
|
* Serverless redis client for upstash.
|
|
16
9
|
*/
|
|
17
10
|
export declare class Redis {
|
|
18
11
|
protected client: Requester;
|
|
19
12
|
protected opts?: CommandOptions<any, any>;
|
|
13
|
+
protected enableTelemetry: boolean;
|
|
20
14
|
/**
|
|
21
15
|
* Create a new redis client
|
|
22
16
|
*
|
|
@@ -29,6 +23,98 @@ export declare class Redis {
|
|
|
29
23
|
* ```
|
|
30
24
|
*/
|
|
31
25
|
constructor(client: Requester, opts?: RedisOptions);
|
|
26
|
+
get json(): {
|
|
27
|
+
/**
|
|
28
|
+
* @see https://redis.io/commands/json.arrappend
|
|
29
|
+
*/
|
|
30
|
+
arrappend: (key: string, path: string, ...values: unknown[]) => Promise<(number | null)[]>;
|
|
31
|
+
/**
|
|
32
|
+
* @see https://redis.io/commands/json.arrindex
|
|
33
|
+
*/
|
|
34
|
+
arrindex: (key: string, path: string, value: unknown, start?: number | undefined, stop?: number | undefined) => Promise<(number | null)[]>;
|
|
35
|
+
/**
|
|
36
|
+
* @see https://redis.io/commands/json.arrinsert
|
|
37
|
+
*/
|
|
38
|
+
arrinsert: (key: string, path: string, index: number, ...values: unknown[]) => Promise<(number | null)[]>;
|
|
39
|
+
/**
|
|
40
|
+
* @see https://redis.io/commands/json.arrlen
|
|
41
|
+
*/
|
|
42
|
+
arrlen: (key: string, path?: string | undefined) => Promise<(number | null)[]>;
|
|
43
|
+
/**
|
|
44
|
+
* @see https://redis.io/commands/json.arrpop
|
|
45
|
+
*/
|
|
46
|
+
arrpop: (key: string, path?: string | undefined, index?: number | undefined) => Promise<unknown[]>;
|
|
47
|
+
/**
|
|
48
|
+
* @see https://redis.io/commands/json.arrtrim
|
|
49
|
+
*/
|
|
50
|
+
arrtrim: (key: string, path?: string | undefined, start?: number | undefined, stop?: number | undefined) => Promise<(number | null)[]>;
|
|
51
|
+
/**
|
|
52
|
+
* @see https://redis.io/commands/json.clear
|
|
53
|
+
*/
|
|
54
|
+
clear: (key: string, path?: string | undefined) => Promise<number>;
|
|
55
|
+
/**
|
|
56
|
+
* @see https://redis.io/commands/json.del
|
|
57
|
+
*/
|
|
58
|
+
del: (key: string, path?: string | undefined) => Promise<number>;
|
|
59
|
+
/**
|
|
60
|
+
* @see https://redis.io/commands/json.forget
|
|
61
|
+
*/
|
|
62
|
+
forget: (key: string, path?: string | undefined) => Promise<number>;
|
|
63
|
+
/**
|
|
64
|
+
* @see https://redis.io/commands/json.get
|
|
65
|
+
*/
|
|
66
|
+
get: (...args: CommandArgs<typeof JsonGetCommand>) => Promise<any>;
|
|
67
|
+
/**
|
|
68
|
+
* @see https://redis.io/commands/json.mget
|
|
69
|
+
*/
|
|
70
|
+
mget: (keys: string[], path: string) => Promise<any>;
|
|
71
|
+
/**
|
|
72
|
+
* @see https://redis.io/commands/json.numincrby
|
|
73
|
+
*/
|
|
74
|
+
numincrby: (key: string, path: string, value: number) => Promise<(number | null)[]>;
|
|
75
|
+
/**
|
|
76
|
+
* @see https://redis.io/commands/json.nummultby
|
|
77
|
+
*/
|
|
78
|
+
nummultby: (key: string, path: string, value: number) => Promise<(number | null)[]>;
|
|
79
|
+
/**
|
|
80
|
+
* @see https://redis.io/commands/json.objkeys
|
|
81
|
+
*/
|
|
82
|
+
objkeys: (key: string, path?: string | undefined) => Promise<(string[] | null)[]>;
|
|
83
|
+
/**
|
|
84
|
+
* @see https://redis.io/commands/json.objlen
|
|
85
|
+
*/
|
|
86
|
+
objlen: (key: string, path?: string | undefined) => Promise<(number | null)[]>;
|
|
87
|
+
/**
|
|
88
|
+
* @see https://redis.io/commands/json.resp
|
|
89
|
+
*/
|
|
90
|
+
resp: (key: string, path?: string | undefined) => Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* @see https://redis.io/commands/json.set
|
|
93
|
+
*/
|
|
94
|
+
set: (key: string, path: string, value: string | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[], opts?: {
|
|
95
|
+
nx: true;
|
|
96
|
+
xx?: undefined;
|
|
97
|
+
} | {
|
|
98
|
+
nx?: undefined;
|
|
99
|
+
xx: true;
|
|
100
|
+
} | undefined) => Promise<"OK" | null>;
|
|
101
|
+
/**
|
|
102
|
+
* @see https://redis.io/commands/json.strappend
|
|
103
|
+
*/
|
|
104
|
+
strappend: (key: string, path: string, value: string) => Promise<(number | null)[]>;
|
|
105
|
+
/**
|
|
106
|
+
* @see https://redis.io/commands/json.strlen
|
|
107
|
+
*/
|
|
108
|
+
strlen: (key: string, path?: string | undefined) => Promise<(number | null)[]>;
|
|
109
|
+
/**
|
|
110
|
+
* @see https://redis.io/commands/json.toggle
|
|
111
|
+
*/
|
|
112
|
+
toggle: (key: string, path: string) => Promise<number[]>;
|
|
113
|
+
/**
|
|
114
|
+
* @see https://redis.io/commands/json.type
|
|
115
|
+
*/
|
|
116
|
+
type: (key: string, path?: string | undefined) => Promise<string[]>;
|
|
117
|
+
};
|
|
32
118
|
/**
|
|
33
119
|
* Wrap a new middleware around the HTTP client.
|
|
34
120
|
*/
|
|
@@ -36,7 +122,7 @@ export declare class Redis {
|
|
|
36
122
|
/**
|
|
37
123
|
* Technically this is not private, we can hide it from intellisense by doing this
|
|
38
124
|
*/
|
|
39
|
-
|
|
125
|
+
protected addTelemetry: (telemetry: Telemetry) => void;
|
|
40
126
|
createScript(script: string): Script;
|
|
41
127
|
/**
|
|
42
128
|
* Create a new pipeline that allows you to send requests in bulk.
|
package/types/pkg/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type CommandArgs<TCommand extends new (...args: any) => any> = ConstructorParameters<TCommand>[0];
|
|
2
|
+
export type Telemetry = {
|
|
3
3
|
/**
|
|
4
4
|
* Upstash-Telemetry-Sdk
|
|
5
5
|
* @example @upstash/redis@v1.1.1
|
|
@@ -16,3 +16,12 @@ export declare type Telemetry = {
|
|
|
16
16
|
*/
|
|
17
17
|
runtime?: string;
|
|
18
18
|
};
|
|
19
|
+
export type RedisOptions = {
|
|
20
|
+
/**
|
|
21
|
+
* Automatically try to deserialize the returned data from upstash using `JSON.deserialize`
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
automaticDeserialization?: boolean;
|
|
26
|
+
enableTelemetry?: boolean;
|
|
27
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as core from "../pkg/redis.js";
|
|
2
2
|
import type { Requester, UpstashRequest, UpstashResponse } from "../pkg/http.js";
|
|
3
3
|
import { RequesterConfig } from "../pkg/http.js";
|
|
4
|
-
|
|
4
|
+
type Env = {
|
|
5
5
|
UPSTASH_DISABLE_TELEMETRY?: string;
|
|
6
6
|
};
|
|
7
7
|
export type { Requester, UpstashRequest, UpstashResponse };
|
|
@@ -9,7 +9,7 @@ export type { Requester, UpstashRequest, UpstashResponse };
|
|
|
9
9
|
* Connection credentials for upstash redis.
|
|
10
10
|
* Get them from https://console.upstash.com/redis/<uuid>
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type RedisConfigCloudflare = {
|
|
13
13
|
/**
|
|
14
14
|
* UPSTASH_REDIS_REST_URL
|
|
15
15
|
*/
|
|
@@ -5,7 +5,7 @@ export type { Requester, UpstashRequest, UpstashResponse };
|
|
|
5
5
|
* Connection credentials for upstash redis.
|
|
6
6
|
* Get them from https://console.upstash.com/redis/<uuid>
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type RedisConfigFastly = {
|
|
9
9
|
/**
|
|
10
10
|
* UPSTASH_REDIS_REST_URL
|
|
11
11
|
*/
|
|
@@ -6,7 +6,7 @@ export type { Requester, UpstashRequest, UpstashResponse };
|
|
|
6
6
|
* Connection credentials for upstash redis.
|
|
7
7
|
* Get them from https://console.upstash.com/redis/<uuid>
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type RedisConfigNodejs = {
|
|
10
10
|
/**
|
|
11
11
|
* UPSTASH_REDIS_REST_URL
|
|
12
12
|
*/
|
|
@@ -5,7 +5,7 @@ export type { Requester, UpstashRequest, UpstashResponse };
|
|
|
5
5
|
* Connection credentials for upstash redis.
|
|
6
6
|
* Get them from https://console.upstash.com/redis/<uuid>
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type RedisConfigNodejs = {
|
|
9
9
|
/**
|
|
10
10
|
* UPSTASH_REDIS_REST_URL
|
|
11
11
|
*/
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "v1.
|
|
1
|
+
export declare const VERSION = "v1.20.0-canary.0";
|