@mastra/libsql 0.11.1-alpha.0 → 0.11.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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +37 -0
- package/dist/index.cjs +4 -1
- package/dist/index.js +4 -1
- package/package.json +5 -5
- package/src/storage/index.ts +4 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/libsql@0.11.1
|
|
2
|
+
> @mastra/libsql@0.11.1 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 10836ms
|
|
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 12706ms
|
|
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[32m88.28 KB[39m
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 2514ms
|
|
22
|
+
[32mESM[39m [1mdist/index.js [22m[32m87.22 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 2514ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @mastra/libsql
|
|
2
2
|
|
|
3
|
+
## 0.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3cc50c7: Update mastra core peer dep version
|
|
8
|
+
- ce088f5: Update all peerdeps to latest core
|
|
9
|
+
- @mastra/core@0.11.1
|
|
10
|
+
|
|
11
|
+
## 0.11.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 7ba91fa: Throw mastra errors methods not implemented yet
|
|
16
|
+
- da168a4: increase the peer deps range
|
|
17
|
+
- Updated dependencies [f248d53]
|
|
18
|
+
- Updated dependencies [2affc57]
|
|
19
|
+
- Updated dependencies [66e13e3]
|
|
20
|
+
- Updated dependencies [edd9482]
|
|
21
|
+
- Updated dependencies [18344d7]
|
|
22
|
+
- Updated dependencies [9d372c2]
|
|
23
|
+
- Updated dependencies [40c2525]
|
|
24
|
+
- Updated dependencies [e473f27]
|
|
25
|
+
- Updated dependencies [032cb66]
|
|
26
|
+
- Updated dependencies [703ac71]
|
|
27
|
+
- Updated dependencies [a723d69]
|
|
28
|
+
- Updated dependencies [7827943]
|
|
29
|
+
- Updated dependencies [5889a31]
|
|
30
|
+
- Updated dependencies [bf1e7e7]
|
|
31
|
+
- Updated dependencies [65e3395]
|
|
32
|
+
- Updated dependencies [4933192]
|
|
33
|
+
- Updated dependencies [d1c77a4]
|
|
34
|
+
- Updated dependencies [bea9dd1]
|
|
35
|
+
- Updated dependencies [dcd4802]
|
|
36
|
+
- Updated dependencies [cbddd18]
|
|
37
|
+
- Updated dependencies [7ba91fa]
|
|
38
|
+
- @mastra/core@0.11.0
|
|
39
|
+
|
|
3
40
|
## 0.11.1-alpha.0
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2416,7 +2416,10 @@ var LibSQLStore = class extends storage.MastraStorage {
|
|
|
2416
2416
|
if (config.url.endsWith(":memory:")) {
|
|
2417
2417
|
this.shouldCacheInit = false;
|
|
2418
2418
|
}
|
|
2419
|
-
this.client = client.createClient({
|
|
2419
|
+
this.client = client.createClient({
|
|
2420
|
+
url: config.url,
|
|
2421
|
+
...config.authToken ? { authToken: config.authToken } : {}
|
|
2422
|
+
});
|
|
2420
2423
|
if (config.url.startsWith("file:") || config.url.includes(":memory:")) {
|
|
2421
2424
|
this.client.execute("PRAGMA journal_mode=WAL;").then(() => this.logger.debug("LibSQLStore: PRAGMA journal_mode=WAL set.")).catch((err) => this.logger.warn("LibSQLStore: Failed to set PRAGMA journal_mode=WAL.", err));
|
|
2422
2425
|
this.client.execute("PRAGMA busy_timeout = 5000;").then(() => this.logger.debug("LibSQLStore: PRAGMA busy_timeout=5000 set.")).catch((err) => this.logger.warn("LibSQLStore: Failed to set PRAGMA busy_timeout.", err));
|
package/dist/index.js
CHANGED
|
@@ -2414,7 +2414,10 @@ var LibSQLStore = class extends MastraStorage {
|
|
|
2414
2414
|
if (config.url.endsWith(":memory:")) {
|
|
2415
2415
|
this.shouldCacheInit = false;
|
|
2416
2416
|
}
|
|
2417
|
-
this.client = createClient({
|
|
2417
|
+
this.client = createClient({
|
|
2418
|
+
url: config.url,
|
|
2419
|
+
...config.authToken ? { authToken: config.authToken } : {}
|
|
2420
|
+
});
|
|
2418
2421
|
if (config.url.startsWith("file:") || config.url.includes(":memory:")) {
|
|
2419
2422
|
this.client.execute("PRAGMA journal_mode=WAL;").then(() => this.logger.debug("LibSQLStore: PRAGMA journal_mode=WAL set.")).catch((err) => this.logger.warn("LibSQLStore: Failed to set PRAGMA journal_mode=WAL.", err));
|
|
2420
2423
|
this.client.execute("PRAGMA busy_timeout = 5000;").then(() => this.logger.debug("LibSQLStore: PRAGMA busy_timeout=5000 set.")).catch((err) => this.logger.warn("LibSQLStore: Failed to set PRAGMA busy_timeout.", err));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"tsup": "^8.5.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^3.2.4",
|
|
32
|
-
"@internal/lint": "0.0.
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
32
|
+
"@internal/lint": "0.0.22",
|
|
33
|
+
"@internal/storage-test-utils": "0.0.18",
|
|
34
|
+
"@mastra/core": "0.11.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@mastra/core": ">=0.10.7-0 <0.
|
|
37
|
+
"@mastra/core": ">=0.10.7-0 <0.12.0-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
|
@@ -69,7 +69,10 @@ export class LibSQLStore extends MastraStorage {
|
|
|
69
69
|
this.shouldCacheInit = false;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
this.client = createClient({
|
|
72
|
+
this.client = createClient({
|
|
73
|
+
url: config.url,
|
|
74
|
+
...(config.authToken ? { authToken: config.authToken } : {}),
|
|
75
|
+
});
|
|
73
76
|
|
|
74
77
|
// Set PRAGMAs for better concurrency, especially for file-based databases
|
|
75
78
|
if (config.url.startsWith('file:') || config.url.includes(':memory:')) {
|