@sprucelabs/chroma-data-store 0.1.0 → 0.1.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.
@@ -180,7 +180,7 @@ class ChromaDatabase {
180
180
  }
181
181
  async dropDatabase() {
182
182
  const collections = await this.client.listCollections();
183
- await Promise.all(collections.map((col) => this.dropCollection(col.name)));
183
+ await Promise.all(collections.map((col) => this.dropCollection(col)));
184
184
  }
185
185
  async findOne(collection, query, options, dbOptions) {
186
186
  const matches = await this.find(collection, query, { ...options, limit: 1 }, dbOptions);
@@ -220,7 +220,7 @@ export default class ChromaDatabase {
220
220
  dropDatabase() {
221
221
  return __awaiter(this, void 0, void 0, function* () {
222
222
  const collections = yield this.client.listCollections();
223
- yield Promise.all(collections.map((col) => this.dropCollection(col.name)));
223
+ yield Promise.all(collections.map((col) => this.dropCollection(col)));
224
224
  });
225
225
  }
226
226
  findOne(collection, query, options, dbOptions) {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "sprucebot",
14
14
  "sprucelabs"
15
15
  ],
16
- "version": "0.1.0",
16
+ "version": "0.1.2",
17
17
  "scripts": {
18
18
  "build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
19
19
  "build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
@@ -42,13 +42,13 @@
42
42
  "start.chroma.docker": "./support/start_chroma_docker.sh"
43
43
  },
44
44
  "devDependencies": {
45
- "@sprucelabs/esm-postbuild": "^6.0.533",
46
- "@sprucelabs/jest-json-reporter": "^8.0.558",
45
+ "@sprucelabs/esm-postbuild": "^6.0.534",
46
+ "@sprucelabs/jest-json-reporter": "^8.0.559",
47
47
  "@sprucelabs/resolve-path-aliases": "^2.0.523",
48
48
  "@sprucelabs/semantic-release": "^5.0.2",
49
49
  "@sprucelabs/test": "^9.0.64",
50
- "@sprucelabs/test-utils": "^5.1.529",
51
- "@types/node": "^22.10.2",
50
+ "@sprucelabs/test-utils": "^5.1.530",
51
+ "@types/node": "^22.10.3",
52
52
  "chokidar-cli": "^3.0.0",
53
53
  "eslint": "^9.17.0",
54
54
  "eslint-config-spruce": "^11.2.26",
@@ -66,7 +66,7 @@
66
66
  "jest": {
67
67
  "testRunner": "jest-circus/runner",
68
68
  "maxWorkers": 4,
69
- "testTimeout": 1000000,
69
+ "testTimeout": 10000000,
70
70
  "testEnvironment": "node",
71
71
  "testPathIgnorePatterns": [
72
72
  "<rootDir>/tmp/",
@@ -82,12 +82,12 @@
82
82
  }
83
83
  },
84
84
  "dependencies": {
85
- "@sprucelabs/data-stores": "^28.5.1",
85
+ "@sprucelabs/data-stores": "^28.5.3",
86
86
  "@sprucelabs/error": "^6.0.556",
87
87
  "@sprucelabs/schema": "^31.0.3",
88
- "@sprucelabs/spruce-core-schemas": "^40.1.586",
89
- "@sprucelabs/spruce-skill-utils": "^31.1.9",
90
- "chromadb": "^1.9.4",
88
+ "@sprucelabs/spruce-core-schemas": "^40.1.587",
89
+ "@sprucelabs/spruce-skill-utils": "^31.1.10",
90
+ "chromadb": "^1.10.0",
91
91
  "chromadb-default-embed": "^2.13.2"
92
92
  }
93
93
  }