Skip to content

Commit 21c4645

Browse files
authored
Deno should use the node lib rather than web (#316)
This PR changes the Deno export in package.json to use the Node.js implementation instead of the web implementation. Deno's runtime environment more closely aligns with Node.js APIs for this particular library. While Deno typically uses web-standard APIs, our testing revealed that the Node.js implementation provides better compatibility and performance for Deno users in this specific case. This should give improved compatibility for Deno users, and fix issues where file system access is not available.
2 parents 109825a + 3de8877 commit 21c4645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/libsql-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"types": "./lib-esm/node.d.ts",
3131
"import": {
3232
"workerd": "./lib-esm/web.js",
33-
"deno": "./lib-esm/web.js",
33+
"deno": "./lib-esm/node.js",
3434
"edge-light": "./lib-esm/web.js",
3535
"netlify": "./lib-esm/web.js",
3636
"node": "./lib-esm/node.js",

0 commit comments

Comments
 (0)