@upstash/redis 1.34.8 → 1.34.9

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.
@@ -3176,6 +3176,23 @@ var Pipeline = class {
3176
3176
  };
3177
3177
 
3178
3178
  // pkg/auto-pipeline.ts
3179
+ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
3180
+ "scan",
3181
+ "keys",
3182
+ "flushdb",
3183
+ "flushall",
3184
+ "dbsize",
3185
+ "hscan",
3186
+ "hgetall",
3187
+ "hkeys",
3188
+ "lrange",
3189
+ "sscan",
3190
+ "smembers",
3191
+ "xrange",
3192
+ "xrevrange",
3193
+ "zscan",
3194
+ "zrange"
3195
+ ]);
3179
3196
  function createAutoPipelineProxy(_redis, json) {
3180
3197
  const redis = _redis;
3181
3198
  if (!redis.autoPipelineExecutor) {
@@ -3190,7 +3207,8 @@ function createAutoPipelineProxy(_redis, json) {
3190
3207
  return createAutoPipelineProxy(redis2, true);
3191
3208
  }
3192
3209
  const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
3193
- if (commandInRedisButNotPipeline) {
3210
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
3211
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
3194
3212
  return redis2[command];
3195
3213
  }
3196
3214
  const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
@@ -4411,7 +4429,7 @@ var Redis = class {
4411
4429
  };
4412
4430
 
4413
4431
  // version.ts
4414
- var VERSION = "v1.34.8";
4432
+ var VERSION = "v1.34.9";
4415
4433
 
4416
4434
  export {
4417
4435
  error_exports,
package/cloudflare.js CHANGED
@@ -305,6 +305,23 @@ function merge(obj, key, value) {
305
305
  }
306
306
 
307
307
  // pkg/auto-pipeline.ts
308
+ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
309
+ "scan",
310
+ "keys",
311
+ "flushdb",
312
+ "flushall",
313
+ "dbsize",
314
+ "hscan",
315
+ "hgetall",
316
+ "hkeys",
317
+ "lrange",
318
+ "sscan",
319
+ "smembers",
320
+ "xrange",
321
+ "xrevrange",
322
+ "zscan",
323
+ "zrange"
324
+ ]);
308
325
  function createAutoPipelineProxy(_redis, json) {
309
326
  const redis = _redis;
310
327
  if (!redis.autoPipelineExecutor) {
@@ -319,7 +336,8 @@ function createAutoPipelineProxy(_redis, json) {
319
336
  return createAutoPipelineProxy(redis2, true);
320
337
  }
321
338
  const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
322
- if (commandInRedisButNotPipeline) {
339
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
340
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
323
341
  return redis2[command];
324
342
  }
325
343
  const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
@@ -4442,7 +4460,7 @@ var Redis = class {
4442
4460
  };
4443
4461
 
4444
4462
  // version.ts
4445
- var VERSION = "v1.34.8";
4463
+ var VERSION = "v1.34.9";
4446
4464
 
4447
4465
  // platforms/cloudflare.ts
4448
4466
  var Redis2 = class _Redis extends Redis {
package/cloudflare.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-5XANP4AV.mjs";
6
+ } from "./chunk-TZPYH7UX.mjs";
7
7
 
8
8
  // platforms/cloudflare.ts
9
9
  var Redis2 = class _Redis extends Redis {
package/fastly.js CHANGED
@@ -305,6 +305,23 @@ function merge(obj, key, value) {
305
305
  }
306
306
 
307
307
  // pkg/auto-pipeline.ts
308
+ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
309
+ "scan",
310
+ "keys",
311
+ "flushdb",
312
+ "flushall",
313
+ "dbsize",
314
+ "hscan",
315
+ "hgetall",
316
+ "hkeys",
317
+ "lrange",
318
+ "sscan",
319
+ "smembers",
320
+ "xrange",
321
+ "xrevrange",
322
+ "zscan",
323
+ "zrange"
324
+ ]);
308
325
  function createAutoPipelineProxy(_redis, json) {
309
326
  const redis = _redis;
310
327
  if (!redis.autoPipelineExecutor) {
@@ -319,7 +336,8 @@ function createAutoPipelineProxy(_redis, json) {
319
336
  return createAutoPipelineProxy(redis2, true);
320
337
  }
321
338
  const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
322
- if (commandInRedisButNotPipeline) {
339
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
340
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
323
341
  return redis2[command];
324
342
  }
325
343
  const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
@@ -4442,7 +4460,7 @@ var Redis = class {
4442
4460
  };
4443
4461
 
4444
4462
  // version.ts
4445
- var VERSION = "v1.34.8";
4463
+ var VERSION = "v1.34.9";
4446
4464
 
4447
4465
  // platforms/fastly.ts
4448
4466
  var Redis2 = class extends Redis {
package/fastly.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-5XANP4AV.mjs";
6
+ } from "./chunk-TZPYH7UX.mjs";
7
7
 
8
8
  // platforms/fastly.ts
9
9
  var Redis2 = class extends Redis {
package/nodejs.js CHANGED
@@ -305,6 +305,23 @@ function merge(obj, key, value) {
305
305
  }
306
306
 
307
307
  // pkg/auto-pipeline.ts
308
+ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
309
+ "scan",
310
+ "keys",
311
+ "flushdb",
312
+ "flushall",
313
+ "dbsize",
314
+ "hscan",
315
+ "hgetall",
316
+ "hkeys",
317
+ "lrange",
318
+ "sscan",
319
+ "smembers",
320
+ "xrange",
321
+ "xrevrange",
322
+ "zscan",
323
+ "zrange"
324
+ ]);
308
325
  function createAutoPipelineProxy(_redis, json) {
309
326
  const redis = _redis;
310
327
  if (!redis.autoPipelineExecutor) {
@@ -319,7 +336,8 @@ function createAutoPipelineProxy(_redis, json) {
319
336
  return createAutoPipelineProxy(redis2, true);
320
337
  }
321
338
  const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
322
- if (commandInRedisButNotPipeline) {
339
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
340
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
323
341
  return redis2[command];
324
342
  }
325
343
  const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
@@ -4442,7 +4460,7 @@ var Redis = class {
4442
4460
  };
4443
4461
 
4444
4462
  // version.ts
4445
- var VERSION = "v1.34.8";
4463
+ var VERSION = "v1.34.9";
4446
4464
 
4447
4465
  // platforms/nodejs.ts
4448
4466
  if (typeof atob === "undefined") {
package/nodejs.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-5XANP4AV.mjs";
6
+ } from "./chunk-TZPYH7UX.mjs";
7
7
 
8
8
  // platforms/nodejs.ts
9
9
  if (typeof atob === "undefined") {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@upstash/redis","version":"v1.34.8","main":"./nodejs.js","module":"./nodejs.mjs","types":"./nodejs.d.ts","exports":{".":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./node":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.js":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.mjs":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./fastly":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.js":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.mjs":{"import":"./fastly.mjs","require":"./fastly.js"}},"description":"An HTTP/REST based Redis client built on top of Upstash REST API.","repository":{"type":"git","url":"git+https://github.com/upstash/upstash-redis.git"},"keywords":["redis","database","serverless","edge","upstash"],"files":["./*"],"scripts":{"build":"tsup && cp package.json README.md LICENSE dist/","test":"bun test pkg","fmt":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --quiet --fix","format":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"","lint:fix":"eslint . -c .ts,.tsx,.js,.jsx --fix","commit":"cz","lint:format":"bun run lint:fix && bun run format","check-exports":"bun run build && cd dist && attw -P"},"author":"Andreas Thomas <dev@chronark.com>","license":"MIT","bugs":{"url":"https://github.com/upstash/upstash-redis/issues"},"homepage":"https://github.com/upstash/upstash-redis#readme","devDependencies":{"@biomejs/biome":"latest","@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@types/crypto-js":"^4.1.3","@typescript-eslint/eslint-plugin":"8.4.0","@typescript-eslint/parser":"8.4.0","bun-types":"1.0.33","eslint":"9.10.0","eslint-plugin-unicorn":"55.0.0","husky":"^9.1.1","prettier":"^3.3.3","tsup":"^8.2.3","typescript":"latest"},"dependencies":{"crypto-js":"^4.2.0"}}
1
+ {"name":"@upstash/redis","version":"v1.34.9","main":"./nodejs.js","module":"./nodejs.mjs","types":"./nodejs.d.ts","exports":{".":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./node":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.js":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.mjs":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./fastly":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.js":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.mjs":{"import":"./fastly.mjs","require":"./fastly.js"}},"description":"An HTTP/REST based Redis client built on top of Upstash REST API.","repository":{"type":"git","url":"git+https://github.com/upstash/upstash-redis.git"},"keywords":["redis","database","serverless","edge","upstash"],"files":["./*"],"scripts":{"build":"tsup && cp package.json README.md LICENSE dist/","test":"bun test pkg","fmt":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --quiet --fix","format":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"","lint:fix":"eslint . -c .ts,.tsx,.js,.jsx --fix","commit":"cz","lint:format":"bun run lint:fix && bun run format","check-exports":"bun run build && cd dist && attw -P"},"author":"Andreas Thomas <dev@chronark.com>","license":"MIT","bugs":{"url":"https://github.com/upstash/upstash-redis/issues"},"homepage":"https://github.com/upstash/upstash-redis#readme","devDependencies":{"@biomejs/biome":"latest","@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@types/crypto-js":"^4.1.3","@typescript-eslint/eslint-plugin":"8.4.0","@typescript-eslint/parser":"8.4.0","bun-types":"1.0.33","eslint":"9.10.0","eslint-plugin-unicorn":"55.0.0","husky":"^9.1.1","prettier":"^3.3.3","tsup":"^8.2.3","typescript":"latest"},"dependencies":{"crypto-js":"^4.2.0"}}