@vectorstores/astra 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
@@ -6,7 +6,7 @@ var env = require('@vectorstores/env');
6
6
 
7
7
  class AstraDBVectorStore extends core.BaseVectorStore {
8
8
  constructor(init){
9
- super(init), this.storesText = true, this.flatMetadata = true;
9
+ super(), this.storesText = true, this.flatMetadata = true;
10
10
  const token = init?.params?.token ?? env.getEnv("ASTRA_DB_APPLICATION_TOKEN");
11
11
  const endpoint = init?.params?.endpoint ?? env.getEnv("ASTRA_DB_API_ENDPOINT");
12
12
  if (!token) {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Db, DataAPIClient, Collection } from '@datastax/astra-db-ts';
2
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
+ import { BaseVectorStore, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
3
3
 
4
4
  declare class AstraDBVectorStore extends BaseVectorStore {
5
5
  storesText: boolean;
@@ -15,7 +15,7 @@ declare class AstraDBVectorStore extends BaseVectorStore {
15
15
  endpoint: string;
16
16
  namespace?: string;
17
17
  };
18
- } & VectorStoreBaseParams);
18
+ });
19
19
  /**
20
20
  * Create a new collection in your Astra DB vector database and connects to it.
21
21
  * You must call this method or `connect` before adding, deleting, or querying.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Db, DataAPIClient, Collection } from '@datastax/astra-db-ts';
2
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
+ import { BaseVectorStore, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
3
3
 
4
4
  declare class AstraDBVectorStore extends BaseVectorStore {
5
5
  storesText: boolean;
@@ -15,7 +15,7 @@ declare class AstraDBVectorStore extends BaseVectorStore {
15
15
  endpoint: string;
16
16
  namespace?: string;
17
17
  };
18
- } & VectorStoreBaseParams);
18
+ });
19
19
  /**
20
20
  * Create a new collection in your Astra DB vector database and connects to it.
21
21
  * You must call this method or `connect` before adding, deleting, or querying.
@@ -1,5 +1,5 @@
1
1
  import { Db, DataAPIClient, Collection } from '@datastax/astra-db-ts';
2
- import { BaseVectorStore, VectorStoreBaseParams, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
2
+ import { BaseVectorStore, BaseNode, VectorStoreQuery, VectorStoreQueryResult } from '@vectorstores/core';
3
3
 
4
4
  declare class AstraDBVectorStore extends BaseVectorStore {
5
5
  storesText: boolean;
@@ -15,7 +15,7 @@ declare class AstraDBVectorStore extends BaseVectorStore {
15
15
  endpoint: string;
16
16
  namespace?: string;
17
17
  };
18
- } & VectorStoreBaseParams);
18
+ });
19
19
  /**
20
20
  * Create a new collection in your Astra DB vector database and connects to it.
21
21
  * You must call this method or `connect` before adding, deleting, or querying.
@@ -4,7 +4,7 @@ import { getEnv } from '@vectorstores/env';
4
4
 
5
5
  class AstraDBVectorStore extends BaseVectorStore {
6
6
  constructor(init){
7
- super(init), this.storesText = true, this.flatMetadata = true;
7
+ super(), this.storesText = true, this.flatMetadata = true;
8
8
  const token = init?.params?.token ?? getEnv("ASTRA_DB_APPLICATION_TOKEN");
9
9
  const endpoint = init?.params?.endpoint ?? getEnv("ASTRA_DB_API_ENDPOINT");
10
10
  if (!token) {
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { getEnv } from '@vectorstores/env';
4
4
 
5
5
  class AstraDBVectorStore extends BaseVectorStore {
6
6
  constructor(init){
7
- super(init), this.storesText = true, this.flatMetadata = true;
7
+ super(), this.storesText = true, this.flatMetadata = true;
8
8
  const token = init?.params?.token ?? getEnv("ASTRA_DB_APPLICATION_TOKEN");
9
9
  const endpoint = init?.params?.endpoint ?? getEnv("ASTRA_DB_API_ENDPOINT");
10
10
  if (!token) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vectorstores/astra",
3
3
  "description": "Astra 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/astra"
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": {