@upstash/redis 1.0.1 → 1.0.2

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/cloudflare.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as Redis$1 } from './redis-05a33429';
1
+ import { R as Redis$1 } from './redis-1bab26d0';
2
2
  import './http';
3
- import './zunionstore-98bb4d18';
3
+ import './zunionstore-e1cc0e90';
4
4
 
5
5
  /**
6
6
  * Connection credentials for upstash redis.
package/commands.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { h as Command, N as NonEmptyArray, S as ScanCommandOptions } from './zunionstore-98bb4d18';
2
- export { h as Command, i as ScanCommand, S as ScanCommandOptions, b as ScoreMember, j as SetCommand, a as SetCommandOptions, T as TouchCommand, g as Type, k as TypeCommand, U as UnlinkCommand, l as ZAddCommand, Z as ZAddCommandOptions, c as ZAddCommandOptionsWithIncr, m as ZInterStoreCommand, d as ZInterStoreCommandOptions, n as ZRangeCommand, e as ZRangeCommandOptions, o as ZUnionStoreCommand, f as ZUnionStoreCommandOptions } from './zunionstore-98bb4d18';
1
+ import { g as Command, N as NonEmptyArray, S as ScanCommandOptions } from './zunionstore-e1cc0e90';
2
+ export { g as Command, h as ScanCommand, S as ScanCommandOptions, b as ScoreMember, i as SetCommand, a as SetCommandOptions, T as Type, j as TypeCommand, U as UnlinkCommand, k as ZAddCommand, Z as ZAddCommandOptions, c as ZAddCommandOptionsWithIncr, l as ZInterStoreCommand, d as ZInterStoreCommandOptions, m as ZRangeCommand, e as ZRangeCommandOptions, n as ZUnionStoreCommand, f as ZUnionStoreCommandOptions } from './zunionstore-e1cc0e90';
3
3
  import './http';
4
4
 
5
5
  /**
@@ -599,6 +599,13 @@ declare class TimeCommand extends Command<[number, number], [number, number]> {
599
599
  constructor();
600
600
  }
601
601
 
602
+ /**
603
+ * @see https://redis.io/commands/touch
604
+ */
605
+ declare class TouchCommand extends Command<number, number> {
606
+ constructor(...keys: NonEmptyArray<string>);
607
+ }
608
+
602
609
  /**
603
610
  * @see https://redis.io/commands/ttl
604
611
  */
@@ -710,4 +717,4 @@ declare class ZScoreCommand<TData> extends Command<number | null, string | null>
710
717
  constructor(key: string, member: TData);
711
718
  }
712
719
 
713
- export { AppendCommand, BitCountCommand, BitOpCommand, BitPosCommand, DBSizeCommand, DecrByCommand, DecrCommand, DelCommand, EchoCommand, ExistsCommand, ExpireAtCommand, ExpireCommand, FlushAllCommand, FlushDBCommand, GetBitCommand, GetCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HGetAllCommand, HGetCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMGetCommand, HMSetCommand, HScanCommand, HSetCommand, HSetNXCommand, HStrLenCommand, HValsCommand, IncrByCommand, IncrByFloatCommand, IncrCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LPopCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PExpireAtCommand, PExpireCommand, PSetEXCommand, PTtlCommand, PersistCommand, PingCommand, RPopCommand, RPushCommand, RPushXCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, SAddCommand, SCardCommand, SDiffCommand, SDiffStoreCommand, SInterCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, SUnionCommand, SUnionStoreCommand, SetBitCommand, SetExCommand, SetNxCommand, SetRangeCommand, StrLenCommand, TimeCommand, TtlCommand, ZCardCommand, ZCountCommand, ZIncrByComand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand };
720
+ export { AppendCommand, BitCountCommand, BitOpCommand, BitPosCommand, DBSizeCommand, DecrByCommand, DecrCommand, DelCommand, EchoCommand, ExistsCommand, ExpireAtCommand, ExpireCommand, FlushAllCommand, FlushDBCommand, GetBitCommand, GetCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HGetAllCommand, HGetCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMGetCommand, HMSetCommand, HScanCommand, HSetCommand, HSetNXCommand, HStrLenCommand, HValsCommand, IncrByCommand, IncrByFloatCommand, IncrCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LPopCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PExpireAtCommand, PExpireCommand, PSetEXCommand, PTtlCommand, PersistCommand, PingCommand, RPopCommand, RPushCommand, RPushXCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, SAddCommand, SCardCommand, SDiffCommand, SDiffStoreCommand, SInterCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, SUnionCommand, SUnionStoreCommand, SetBitCommand, SetExCommand, SetNxCommand, SetRangeCommand, StrLenCommand, TimeCommand, TouchCommand, TtlCommand, ZCardCommand, ZCountCommand, ZIncrByComand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand };
package/fastly.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as Redis$1 } from './redis-05a33429';
1
+ import { R as Redis$1 } from './redis-1bab26d0';
2
2
  import './http';
