@upstash/redis 1.7.0 → 1.7.1-next.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/package.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "main": "./script/platforms/nodejs.js",
4
4
  "types": "./types/platforms/nodejs.d.ts",
5
5
  "name": "@upstash/redis",
6
- "version": "v1.7.0",
7
6
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
8
7
  "repository": {
9
8
  "type": "git",
@@ -97,5 +96,6 @@
97
96
  "require": "./script/platforms/node_with_fetch.js",
98
97
  "types": "./types/platforms/node_with_fetch.d.ts"
99
98
  }
100
- }
99
+ },
100
+ "version": "1.7.1-next.1"
101
101
  }
@@ -3,5 +3,5 @@ import { Command, CommandOptions } from "./command.js";
3
3
  * @see https://redis.io/commands/bitpos
4
4
  */
5
5
  export declare class BitPosCommand extends Command<number, number> {
6
- constructor(cmd: [key: string, start: number, end: number], opts?: CommandOptions<number, number>);
6
+ constructor(cmd: [key: string, bit: 0 | 1, start?: number, end?: number], opts?: CommandOptions<number, number>);
7
7
  }
@@ -3,5 +3,5 @@ import { Command, CommandOptions } from "./command.js";
3
3
  * @see https://redis.io/commands/lpop
4
4
  */
5
5
  export declare class LPopCommand<TData = string> extends Command<unknown | null, TData | null> {
6
- constructor(cmd: [key: string], opts?: CommandOptions<unknown | null, TData | null>);
6
+ constructor(cmd: [key: string, count?: number], opts?: CommandOptions<unknown | null, TData | null>);
7
7
  }
@@ -2,6 +2,6 @@ import { Command, CommandOptions } from "./command.js";
2
2
  /**
3
3
  * @see https://redis.io/commands/rpop
4
4
  */
5
- export declare class RPopCommand<TData = string> extends Command<unknown | null, TData | null> {
6
- constructor(cmd: [key: string], opts?: CommandOptions<unknown | null, TData | null>);
5
+ export declare class RPopCommand<TData extends unknown | unknown[] = string> extends Command<unknown | null, TData | null> {
6
+ constructor(cmd: [key: string, count?: number], opts?: CommandOptions<unknown | null, TData | null>);
7
7
  }
@@ -79,7 +79,7 @@ export declare class Pipeline {
79
79
  /**
80
80
  * @see https://redis.io/commands/bitpos
81
81
  */
82
- bitpos: (key: string, start: number, end: number) => this;
82
+ bitpos: (key: string, bit: 0 | 1, start?: number | undefined, end?: number | undefined) => this;
83
83
  /**
84
84
  * @see https://redis.io/commands/dbsize
85
85
  */
@@ -241,7 +241,7 @@ export declare class Pipeline {
241
241
  /**
242
242
  * @see https://redis.io/commands/lpop
243
243
  */
244
- lpop: <TData>(key: string) => this;
244
+ lpop: <TData>(key: string, count?: number | undefined) => this;
245
245
  /**
246
246
  * @see https://redis.io/commands/lpush
247
247
  */
@@ -325,7 +325,7 @@ export declare class Pipeline {
325
325
  /**
326
326
  * @see https://redis.io/commands/rpop
327
327
  */
328
- rpop: <TData = string>(key: string) => this;
328
+ rpop: <TData = string>(key: string, count?: number | undefined) => this;
329
329
  /**
330
330
  * @see https://redis.io/commands/rpush
331
331
  */
@@ -52,7 +52,7 @@ export declare class Redis {
52
52
  /**
53
53
  * @see https://redis.io/commands/bitpos
54
54
  */
55
- bitpos: (key: string, start: number, end: number) => Promise<number>;
55
+ bitpos: (key: string, bit: 0 | 1, start?: number | undefined, end?: number | undefined) => Promise<number>;
56
56
  /**
57
57
  * @see https://redis.io/commands/dbsize
58
58
  */
@@ -214,7 +214,7 @@ export declare class Redis {
214
214
  /**
215
215
  * @see https://redis.io/commands/lpop
216
216
  */
217
- lpop: <TData>(key: string) => Promise<TData | null>;
217
+ lpop: <TData>(key: string, count?: number | undefined) => Promise<TData | null>;
218
218
  /**
219
219
  * @see https://redis.io/commands/lpush
220
220
  */
@@ -298,7 +298,7 @@ export declare class Redis {
298
298
  /**
299
299
  * @see https://redis.io/commands/rpop
300
300
  */
301
- rpop: <TData = string>(key: string) => Promise<TData | null>;
301
+ rpop: <TData = string>(key: string, count?: number | undefined) => Promise<TData | null>;
302
302
  /**
303
303
  * @see https://redis.io/commands/rpush
304
304
  */