@mastra/libsql 0.10.2-alpha.2 → 0.10.2-alpha.4
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +6 -9
- package/dist/index.js +6 -9
- package/package.json +4 -4
- package/src/storage/index.ts +6 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/libsql@0.10.2-alpha.
|
|
2
|
+
> @mastra/libsql@0.10.2-alpha.4 build /home/runner/work/mastra/mastra/stores/libsql
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 9567ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/libsql/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/libsql/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 10708ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m58.84 KB[39m
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 1981ms
|
|
22
|
+
[32mESM[39m [1mdist/index.js [22m[32m58.55 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 1985ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/libsql
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 66f4424: Update peerdeps
|
|
8
|
+
|
|
9
|
+
## 0.10.2-alpha.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e0f9201: change how dedupe works for libsql and pg
|
|
14
|
+
- Updated dependencies [925ab94]
|
|
15
|
+
- @mastra/core@0.10.4-alpha.3
|
|
16
|
+
|
|
3
17
|
## 0.10.2-alpha.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1192,15 +1192,12 @@ var LibSQLStore = class extends storage.MastraStorage {
|
|
|
1192
1192
|
const finalQuery = unionQueries.join(" UNION ALL ") + ' ORDER BY "createdAt" ASC';
|
|
1193
1193
|
const includedResult = await this.client.execute({ sql: finalQuery, args: params });
|
|
1194
1194
|
const includedRows = includedResult.rows?.map((row) => this.parseRow(row));
|
|
1195
|
-
const
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
{}
|
|
1202
|
-
)
|
|
1203
|
-
);
|
|
1195
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1196
|
+
const dedupedRows = includedRows.filter((row) => {
|
|
1197
|
+
if (seen.has(row.id)) return false;
|
|
1198
|
+
seen.add(row.id);
|
|
1199
|
+
return true;
|
|
1200
|
+
});
|
|
1204
1201
|
return dedupedRows;
|
|
1205
1202
|
}
|
|
1206
1203
|
async getMessages({
|
package/dist/index.js
CHANGED
|
@@ -1190,15 +1190,12 @@ var LibSQLStore = class extends MastraStorage {
|
|
|
1190
1190
|
const finalQuery = unionQueries.join(" UNION ALL ") + ' ORDER BY "createdAt" ASC';
|
|
1191
1191
|
const includedResult = await this.client.execute({ sql: finalQuery, args: params });
|
|
1192
1192
|
const includedRows = includedResult.rows?.map((row) => this.parseRow(row));
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
{}
|
|
1200
|
-
)
|
|
1201
|
-
);
|
|
1193
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1194
|
+
const dedupedRows = includedRows.filter((row) => {
|
|
1195
|
+
if (seen.has(row.id)) return false;
|
|
1196
|
+
seen.add(row.id);
|
|
1197
|
+
return true;
|
|
1198
|
+
});
|
|
1202
1199
|
return dedupedRows;
|
|
1203
1200
|
}
|
|
1204
1201
|
async getMessages({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "0.10.2-alpha.
|
|
3
|
+
"version": "0.10.2-alpha.4",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^3.2.2",
|
|
32
32
|
"@internal/lint": "0.0.10",
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
33
|
+
"@internal/storage-test-utils": "0.0.6",
|
|
34
|
+
"@mastra/core": "0.10.4-alpha.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@mastra/core": "
|
|
37
|
+
"@mastra/core": ">=0.10.4-0 <0.11.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|
package/src/storage/index.ts
CHANGED
|
@@ -554,15 +554,12 @@ export class LibSQLStore extends MastraStorage {
|
|
|
554
554
|
const finalQuery = unionQueries.join(' UNION ALL ') + ' ORDER BY "createdAt" ASC';
|
|
555
555
|
const includedResult = await this.client.execute({ sql: finalQuery, args: params });
|
|
556
556
|
const includedRows = includedResult.rows?.map(row => this.parseRow(row));
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
{} as Record<string, MastraMessageV2>,
|
|
564
|
-
),
|
|
565
|
-
);
|
|
557
|
+
const seen = new Set<string>();
|
|
558
|
+
const dedupedRows = includedRows.filter(row => {
|
|
559
|
+
if (seen.has(row.id)) return false;
|
|
560
|
+
seen.add(row.id);
|
|
561
|
+
return true;
|
|
562
|
+
});
|
|
566
563
|
return dedupedRows;
|
|
567
564
|
}
|
|
568
565
|
|