3
- import './zunionstore-98bb4d18';
3
+ import './zunionstore-e1cc0e90';
4
4
 
5
5
  /**
6
6
  * Connection credentials for upstash redis.
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Redis, RedisConfigNodejs } from './nodejs';
2
- import './redis-05a33429';
2
+ import './redis-1bab26d0';
3
3
  import './http';
4
- import './zunionstore-98bb4d18';
4
+ import './zunionstore-e1cc0e90';
5
5
 
6
6
  /**
7
7
  * Result of a bad request to upstash
package/nodejs.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { R as Redis$1 } from './redis-05a33429';
1
+ import { R as Redis$1 } from './redis-1bab26d0';
2
2
  import './http';
3
- import './zunionstore-98bb4d18';
3
+ import './zunionstore-e1cc0e90';
4
4
 
5
5
  /**
6
6
  * Connection credentials for upstash redis.
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@upstash/redis", "version": "v1.0.1", "engines": { "node": ">=10" }, "description": "An HTTP/REST based Redis client built on top of Upstash REST API.", "main": "./index.js", "module": "./index.mjs", "types": "./index.d.ts", "scripts": { "test": "jest -i", "fmt": "pnpm lint && pnpm prettier --write .", "lint": "eslint --ext .ts --fix --ignore-path .gitignore .", "build": "tsup && cp package.json ./dist/ && pnpm size-limit" }, "repository": { "type": "git", "url": "git+https://github.com/upstash/upstash-redis.git" }, "keywords": [ "redis", "database", "serverless", "edge", "upstash" ], "author": "Andreas Thomas <andreas.thomas@chronark.com>", "license": "MIT", "bugs": { "url": "https://github.com/upstash/upstash-redis/issues" }, "homepage": "https://github.com/upstash/upstash-redis#readme", "directories": { "examples": "examples" }, "devDependencies": { "@jest/globals": "^27.4.6", "@size-limit/preset-small-lib": "^7.0.8", "@trivago/prettier-plugin-sort-imports": "^3.2.0", "@types/jest": "^27.4.0", "@types/node": "^17.0.8", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", "dotenv": "^12.0.3", "eslint": "^8.6.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^27.4.7", "prettier": "^2.5.1", "size-limit": "^7.0.8", "ts-jest": "^27.1.3", "tsup": "^5.11.11", "typescript": "^4.5.5" }, "dependencies": { "isomorphic-fetch": "^3.0.0" }, "browser": { "isomorphic-fetch": false }, "size-limit": [ { "path": "dist/index.js", "limit": "5 KB" }, { "path": "dist/index.mjs", "limit": "5 KB" }, { "path": "dist/cloudflare.js", "limit": "5 KB" }, { "path": "dist/cloudflare.mjs", "limit": "5 KB" }, { "path": "dist/nodejs.js", "limit": "5 KB" }, { "path": "dist/nodejs.mjs", "limit": "5 KB" }, { "path": "dist/fastly.js", "limit": "5 KB" }, { "path": "dist/fastly.mjs", "limit": "5 KB" } ] }
1
+ { "name": "@upstash/redis", "version": "v1.0.2", "engines": { "node": ">=10" }, "description": "An HTTP/REST based Redis client built on top of Upstash REST API.", "main": "./index.js", "module": "./index.mjs", "types": "./index.d.ts", "scripts": { "test": "jest -i", "fmt": "pnpm lint && pnpm prettier --write .", "lint": "eslint --ext .ts --fix --ignore-path .gitignore .", "build": "tsup && cp package.json ./dist/ && pnpm size-limit" }, "repository": { "type": "git", "url": "git+https://github.com/upstash/upstash-redis.git" }, "keywords": [ "redis", "database", "serverless", "edge", "upstash" ], "author": "Andreas Thomas <andreas.thomas@chronark.com>", "license": "MIT", "bugs": { "url": "https://github.com/upstash/upstash-redis/issues" }, "homepage": "https://github.com/upstash/upstash-redis#readme", "directories": { "examples": "examples" }, "devDependencies": { "@jest/globals": "^27.4.6", "@size-limit/preset-small-lib": "^7.0.8", "@trivago/prettier-plugin-sort-imports": "^3.2.0", "@types/jest": "^27.4.0", "@types/node": "^17.0.8", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", "dotenv": "^12.0.3", "eslint": "^8.6.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^27.4.7", "prettier": "^2.5.1", "size-limit": "^7.0.8", "ts-jest": "^27.1.3", "tsup": "^5.11.11", "typescript": "^4.5.5" }, "dependencies": { "isomorphic-fetch": "^3.0.0" }, "browser": { "isomorphic-fetch": false }, "size-limit": [ { "path": "dist/index.js", "limit": "5 KB" }, { "path": "dist/index.mjs", "limit": "5 KB" }, { "path": "dist/cloudflare.js", "limit": "5 KB" }, { "path": "dist/cloudflare.mjs", "limit": "5 KB" }, { "path": "dist/nodejs.js", "limit": "5 KB" }, { "path": "dist/nodejs.mjs", "limit": "5 KB" }, { "path": "dist/fastly.js", "limit": "5 KB" }, { "path": "dist/fastly.mjs", "limit": "5 KB" } ] }
@@ -1,5 +1,5 @@
1
1
  import { HttpClient } from './http';
2
- import { S as ScanCommandOptions, a as SetCommandOptions, C as CommandArgs, T as TouchCommand, U as UnlinkCommand, b as ScoreMember, Z as ZAddCommandOptions, c as ZAddCommandOptionsWithIncr, d as ZInterStoreCommandOptions, e as ZRangeCommandOptions, f as ZUnionStoreCommandOptions, g as Type } from './zunionstore-98bb4d18';
2
+ import { S as ScanCommandOptions, a as SetCommandOptions, C as CommandArgs, U as UnlinkCommand, b as ScoreMember, Z as ZAddCommandOptions, c as ZAddCommandOptionsWithIncr, d as ZInterStoreCommandOptions, e as ZRangeCommandOptions, f as ZUnionStoreCommandOptions, T as Type } from './zunionstore-e1cc0e90';
3
3
 
4
4
  /**
5
5
  * Upstash REST API supports command pipelining to send multiple commands in
@@ -418,7 +418,7 @@ declare class Pipeline {
418
418
  /**
419
419
  * @see https://redis.io/commands/touch
420
420
  */
