Merge 'bindings/javascript: Rename to ' from Pekka Enberg

We already have a `@tursodatabase/sync` package so let's make the name
of the better-sqlite3 compatibility API package stand out.

Closes #2667
This commit is contained in:
Pekka Enberg
2025-08-19 16:35:23 +03:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
"type": "module",
"exports": {
".": "./dist/promise.js",
"./sync": "./dist/sync.js"
"./compat": "./dist/compat.js"
},
"files": [
"browser.js",
@@ -60,4 +60,4 @@
"node": "./index.js"
}
}
}
}

View File

@@ -516,7 +516,7 @@ const connect = async (path, options = {}) => {
}
const provider = process.env.PROVIDER;
if (provider === "turso") {
const { Database, SqliteError }= await import("@tursodatabase/database/sync");
const { Database, SqliteError }= await import("@tursodatabase/database/compat");
const db = new Database(path, options);
return [db, path, provider, SqliteError];
}