@vectorstores/upstash 0.1.6 → 0.1.7

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/dist/index.cjs CHANGED
@@ -18,7 +18,7 @@ var env = require('@vectorstores/env');
18
18
  * const vectorStore = new UpstashVectorStore({ namespace: "my-namespace" })
19
19
  * ```
20
20
  */ constructor(params){
21
- super(params), this.storesText = true;
21
+ super(), this.storesText = true;
22
22
  this.namespace = params?.namespace ?? "";
23
23
  this.maxBatchSize = params?.maxBatchSize ?? 1000;
24
24
  const token = params?.token ?? env.getEnv("UPSTASH_VECTOR_REST_TOKEN");
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, Metadata, TextNode, VectorStoreQuery, VectorStoreQueryResult, MetadataFilter, MetadataFilters } from '@vectorstores/core';
1
+ import { BaseVectorStore, BaseNode, Metadata, TextNode, VectorStoreQuery, VectorStoreQueryResult, MetadataFilter, MetadataFilters } from '@vectorstores/core';
2
2
  import { Index } from '@upstash/vector';
3
3
 
4
4
  type UpstashParams = {
@@ -6,7 +6,7 @@ type UpstashParams = {
6
6
  token?: string;
7
7
  endpoint?: string;
8
8
  maxBatchSize?: number;
9
- } & VectorStoreBaseParams;
9
+ };
10
10
  /**
11
11
  * Provides support for writing and querying vector data in Upstash.
12
12
  */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, Metadata, TextNode, VectorStoreQuery, VectorStoreQueryResult, MetadataFilter, MetadataFilters } from '@vectorstores/core';
1
+ import { BaseVectorStore, BaseNode, Metadata, TextNode, VectorStoreQuery, VectorStoreQueryResult, MetadataFilter, MetadataFilters } from '@vectorstores/core';
2
2
  import { Index } from '@upstash/vector';
3
3
 
4
4
  type UpstashParams = {
@@ -6,7 +6,7 @@ type UpstashParams = {
6
6
  token?: string;
7
7
  endpoint?: string;
8
8
  maxBatchSize?: number;
9
- } & VectorStoreBaseParams;
9
+ };
10
10
  /**
11
11
  * Provides support for writing and querying vector data in Upstash.
12
12
  */
@@ -1,4 +1,4 @@
1
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, Metadata, TextNode, VectorStoreQuery, VectorStoreQueryResult, MetadataFilter, MetadataFilters } from '@vectorstores/core';
1
+ import { BaseVectorStore, BaseNode, Metadata, TextNode, VectorStoreQuery, VectorStoreQueryResult, MetadataFilter, MetadataFilters } from '@vectorstores/core';
2
2
  import { Index } from '@upstash/vector';
3
3
 
4
4
  type UpstashParams = {
@@ -6,7 +6,7 @@ type UpstashParams = {
6
6
  token?: string;
7
7
  endpoint?: string;
8
8
  maxBatchSize?: number;
9
- } & VectorStoreBaseParams;
9
+ };
10
10
  /**
11
11
  * Provides support for writing and querying vector data in Upstash.
12
12
  */
@@ -16,7 +16,7 @@ import { getEnv } from '@vectorstores/env';
16
16
  * const vectorStore = new UpstashVectorStore({ namespace: "my-namespace" })
17
17
  * ```
18
18
  */ constructor(params){
19
- super(params), this.storesText = true;
19
+ super(), this.storesText = true;
20
20
  this.namespace = params?.namespace ?? "";
21
21
  this.maxBatchSize = params?.maxBatchSize ?? 1000;
22
22
  const token = params?.token ?? getEnv("UPSTASH_VECTOR_REST_TOKEN");
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { getEnv } from '@vectorstores/env';
16
16
  * const vectorStore = new UpstashVectorStore({ namespace: "my-namespace" })
17
17
  * ```
18
18
  */ constructor(params){
19
- super(params), this.storesText = true;
19
+ super(), this.storesText = true;
20
20
  this.namespace = params?.namespace ?? "";
21
21
  this.maxBatchSize = params?.maxBatchSize ?? 1000;
22
22
  const token = params?.token ?? getEnv("UPSTASH_VECTOR_REST_TOKEN");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vectorstores/upstash",
3
3
  "description": "Upstash Storage for vectorstores",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -34,11 +34,11 @@
34
34
  "directory": "packages/providers/storage/upstash"
35
35
  },
36
36
  "devDependencies": {
37
- "@vectorstores/core": "0.1.6",
37
+ "@vectorstores/core": "0.1.7",
38
38
  "@vectorstores/env": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@vectorstores/core": "0.1.6",
41
+ "@vectorstores/core": "0.1.7",
42
42
  "@vectorstores/env": "0.1.0"
43
43
  },
44
44
  "dependencies": {