@observablehq/notebook-kit 1.1.0-rc.10 → 1.1.0-rc.11

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/dist/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/observablehq/notebook-kit.git"
7
7
  },
8
- "version": "1.1.0-rc.10",
8
+ "version": "1.1.0-rc.11",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "test": "vitest",
@@ -65,10 +65,8 @@
65
65
  "devDependencies": {
66
66
  "@duckdb/node-api": "^1.3.2-alpha.26",
67
67
  "@eslint/js": "^9.29.0",
68
- "@types/better-sqlite3": "^7.6.13",
69
68
  "@types/jsdom": "^21.1.7",
70
69
  "@types/markdown-it": "^14.1.2",
71
- "better-sqlite3": "^12.2.0",
72
70
  "eslint": "^9.29.0",
73
71
  "globals": "^16.2.0",
74
72
  "htl": "^0.3.1",
@@ -81,7 +79,6 @@
81
79
  },
82
80
  "peerDependencies": {
83
81
  "@duckdb/node-api": "^1.3.2-alpha.26",
84
- "better-sqlite3": "^12.2.0",
85
82
  "postgres": "^3.4.7",
86
83
  "snowflake-sdk": "^2.1.3"
87
84
  },
@@ -89,9 +86,6 @@
89
86
  "@duckdb/node-api": {
90
87
  "optional": true
91
88
  },
92
- "better-sqlite3": {
93
- "optional": true
94
- },
95
89
  "postgres": {
96
90
  "optional": true
97
91
  },
@@ -1,11 +1,11 @@
1
1
  import { join } from "node:path";
2
- import Database from "better-sqlite3";
2
+ import { DatabaseSync } from "node:sqlite";
3
3
  export default function sqlite({ path = ":memory:" }, context) {
4
4
  if (path !== undefined)
5
5
  path = join(context.cwd, path);
6
6
  return async (strings, ...params) => {
7
7
  const date = new Date();
8
- const database = new Database(path);
8
+ const database = new DatabaseSync(path);
9
9
  try {
10
10
  const statement = database.prepare(strings.join("?"));
11
11
  const rows = statement.all(...params);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/observablehq/notebook-kit.git"
7
7
  },
8
- "version": "1.1.0-rc.10",
8
+ "version": "1.1.0-rc.11",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "test": "vitest",
@@ -65,10 +65,8 @@
65
65
  "devDependencies": {
66
66
  "@duckdb/node-api": "^1.3.2-alpha.26",
67
67
  "@eslint/js": "^9.29.0",
68
- "@types/better-sqlite3": "^7.6.13",
69
68
  "@types/jsdom": "^21.1.7",
70
69
  "@types/markdown-it": "^14.1.2",
71
- "better-sqlite3": "^12.2.0",
72
70
  "eslint": "^9.29.0",
73
71
  "globals": "^16.2.0",
74
72
  "htl": "^0.3.1",
@@ -81,7 +79,6 @@
81
79
  },
82
80
  "peerDependencies": {
83
81
  "@duckdb/node-api": "^1.3.2-alpha.26",
84
- "better-sqlite3": "^12.2.0",
85
82
  "postgres": "^3.4.7",
86
83
  "snowflake-sdk": "^2.1.3"
87
84
  },
@@ -89,9 +86,6 @@
89
86
  "@duckdb/node-api": {
90
87
  "optional": true
91
88
  },
92
- "better-sqlite3": {
93
- "optional": true
94
- },
95
89
  "postgres": {
96
90
  "optional": true
97
91
  },