@mastra/clickhouse 0.3.4 → 0.3.5-alpha.0

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.3.4-alpha.4 build /home/runner/work/mastra/mastra/stores/clickhouse
2
+ > @mastra/clickhouse@0.3.5-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 8699ms
9
+ TSC ⚡️ Build success in 7673ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
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.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/clickhouse/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 11492ms
16
+ DTS ⚡️ Build success in 10881ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/index.js 27.76 KB
21
- ESM ⚡️ Build success in 961ms
22
- CJS dist/index.cjs 28.00 KB
23
- CJS ⚡️ Build success in 961ms
20
+ ESM dist/index.js 27.77 KB
21
+ ESM ⚡️ Build success in 1010ms
22
+ CJS dist/index.cjs 28.01 KB
23
+ CJS ⚡️ Build success in 1009ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/clickhouse
2
2
 
3
+ ## 0.3.5-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - eabdcd9: [MASTRA-3451] SQL Injection Protection
8
+ - Updated dependencies [f53a6ac]
9
+ - Updated dependencies [eabdcd9]
10
+ - Updated dependencies [90be034]
11
+ - Updated dependencies [99f050a]
12
+ - Updated dependencies [d0ee3c6]
13
+ - Updated dependencies [23f258c]
14
+ - Updated dependencies [2672a05]
15
+ - @mastra/core@0.9.5-alpha.0
16
+
3
17
  ## 0.3.4
4
18
 
5
19
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -490,7 +490,7 @@ var ClickhouseStore = class extends storage.MastraStorage {
490
490
  async deleteThread({ threadId }) {
491
491
  try {
492
492
  await this.db.command({
493
- query: `DELETE FROM "${storage.TABLE_MESSAGES}" WHERE thread_id = '${threadId}';`,
493
+ query: `DELETE FROM "${storage.TABLE_MESSAGES}" WHERE thread_id = {var_thread_id:String};`,
494
494
  query_params: { var_thread_id: threadId },
495
495
  clickhouse_settings: {
496
496
  output_format_json_quote_64bit_integers: 0
package/dist/index.js CHANGED
@@ -488,7 +488,7 @@ var ClickhouseStore = class extends MastraStorage {
488
488
  async deleteThread({ threadId }) {
489
489
  try {
490
490
  await this.db.command({
491
- query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = '${threadId}';`,
491
+ query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = {var_thread_id:String};`,
492
492
  query_params: { var_thread_id: threadId },
493
493
  clickhouse_settings: {
494
494
  output_format_json_quote_64bit_integers: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/clickhouse",
3
- "version": "0.3.4",
3
+ "version": "0.3.5-alpha.0",
4
4
  "description": "Clickhouse provider for Mastra - includes db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "@clickhouse/client": "^1.11.0",
24
- "@mastra/core": "^0.9.4"
24
+ "@mastra/core": "^0.9.5-alpha.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@microsoft/api-extractor": "^7.52.5",
@@ -625,7 +625,7 @@ export class ClickhouseStore extends MastraStorage {
625
625
  try {
626
626
  // First delete all messages associated with this thread
627
627
  await this.db.command({
628
- query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = '${threadId}';`,
628
+ query: `DELETE FROM "${TABLE_MESSAGES}" WHERE thread_id = {var_thread_id:String};`,
629
629
  query_params: { var_thread_id: threadId },
630
630
  clickhouse_settings: {
631
631
  output_format_json_quote_64bit_integers: 0,