@mastra/clickhouse 0.2.8 → 0.2.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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/clickhouse@0.2.8-alpha.0 build /home/runner/work/mastra/mastra/stores/clickhouse
2
+ > @mastra/clickhouse@0.2.9-alpha.0 build /home/runner/work/mastra/mastra/stores/clickhouse
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8609ms
9
+ TSC ⚡️ Build success in 9009ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.2
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.2
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 12006ms
16
+ DTS ⚡️ Build success in 11028ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 25.49 KB
21
- ESM ⚡️ Build success in 824ms
22
- CJS dist/index.cjs 25.66 KB
23
- CJS ⚡️ Build success in 824ms
20
+ CJS dist/index.cjs 25.65 KB
21
+ CJS ⚡️ Build success in 812ms
22
+ ESM dist/index.js 25.48 KB
23
+ ESM ⚡️ Build success in 813ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/clickhouse
2
2
 
3
+ ## 0.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a06aadc]
8
+ - @mastra/core@0.8.2
9
+
10
+ ## 0.2.9-alpha.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [a06aadc]
15
+ - @mastra/core@0.8.2-alpha.0
16
+
3
17
  ## 0.2.8
4
18
 
5
19
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -303,7 +303,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
303
303
  try {
304
304
  const keyEntries = Object.entries(keys);
305
305
  const conditions = keyEntries.map(
306
- ([key], index) => `"${key}" = {var_${key}:${COLUMN_TYPES[storage.TABLE_SCHEMAS[tableName]?.[key]?.type ?? "text"]}}`
306
+ ([key]) => `"${key}" = {var_${key}:${COLUMN_TYPES[storage.TABLE_SCHEMAS[tableName]?.[key]?.type ?? "text"]}}`
307
307
  ).join(" AND ");
308
308
  const values = keyEntries.reduce((acc, [key, value]) => {
309
309
  return { ...acc, [`var_${key}`]: value };
package/dist/index.js CHANGED
@@ -301,7 +301,7 @@ var ClickhouseStore = class extends MastraStorage {
301
301
  try {
302
302
  const keyEntries = Object.entries(keys);
303
303
  const conditions = keyEntries.map(
304
- ([key], index) => `"${key}" = {var_${key}:${COLUMN_TYPES[TABLE_SCHEMAS[tableName]?.[key]?.type ?? "text"]}}`
304
+ ([key]) => `"${key}" = {var_${key}:${COLUMN_TYPES[TABLE_SCHEMAS[tableName]?.[key]?.type ?? "text"]}}`
305
305
  ).join(" AND ");
306
306
  const values = keyEntries.reduce((acc, [key, value]) => {
307
307
  return { ...acc, [`var_${key}`]: value };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/clickhouse",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Clickhouse provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@clickhouse/client": "^1.11.0",
23
- "@mastra/core": "^0.8.1"
23
+ "@mastra/core": "^0.8.2"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@microsoft/api-extractor": "^7.52.1",
@@ -211,7 +211,6 @@ export class ClickhouseStore extends MastraStorage {
211
211
  attributes?: Record<string, string>;
212
212
  filters?: Record<string, any>;
213
213
  }): Promise<any[]> {
214
- let idx = 1;
215
214
  const limit = perPage;
216
215
  const offset = page * perPage;
217
216
 
@@ -399,7 +398,7 @@ export class ClickhouseStore extends MastraStorage {
399
398
  const keyEntries = Object.entries(keys);
400
399
  const conditions = keyEntries
401
400
  .map(
402
- ([key], index) =>
401
+ ([key]) =>
403
402
  `"${key}" = {var_${key}:${COLUMN_TYPES[TABLE_SCHEMAS[tableName as TABLE_NAMES]?.[key]?.type ?? 'text']}}`,
404
403
  )
405
404
  .join(' AND ');