@upstash/redis 1.18.2-rc.1 → 1.18.3

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/esm/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "v1.18.2-rc.1";
1
+ export const VERSION = "v1.18.3";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/platforms/nodejs.js",
4
4
  "types": "./types/platforms/nodejs.d.ts",
5
5
  "name": "@upstash/redis",
6
- "version": "v1.18.2-rc.1",
6
+ "version": "v1.18.3",
7
7
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
8
8
  "repository": {
9
9
  "type": "git",
package/script/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "v1.18.2-rc.1";
4
+ exports.VERSION = "v1.18.3";
@@ -2,6 +2,6 @@ import { Command, CommandOptions } from "./command.js";
2
2
  /**
3
3
  * @see https://redis.io/commands/smembers
4
4
  */
5
- export declare class SMembersCommand<TData = string> extends Command<unknown[], TData[]> {
6
- constructor(cmd: [key: string], opts?: CommandOptions<unknown[], TData[]>);
5
+ export declare class SMembersCommand<TData extends unknown[] = string[]> extends Command<unknown[], TData> {
6
+ constructor(cmd: [key: string], opts?: CommandOptions<unknown[], TData>);
7
7
  }
@@ -419,7 +419,7 @@ export declare class Pipeline {
419
419
  /**
420
420
  * @see https://redis.io/commands/smembers
421
421
  */
422
- smembers: (key: string) => this;
422
+ smembers: <TData extends unknown[] = string[]>(key: string) => this;
423
423
  /**
424
424
  * @see https://redis.io/commands/smove
425
425
  */
@@ -410,7 +410,7 @@ export declare class Redis {
410
410
  /**
411
411
  * @see https://redis.io/commands/smembers
412
412
  */
413
- smembers: (key: string) => Promise<string[]>;
413
+ smembers: <TData extends unknown[] = string[]>(key: string) => Promise<TData>;
414
414
  /**
415
415
  * @see https://redis.io/commands/smove
416
416
  */
@@ -1 +1 @@
1
- export declare const VERSION = "v1.18.2-rc.1";
1
+ export declare const VERSION = "v1.18.3";