@upstash/redis 1.36.0-rc.1 → 1.36.0-rc.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/{chunk-U5HO3NMB.mjs → chunk-2HN5OIX5.mjs} +150 -149
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +144 -87
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +144 -87
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +10 -72
- package/nodejs.d.ts +10 -72
- package/nodejs.js +152 -151
- package/nodejs.mjs +5 -5
- package/package.json +1 -1
- package/{zmscore-BVyzI3wx.d.mts → zmscore-DQw_6S0p.d.mts} +73 -53
- package/{zmscore-BVyzI3wx.d.ts → zmscore-DQw_6S0p.d.ts} +73 -53
|
@@ -424,55 +424,119 @@ function flattenSchema(schema, pathPrefix = []) {
|
|
|
424
424
|
}
|
|
425
425
|
return fields;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
427
|
+
function deserializeQueryResponse(rawResponse, options) {
|
|
428
|
+
const hasEmptySelect = options?.select && Object.keys(options.select).length === 0;
|
|
429
|
+
return rawResponse.map((itemRaw) => {
|
|
430
|
+
const raw = itemRaw;
|
|
431
|
+
const key = raw[0];
|
|
432
|
+
const score = raw[1];
|
|
433
|
+
const rawFields = raw[2];
|
|
434
|
+
if (hasEmptySelect) {
|
|
435
|
+
return { key, score };
|
|
436
|
+
}
|
|
437
|
+
if (!Array.isArray(rawFields) || rawFields.length === 0) {
|
|
438
|
+
return { key, score, data: {} };
|
|
439
|
+
}
|
|
440
|
+
const mergedFields = {};
|
|
441
|
+
for (const fieldRaw of rawFields) {
|
|
442
|
+
const fieldObj = kvArrayToObject(fieldRaw);
|
|
443
|
+
Object.assign(mergedFields, fieldObj);
|
|
444
|
+
}
|
|
445
|
+
if ("$" in mergedFields) {
|
|
446
|
+
const data2 = mergedFields["$"];
|
|
447
|
+
return { key, score, data: data2 };
|
|
448
|
+
}
|
|
449
|
+
const data = dotNotationToNested(mergedFields);
|
|
450
|
+
return { key, score, data };
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
function parseFieldInfo(fieldRaw) {
|
|
454
|
+
const fieldType = fieldRaw[1];
|
|
455
|
+
const options = fieldRaw.slice(2);
|
|
456
|
+
const fieldInfo = { type: fieldType };
|
|
457
|
+
for (const option of options) {
|
|
458
|
+
switch (option.toUpperCase()) {
|
|
459
|
+
case "NOTOKENIZE":
|
|
460
|
+
fieldInfo.noTokenize = true;
|
|
461
|
+
break;
|
|
462
|
+
case "NOSTEM":
|
|
463
|
+
fieldInfo.noStem = true;
|
|
464
|
+
break;
|
|
465
|
+
case "FAST":
|
|
466
|
+
fieldInfo.fast = true;
|
|
467
|
+
break;
|
|
446
468
|
}
|
|
447
469
|
}
|
|
448
|
-
return
|
|
470
|
+
return fieldInfo;
|
|
449
471
|
}
|
|
450
|
-
function
|
|
451
|
-
|
|
472
|
+
function deserializeDescribeResponse(rawResponse) {
|
|
473
|
+
const raw = kvArrayToObject(rawResponse);
|
|
474
|
+
const schema = {};
|
|
475
|
+
if (Array.isArray(raw.schema)) {
|
|
476
|
+
for (const fieldRaw of raw.schema) {
|
|
477
|
+
if (Array.isArray(fieldRaw) && fieldRaw.length >= 2) {
|
|
478
|
+
const fieldName = fieldRaw[0];
|
|
479
|
+
schema[fieldName] = parseFieldInfo(fieldRaw);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return {
|
|
484
|
+
name: raw.name,
|
|
485
|
+
dataType: raw.type.toLowerCase(),
|
|
486
|
+
prefixes: raw.prefixes,
|
|
487
|
+
...raw.language && { language: raw.language },
|
|
488
|
+
schema
|
|
489
|
+
};
|
|
452
490
|
}
|
|
453
491
|
function parseCountResponse(rawResponse) {
|
|
454
492
|
return typeof rawResponse === "number" ? rawResponse : parseInt(rawResponse, 10);
|
|
455
493
|
}
|
|
494
|
+
function kvArrayToObject(v) {
|
|
495
|
+
if (typeof v === "object" && v !== null && !Array.isArray(v)) return v;
|
|
496
|
+
if (!Array.isArray(v)) return {};
|
|
497
|
+
const obj = {};
|
|
498
|
+
for (let i = 0; i < v.length; i += 2) {
|
|
499
|
+
if (typeof v[i] === "string") obj[v[i]] = v[i + 1];
|
|
500
|
+
}
|
|
501
|
+
return obj;
|
|
502
|
+
}
|
|
503
|
+
function dotNotationToNested(obj) {
|
|
504
|
+
const result = {};
|
|
505
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
506
|
+
const parts = key.split(".");
|
|
507
|
+
let current = result;
|
|
508
|
+
for (let i = 0; i < parts.length - 1; i++) {
|
|
509
|
+
const part = parts[i];
|
|
510
|
+
if (!(part in current)) {
|
|
511
|
+
current[part] = {};
|
|
512
|
+
}
|
|
513
|
+
current = current[part];
|
|
514
|
+
}
|
|
515
|
+
current[parts[parts.length - 1]] = value;
|
|
516
|
+
}
|
|
517
|
+
return result;
|
|
518
|
+
}
|
|
456
519
|
|
|
457
520
|
// pkg/commands/search/command-builder.ts
|
|
458
|
-
function buildQueryCommand(redisCommand,
|
|
459
|
-
const
|
|
521
|
+
function buildQueryCommand(redisCommand, name, options) {
|
|
522
|
+
const query = JSON.stringify(options?.filter);
|
|
523
|
+
const command = [redisCommand, name, query];
|
|
460
524
|
if (options?.limit !== void 0) {
|
|
461
525
|
command.push("LIMIT", options.limit.toString());
|
|
462
526
|
}
|
|
463
527
|
if (options?.offset !== void 0) {
|
|
464
528
|
command.push("OFFSET", options.offset.toString());
|
|
465
529
|
}
|
|
466
|
-
if (options?.
|
|
530
|
+
if (options?.select && Object.keys(options.select).length === 0) {
|
|
467
531
|
command.push("NOCONTENT");
|
|
468
532
|
}
|
|
469
|
-
if (options?.
|
|
470
|
-
command.push("SORTBY"
|
|
471
|
-
|
|
472
|
-
command.push(
|
|
473
|
-
}
|
|
533
|
+
if (options?.orderBy) {
|
|
534
|
+
command.push("SORTBY");
|
|
535
|
+
Object.entries(options.orderBy).forEach(([field, direction]) => {
|
|
536
|
+
command.push(field, direction);
|
|
537
|
+
});
|
|
474
538
|
}
|
|
475
|
-
if (options
|
|
539
|
+
if (options?.highlight) {
|
|
476
540
|
command.push(
|
|
477
541
|
"HIGHLIGHT",
|
|
478
542
|
"FIELDS",
|
|
@@ -483,16 +547,20 @@ function buildQueryCommand(redisCommand, indexName, query, options) {
|
|
|
483
547
|
command.push("TAGS", options.highlight.preTag, options.highlight.postTag);
|
|
484
548
|
}
|
|
485
549
|
}
|
|
486
|
-
if (options &&
|
|
487
|
-
command.push(
|
|
550
|
+
if (options?.select && Object.keys(options.select).length > 0) {
|
|
551
|
+
command.push(
|
|
552
|
+
"RETURN",
|
|
553
|
+
Object.keys(options.select).length.toString(),
|
|
554
|
+
...Object.keys(options.select)
|
|
555
|
+
);
|
|
488
556
|
}
|
|
489
557
|
return command;
|
|
490
558
|
}
|
|
491
559
|
function buildCreateIndexCommand(props) {
|
|
492
|
-
const {
|
|
560
|
+
const { name, schema, dataType, prefix, language } = props;
|
|
493
561
|
const prefixArray = Array.isArray(prefix) ? prefix : [prefix];
|
|
494
562
|
const payload = [
|
|
495
|
-
|
|
563
|
+
name,
|
|
496
564
|
"ON",
|
|
497
565
|
dataType.toUpperCase(),
|
|
498
566
|
"PREFIX",
|
|
@@ -519,65 +587,58 @@ function buildCreateIndexCommand(props) {
|
|
|
519
587
|
|
|
520
588
|
// pkg/commands/search/search.ts
|
|
521
589
|
var SearchIndex = class {
|
|
522
|
-
|
|
590
|
+
name;
|
|
523
591
|
schema;
|
|
524
592
|
client;
|
|
525
|
-
constructor({
|
|
526
|
-
this.
|
|
593
|
+
constructor({ name, schema, client }) {
|
|
594
|
+
this.name = name;
|
|
527
595
|
this.schema = schema;
|
|
528
596
|
this.client = client;
|
|
529
597
|
}
|
|
530
598
|
async waitIndexing() {
|
|
531
|
-
|
|
599
|
+
const command = ["SEARCH.COMMIT", this.name];
|
|
532
600
|
const result = await new ExecCommand(command).exec(
|
|
533
601
|
this.client
|
|
534
602
|
);
|
|
535
603
|
return result;
|
|
536
604
|
}
|
|
537
605
|
async describe() {
|
|
538
|
-
|
|
606
|
+
const command = ["SEARCH.DESCRIBE", this.name];
|
|
539
607
|
const rawResult = await new ExecCommand(command).exec(
|
|
540
608
|
this.client
|
|
541
609
|
);
|
|
542
|
-
return
|
|
543
|
-
}
|
|
544
|
-
async query(
|
|
545
|
-
const
|
|
546
|
-
const command = buildQueryCommand(
|
|
547
|
-
"SEARCH.QUERY",
|
|
548
|
-
this.indexName,
|
|
549
|
-
queryString,
|
|
550
|
-
options
|
|
551
|
-
);
|
|
610
|
+
return deserializeDescribeResponse(rawResult);
|
|
611
|
+
}
|
|
612
|
+
async query(options) {
|
|
613
|
+
const command = buildQueryCommand("SEARCH.QUERY", this.name, options);
|
|
552
614
|
const rawResult = await new ExecCommand(command).exec(
|
|
553
615
|
this.client
|
|
554
616
|
);
|
|
555
|
-
return
|
|
617
|
+
return deserializeQueryResponse(rawResult, options);
|
|
556
618
|
}
|
|
557
|
-
async count(filter) {
|
|
558
|
-
const
|
|
559
|
-
const command = buildQueryCommand("SEARCH.COUNT", this.indexName, queryString);
|
|
619
|
+
async count({ filter }) {
|
|
620
|
+
const command = buildQueryCommand("SEARCH.COUNT", this.name, { filter });
|
|
560
621
|
const rawResult = await new ExecCommand(command).exec(
|
|
561
622
|
this.client
|
|
562
623
|
);
|
|
563
|
-
return parseCountResponse(rawResult);
|
|
624
|
+
return { count: parseCountResponse(rawResult) };
|
|
564
625
|
}
|
|
565
626
|
async drop() {
|
|
566
|
-
|
|
627
|
+
const command = ["SEARCH.DROP", this.name];
|
|
567
628
|
const result = await new ExecCommand(command).exec(
|
|
568
629
|
this.client
|
|
569
630
|
);
|
|
570
631
|
return result;
|
|
571
632
|
}
|
|
572
633
|
};
|
|
573
|
-
async function
|
|
574
|
-
const {
|
|
634
|
+
async function createIndex(props) {
|
|
635
|
+
const { name, schema, client } = props;
|
|
575
636
|
const createIndexCommand = buildCreateIndexCommand(props);
|
|
576
637
|
await new ExecCommand(createIndexCommand).exec(client);
|
|
577
|
-
return
|
|
638
|
+
return index(client, name, schema);
|
|
578
639
|
}
|
|
579
|
-
function
|
|
580
|
-
return new SearchIndex(
|
|
640
|
+
function index(client, name, schema) {
|
|
641
|
+
return new SearchIndex({ name, schema, client });
|
|
581
642
|
}
|
|
582
643
|
|
|
583
644
|
// pkg/commands/search/schema-builder.ts
|
|
@@ -603,21 +664,16 @@ var TextFieldBuilder = class _TextFieldBuilder {
|
|
|
603
664
|
} : "TEXT";
|
|
604
665
|
}
|
|
605
666
|
};
|
|
606
|
-
var NumericFieldBuilder = class
|
|
607
|
-
_fast;
|
|
667
|
+
var NumericFieldBuilder = class {
|
|
608
668
|
type;
|
|
609
|
-
constructor(type
|
|
669
|
+
constructor(type) {
|
|
610
670
|
this.type = type;
|
|
611
|
-
this._fast = fast;
|
|
612
|
-
}
|
|
613
|
-
fast() {
|
|
614
|
-
return new _NumericFieldBuilder(this.type, { fast: true });
|
|
615
671
|
}
|
|
616
672
|
[BUILD]() {
|
|
617
|
-
return
|
|
673
|
+
return {
|
|
618
674
|
type: this.type,
|
|
619
675
|
fast: true
|
|
620
|
-
}
|
|
676
|
+
};
|
|
621
677
|
}
|
|
622
678
|
};
|
|
623
679
|
var BoolFieldBuilder = class _BoolFieldBuilder {
|
|
@@ -651,74 +707,18 @@ var DateFieldBuilder = class _DateFieldBuilder {
|
|
|
651
707
|
}
|
|
652
708
|
};
|
|
653
709
|
var s = {
|
|
654
|
-
|
|
655
|
-
* Full-text search field (TEXT)
|
|
656
|
-
* @example
|
|
657
|
-
* s.text() // Simple text field
|
|
658
|
-
* s.text().noTokenize() // Exact phrase matching
|
|
659
|
-
* s.text().noStem() // Disable stemming
|
|
660
|
-
*/
|
|
661
|
-
text() {
|
|
710
|
+
string() {
|
|
662
711
|
return new TextFieldBuilder();
|
|
663
712
|
},
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
* Range: 0 to 2^64-1
|
|
667
|
-
* @example
|
|
668
|
-
* s.unsigned() // Simple unsigned field
|
|
669
|
-
* s.unsigned().fast() // Enable sorting and range queries
|
|
670
|
-
*/
|
|
671
|
-
unsignedInteger() {
|
|
672
|
-
return new NumericFieldBuilder("U64");
|
|
713
|
+
number(type = "F64") {
|
|
714
|
+
return new NumericFieldBuilder(type);
|
|
673
715
|
},
|
|
674
|
-
|
|
675
|
-
* Signed 64-bit integer (I64)
|
|
676
|
-
* Range: -2^63 to 2^63-1
|
|
677
|
-
* @example
|
|
678
|
-
* s.integer() // Simple integer field
|
|
679
|
-
* s.integer().fast() // Enable sorting and range queries
|
|
680
|
-
*/
|
|
681
|
-
integer() {
|
|
682
|
-
return new NumericFieldBuilder("I64");
|
|
683
|
-
},
|
|
684
|
-
/**
|
|
685
|
-
* 64-bit floating point (F64)
|
|
686
|
-
* @example
|
|
687
|
-
* s.float() // Simple float field
|
|
688
|
-
* s.float().fast() // Enable sorting and range queries
|
|
689
|
-
*/
|
|
690
|
-
float() {
|
|
691
|
-
return new NumericFieldBuilder("F64");
|
|
692
|
-
},
|
|
693
|
-
/**
|
|
694
|
-
* Boolean field (BOOL)
|
|
695
|
-
* @example
|
|
696
|
-
* s.bool() // Simple boolean field
|
|
697
|
-
* s.bool().fast() // Enable efficient filtering
|
|
698
|
-
*/
|
|
699
|
-
bool() {
|
|
716
|
+
boolean() {
|
|
700
717
|
return new BoolFieldBuilder();
|
|
701
718
|
},
|
|
702
|
-
/**
|
|
703
|
-
* ISO 8601 date field (DATE)
|
|
704
|
-
* @example
|
|
705
|
-
* s.date() // Simple date field
|
|
706
|
-
* s.date().fast() // Enable sorting and range queries
|
|
707
|
-
*/
|
|
708
719
|
date() {
|
|
709
720
|
return new DateFieldBuilder();
|
|
710
721
|
},
|
|
711
|
-
/**
|
|
712
|
-
* Create a string/JSON index schema (supports nesting)
|
|
713
|
-
* @example
|
|
714
|
-
* s.object({
|
|
715
|
-
* name: s.text(),
|
|
716
|
-
* profile: s.object({
|
|
717
|
-
* age: s.unsigned(),
|
|
718
|
-
* city: s.text()
|
|
719
|
-
* })
|
|
720
|
-
* })
|
|
721
|
-
*/
|
|
722
722
|
object(fields) {
|
|
723
723
|
const result = {};
|
|
724
724
|
for (const [key, value] of Object.entries(fields)) {
|
|
@@ -3102,7 +3102,7 @@ var Pipeline = class {
|
|
|
3102
3102
|
/**
|
|
3103
3103
|
* @see https://redis.io/commands/lset
|
|
3104
3104
|
*/
|
|
3105
|
-
lset = (key,
|
|
3105
|
+
lset = (key, index2, value) => this.chain(new LSetCommand([key, index2, value], this.commandOptions));
|
|
3106
3106
|
/**
|
|
3107
3107
|
* @see https://redis.io/commands/ltrim
|
|
3108
3108
|
*/
|
|
@@ -3630,7 +3630,7 @@ var AutoPipelineExecutor = class {
|
|
|
3630
3630
|
this.activePipeline = pipeline;
|
|
3631
3631
|
this.indexInCurrentPipeline = 0;
|
|
3632
3632
|
}
|
|
3633
|
-
const
|
|
3633
|
+
const index2 = this.indexInCurrentPipeline++;
|
|
3634
3634
|
executeWithPipeline(pipeline);
|
|
3635
3635
|
const pipelineDone = this.deferExecution().then(() => {
|
|
3636
3636
|
if (!this.pipelinePromises.has(pipeline)) {
|
|
@@ -3642,7 +3642,7 @@ var AutoPipelineExecutor = class {
|
|
|
3642
3642
|
return this.pipelinePromises.get(pipeline);
|
|
3643
3643
|
});
|
|
3644
3644
|
const results = await pipelineDone;
|
|
3645
|
-
const commandResult = results[
|
|
3645
|
+
const commandResult = results[index2];
|
|
3646
3646
|
if (commandResult.error) {
|
|
3647
3647
|
throw new UpstashError(`Command failed: ${commandResult.error}`);
|
|
3648
3648
|
}
|
|
@@ -4149,18 +4149,19 @@ var Redis = class {
|
|
|
4149
4149
|
createScript(script, opts) {
|
|
4150
4150
|
return opts?.readonly ? new ScriptRO(this, script) : new Script(this, script);
|
|
4151
4151
|
}
|
|
4152
|
-
|
|
4153
|
-
return
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4152
|
+
get search() {
|
|
4153
|
+
return {
|
|
4154
|
+
createIndex: (props) => {
|
|
4155
|
+
return createIndex({
|
|
4156
|
+
...props,
|
|
4157
|
+
client: this.client
|
|
4158
|
+
});
|
|
4159
|
+
},
|
|
4160
|
+
index: (name, schema) => {
|
|
4161
|
+
return index(this.client, name, schema);
|
|
4162
|
+
}
|
|
4163
|
+
};
|
|
4164
|
+
}
|
|
4164
4165
|
/**
|
|
4165
4166
|
* Create a new pipeline that allows you to send requests in bulk.
|
|
4166
4167
|
*
|
|
@@ -4497,7 +4498,7 @@ var Redis = class {
|
|
|
4497
4498
|
/**
|
|
4498
4499
|
* @see https://redis.io/commands/lset
|
|
4499
4500
|
*/
|
|
4500
|
-
lset = (key,
|
|
4501
|
+
lset = (key, index2, value) => new LSetCommand([key, index2, value], this.opts).exec(this.client);
|
|
4501
4502
|
/**
|
|
4502
4503
|
* @see https://redis.io/commands/ltrim
|
|
4503
4504
|
*/
|
|
@@ -4868,13 +4869,13 @@ var Redis = class {
|
|
|
4868
4869
|
};
|
|
4869
4870
|
|
|
4870
4871
|
// version.ts
|
|
4871
|
-
var VERSION = "v1.36.0-rc.
|
|
4872
|
+
var VERSION = "v1.36.0-rc.3";
|
|
4872
4873
|
|
|
4873
4874
|
export {
|
|
4874
4875
|
error_exports,
|
|
4875
4876
|
HttpClient,
|
|
4876
|
-
|
|
4877
|
-
|
|
4877
|
+
createIndex,
|
|
4878
|
+
index,
|
|
4878
4879
|
s,
|
|
4879
4880
|
Redis,
|
|
4880
4881
|
VERSION
|
package/cloudflare.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClientConfig, R as RedisOptions,
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand,
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, b as RequesterConfig, c as Redis$1 } from './zmscore-DQw_6S0p.mjs';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, g as BitOpCommand, h as BitPosCommand, C as CopyCommand, D as DBSizeCommand, j as DecrByCommand, i as DecrCommand, k as DelCommand, E as EchoCommand, m as EvalCommand, l as EvalROCommand, o as EvalshaCommand, n as EvalshaROCommand, p as ExistsCommand, s as ExpireAtCommand, q as ExpireCommand, r as ExpireOption, F as FlushAllCommand, t as FlushDBCommand, G as GeoAddCommand, u as GeoAddCommandOptions, w as GeoDistCommand, x as GeoHashCommand, v as GeoMember, y as GeoPosCommand, z as GeoSearchCommand, I as GeoSearchStoreCommand, K as GetBitCommand, J as GetCommand, L as GetDelCommand, M as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HIncrByCommand, a5 as HIncrByFloatCommand, a6 as HKeysCommand, a7 as HLenCommand, a8 as HMGetCommand, a9 as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, aa as HRandFieldCommand, ab as HScanCommand, ac as HSetCommand, ad as HSetNXCommand, ae as HStrLenCommand, Y as HTtlCommand, af as HValsCommand, ah as IncrByCommand, ai as IncrByFloatCommand, ag as IncrCommand, aj as JsonArrAppendCommand, ak as JsonArrIndexCommand, al as JsonArrInsertCommand, am as JsonArrLenCommand, an as JsonArrPopCommand, ao as JsonArrTrimCommand, ap as JsonClearCommand, aq as JsonDelCommand, ar as JsonForgetCommand, as as JsonGetCommand, au as JsonMGetCommand, at as JsonMergeCommand, av as JsonNumIncrByCommand, aw as JsonNumMultByCommand, ax as JsonObjKeysCommand, ay as JsonObjLenCommand, az as JsonRespCommand, aA as JsonSetCommand, aB as JsonStrAppendCommand, aC as JsonStrLenCommand, aD as JsonToggleCommand, aE as JsonTypeCommand, aF as KeysCommand, aG as LIndexCommand, aH as LInsertCommand, aI as LLenCommand, aJ as LMoveCommand, aK as LPopCommand, aL as LPushCommand, aM as LPushXCommand, aN as LRangeCommand, aO as LRemCommand, aP as LSetCommand, aQ as LTrimCommand, aR as MGetCommand, aS as MSetCommand, aT as MSetNXCommand, aW as PExpireAtCommand, aV as PExpireCommand, aY as PSetEXCommand, aZ as PTtlCommand, aU as PersistCommand, aX as PingCommand, P as Pipeline, a_ as PublishCommand, b2 as RPopCommand, b3 as RPushCommand, b4 as RPushXCommand, a$ as RandomKeyCommand, b0 as RenameCommand, b1 as RenameNXCommand, d as Requester, b5 as SAddCommand, b8 as SCardCommand, bc as SDiffCommand, bd as SDiffStoreCommand, bk as SInterCommand, bl as SInterStoreCommand, bm as SIsMemberCommand, bo as SMIsMemberCommand, bn as SMembersCommand, bp as SMoveCommand, bq as SPopCommand, br as SRandMemberCommand, bs as SRemCommand, bt as SScanCommand, bv as SUnionCommand, bw as SUnionStoreCommand, b6 as ScanCommand, b7 as ScanCommandOptions, bF as ScoreMember, b9 as ScriptExistsCommand, ba as ScriptFlushCommand, bb as ScriptLoadCommand, bg as SetBitCommand, be as SetCommand, bf as SetCommandOptions, bh as SetExCommand, bi as SetNxCommand, bj as SetRangeCommand, bu as StrLenCommand, bx as TimeCommand, by as TouchCommand, bz as TtlCommand, bA as Type, bB as TypeCommand, bC as UnlinkCommand, U as UpstashRequest, f as UpstashResponse, bD as XAddCommand, bE as XRangeCommand, bH as ZAddCommand, bG as ZAddCommandOptions, bI as ZCardCommand, bJ as ZCountCommand, bK as ZDiffStoreCommand, bL as ZIncrByCommand, bM as ZInterStoreCommand, bN as ZInterStoreCommandOptions, bO as ZLexCountCommand, bP as ZMScoreCommand, bQ as ZPopMaxCommand, bR as ZPopMinCommand, bS as ZRangeCommand, bT as ZRangeCommandOptions, bU as ZRankCommand, bV as ZRemCommand, bW as ZRemRangeByLexCommand, bX as ZRemRangeByRankCommand, bY as ZRemRangeByScoreCommand, bZ as ZRevRankCommand, b_ as ZScanCommand, b$ as ZScoreCommand, c0 as ZUnionCommand, c1 as ZUnionCommandOptions, c2 as ZUnionStoreCommand, c3 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DQw_6S0p.mjs';
|
|
3
3
|
|
|
4
4
|
type Env = {
|
|
5
5
|
UPSTASH_DISABLE_TELEMETRY?: string;
|
package/cloudflare.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClientConfig, R as RedisOptions,
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand,
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, b as RequesterConfig, c as Redis$1 } from './zmscore-DQw_6S0p.js';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, g as BitOpCommand, h as BitPosCommand, C as CopyCommand, D as DBSizeCommand, j as DecrByCommand, i as DecrCommand, k as DelCommand, E as EchoCommand, m as EvalCommand, l as EvalROCommand, o as EvalshaCommand, n as EvalshaROCommand, p as ExistsCommand, s as ExpireAtCommand, q as ExpireCommand, r as ExpireOption, F as FlushAllCommand, t as FlushDBCommand, G as GeoAddCommand, u as GeoAddCommandOptions, w as GeoDistCommand, x as GeoHashCommand, v as GeoMember, y as GeoPosCommand, z as GeoSearchCommand, I as GeoSearchStoreCommand, K as GetBitCommand, J as GetCommand, L as GetDelCommand, M as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HIncrByCommand, a5 as HIncrByFloatCommand, a6 as HKeysCommand, a7 as HLenCommand, a8 as HMGetCommand, a9 as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, aa as HRandFieldCommand, ab as HScanCommand, ac as HSetCommand, ad as HSetNXCommand, ae as HStrLenCommand, Y as HTtlCommand, af as HValsCommand, ah as IncrByCommand, ai as IncrByFloatCommand, ag as IncrCommand, aj as JsonArrAppendCommand, ak as JsonArrIndexCommand, al as JsonArrInsertCommand, am as JsonArrLenCommand, an as JsonArrPopCommand, ao as JsonArrTrimCommand, ap as JsonClearCommand, aq as JsonDelCommand, ar as JsonForgetCommand, as as JsonGetCommand, au as JsonMGetCommand, at as JsonMergeCommand, av as JsonNumIncrByCommand, aw as JsonNumMultByCommand, ax as JsonObjKeysCommand, ay as JsonObjLenCommand, az as JsonRespCommand, aA as JsonSetCommand, aB as JsonStrAppendCommand, aC as JsonStrLenCommand, aD as JsonToggleCommand, aE as JsonTypeCommand, aF as KeysCommand, aG as LIndexCommand, aH as LInsertCommand, aI as LLenCommand, aJ as LMoveCommand, aK as LPopCommand, aL as LPushCommand, aM as LPushXCommand, aN as LRangeCommand, aO as LRemCommand, aP as LSetCommand, aQ as LTrimCommand, aR as MGetCommand, aS as MSetCommand, aT as MSetNXCommand, aW as PExpireAtCommand, aV as PExpireCommand, aY as PSetEXCommand, aZ as PTtlCommand, aU as PersistCommand, aX as PingCommand, P as Pipeline, a_ as PublishCommand, b2 as RPopCommand, b3 as RPushCommand, b4 as RPushXCommand, a$ as RandomKeyCommand, b0 as RenameCommand, b1 as RenameNXCommand, d as Requester, b5 as SAddCommand, b8 as SCardCommand, bc as SDiffCommand, bd as SDiffStoreCommand, bk as SInterCommand, bl as SInterStoreCommand, bm as SIsMemberCommand, bo as SMIsMemberCommand, bn as SMembersCommand, bp as SMoveCommand, bq as SPopCommand, br as SRandMemberCommand, bs as SRemCommand, bt as SScanCommand, bv as SUnionCommand, bw as SUnionStoreCommand, b6 as ScanCommand, b7 as ScanCommandOptions, bF as ScoreMember, b9 as ScriptExistsCommand, ba as ScriptFlushCommand, bb as ScriptLoadCommand, bg as SetBitCommand, be as SetCommand, bf as SetCommandOptions, bh as SetExCommand, bi as SetNxCommand, bj as SetRangeCommand, bu as StrLenCommand, bx as TimeCommand, by as TouchCommand, bz as TtlCommand, bA as Type, bB as TypeCommand, bC as UnlinkCommand, U as UpstashRequest, f as UpstashResponse, bD as XAddCommand, bE as XRangeCommand, bH as ZAddCommand, bG as ZAddCommandOptions, bI as ZCardCommand, bJ as ZCountCommand, bK as ZDiffStoreCommand, bL as ZIncrByCommand, bM as ZInterStoreCommand, bN as ZInterStoreCommandOptions, bO as ZLexCountCommand, bP as ZMScoreCommand, bQ as ZPopMaxCommand, bR as ZPopMinCommand, bS as ZRangeCommand, bT as ZRangeCommandOptions, bU as ZRankCommand, bV as ZRemCommand, bW as ZRemRangeByLexCommand, bX as ZRemRangeByRankCommand, bY as ZRemRangeByScoreCommand, bZ as ZRevRankCommand, b_ as ZScanCommand, b$ as ZScoreCommand, c0 as ZUnionCommand, c1 as ZUnionCommandOptions, c2 as ZUnionStoreCommand, c3 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DQw_6S0p.js';
|
|
3
3
|
|
|
4
4
|
type Env = {
|
|
5
5
|
UPSTASH_DISABLE_TELEMETRY?: string;
|