Skip to content

Commit

Permalink
Updated libsql client to 0.3.0 (#822)
Browse files Browse the repository at this point in the history
Co-authored-by: pilcrowOnPaper <[email protected]>
Co-authored-by: pilcrowOnPaper <[email protected]>
  • Loading branch information
3 people authored Jul 23, 2023
1 parent 4ba9450 commit d5fa369
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .auri/$6hmprern.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "@lucia-auth/adapter-sqlite" # package name
type: "major" # "major", "minor", "patch"
---

Require `@libsql/[email protected]`
6 changes: 3 additions & 3 deletions packages/adapter-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
".": "./dist/index.js"
},
"peerDependencies": {
"@libsql/client": "^0.3.0",
"better-sqlite3": "^8.0.0",
"@libsql/client": "^0.2.1",
"lucia": "2.0.0-beta.6"
"lucia": "2.0.0-beta.5"
},
"peerDependenciesMeta": {
"better-sqlite3": {
Expand All @@ -55,7 +55,7 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
"@libsql/client": "^0.2.1",
"@libsql/client": "^0.3.0",
"@lucia-auth/adapter-test": "latest",
"@miniflare/d1": "^2.14.0",
"@types/better-sqlite3": "^7.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-sqlite/src/drivers/libsql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const libsqlAdapter = (
sql: `INSERT INTO ${ESCAPED_KEY_TABLE_NAME} ( ${keyFields} ) VALUES ( ${keyValues} )`,
args: keyArgs
};
await db.batch("write", [insertUserQuery, insertKeyQuery]);
await db.batch([insertUserQuery, insertKeyQuery], "write");
} catch (e) {
const error = e as Partial<LibsqlError>;
if (
Expand Down

0 comments on commit d5fa369

Please sign in to comment.