@astrojs/db 0.19.0-beta.3 → 0.19.0-beta.4

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.
@@ -1,5 +1,5 @@
1
+ import * as clack from "@clack/prompts";
1
2
  import { sql } from "drizzle-orm";
2
- import prompts from "prompts";
3
3
  import { MIGRATION_VERSION } from "../../../consts.js";
4
4
  import { createClient } from "../../../db-client/libsql-node.js";
5
5
  import {
@@ -35,13 +35,12 @@ async function cmd({
35
35
  console.log(`Database schema is out of date.`);
36
36
  }
37
37
  if (isForceReset) {
38
- const { begin } = await prompts({
39
- type: "confirm",
40
- name: "begin",
38
+ const begin = await clack.confirm({
41
39
  message: `Reset your database? All of your data will be erased and your schema created from scratch.`,
42
- initial: false
40
+ initialValue: false,
41
+ withGuide: false
43
42
  });
44
- if (!begin) {
43
+ if (begin !== true) {
45
44
  console.log("Canceled.");
46
45
  process.exit(0);
47
46
  }
@@ -27,7 +27,7 @@ function printHelp({
27
27
  message.push(
28
28
  linebreak(),
29
29
  ` ${colors.bgGreen(colors.black(` ${commandName} `))} ${colors.green(
30
- `v${"0.19.0-beta.3"}`
30
+ `v${"0.19.0-beta.4"}`
31
31
  )} ${headline}`
32
32
  );
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/db",
3
- "version": "0.19.0-beta.3",
3
+ "version": "0.19.0-beta.4",
4
4
  "description": "Add libSQL support to your Astro site",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -63,24 +63,23 @@
63
63
  "astro-integration"
64
64
  ],
65
65
  "dependencies": {
66
+ "@clack/prompts": "^1.0.1",
66
67
  "@libsql/client": "^0.17.0",
67
68
  "deep-diff": "^1.0.2",
68
69
  "drizzle-orm": "^0.42.0",
69
70
  "nanoid": "^5.1.6",
70
71
  "piccolore": "^0.1.3",
71
- "prompts": "^2.4.2",
72
72
  "yargs-parser": "^22.0.0",
73
73
  "zod": "^4.3.6"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/deep-diff": "^1.0.5",
77
- "@types/prompts": "^2.4.9",
78
77
  "@types/yargs-parser": "^21.0.3",
79
78
  "cheerio": "1.2.0",
80
79
  "expect-type": "^1.3.0",
81
80
  "typescript": "^5.9.3",
82
81
  "vite": "^7.3.1",
83
- "astro": "6.0.0-beta.7",
82
+ "astro": "6.0.0-beta.12",
84
83
  "astro-scripts": "0.0.14"
85
84
  },
86
85
  "scripts": {