421
- touch: (...args: CommandArgs<typeof TouchCommand>) => this;
421
+ touch: (args_0: string, ...args_1: string[]) => this;
422
422
  /**
423
423
  * @see https://redis.io/commands/ttl
424
424
  */
@@ -886,7 +886,7 @@ declare class Redis {
886
886
  /**
887
887
  * @see https://redis.io/commands/touch
888
888
  */
889
- touch: (...args: CommandArgs<typeof TouchCommand>) => Promise<number>;
889
+ touch: (args_0: string, ...args_1: string[]) => Promise<number>;
890
890
  /**
891
891
  * @see https://redis.io/commands/ttl
892
892
  */
@@ -63,13 +63,6 @@ declare class SetCommand<TData, TResult = "OK"> extends Command<TData, TResult>
63
63
  constructor(key: string, value: TData, opts?: SetCommandOptions);
64
64
  }
65
65
 
66
- /**
67
- * @see https://redis.io/commands/touch
68
- */
69
- declare class TouchCommand extends Command<number, number> {
70
- constructor(...keys: string[]);
71
- }
72
-
73
66
  declare type Type = "string" | "list" | "set" | "zset" | "hash" | "none";
74
67
  /**
75
68
  * @see https://redis.io/commands/type
@@ -162,4 +155,4 @@ declare class ZUnionStoreCommand extends Command<number, number> {
162
155
  constructor(destination: string, numKeys: number, keys: string[], opts?: ZUnionStoreCommandOptions);
163
156
  }
164
157
 
165
- export { CommandArgs as C, NonEmptyArray as N, ScanCommandOptions as S, TouchCommand as T, UnlinkCommand as U, ZAddCommandOptions as Z, SetCommandOptions as a, ScoreMember as b, ZAddCommandOptionsWithIncr as c, ZInterStoreCommandOptions as d, ZRangeCommandOptions as e, ZUnionStoreCommandOptions as f, Type as g, Command as h, ScanCommand as i, SetCommand as j, TypeCommand as k, ZAddCommand as l, ZInterStoreCommand as m, ZRangeCommand as n, ZUnionStoreCommand as o };
158
+ export { CommandArgs as C, NonEmptyArray as N, ScanCommandOptions as S, Type as T, UnlinkCommand as U, ZAddCommandOptions as Z, SetCommandOptions as a, ScoreMember as b, ZAddCommandOptionsWithIncr as c, ZInterStoreCommandOptions as d, ZRangeCommandOptions as e, ZUnionStoreCommandOptions as f, Command as g, ScanCommand as h, SetCommand as i, TypeCommand as j, ZAddCommand as k, ZInterStoreCommand as l, ZRangeCommand as m, ZUnionStoreCommand as n };