d1s 0.2.10 → 0.2.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.
Files changed (159) hide show
  1. package/dist/.next/.next/BUILD_ID +1 -1
  2. package/dist/.next/.next/app-build-manifest.json +21 -21
  3. package/dist/.next/.next/app-path-routes-manifest.json +1 -1
  4. package/dist/.next/.next/build-manifest.json +2 -2
  5. package/dist/.next/.next/cache/.rscinfo +1 -1
  6. package/dist/.next/.next/cache/.tsbuildinfo +1 -1
  7. package/dist/.next/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/dist/.next/.next/cache/webpack/client-production/1.pack +0 -0
  9. package/dist/.next/.next/cache/webpack/client-production/2.pack +0 -0
  10. package/dist/.next/.next/cache/webpack/client-production/3.pack +0 -0
  11. package/dist/.next/.next/cache/webpack/client-production/index.pack +0 -0
  12. package/dist/.next/.next/cache/webpack/client-production/index.pack.old +0 -0
  13. package/dist/.next/.next/cache/webpack/edge-server-production/index.pack +0 -0
  14. package/dist/.next/.next/cache/webpack/server-production/0.pack +0 -0
  15. package/dist/.next/.next/cache/webpack/server-production/1.pack +0 -0
  16. package/dist/.next/.next/cache/webpack/server-production/2.pack +0 -0
  17. package/dist/.next/.next/cache/webpack/server-production/index.pack +0 -0
  18. package/dist/.next/.next/cache/webpack/server-production/index.pack.old +0 -0
  19. package/dist/.next/.next/next-minimal-server.js.nft.json +1 -1
  20. package/dist/.next/.next/next-server.js.nft.json +1 -1
  21. package/dist/.next/.next/prerender-manifest.json +1 -1
  22. package/dist/.next/.next/server/app/_not-found/page.js +1 -1
  23. package/dist/.next/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  24. package/dist/.next/.next/server/app/_not-found.html +1 -1
  25. package/dist/.next/.next/server/app/_not-found.rsc +2 -2
  26. package/dist/.next/.next/server/app/api/cloudflare/route.js +1 -1
  27. package/dist/.next/.next/server/app/api/cloudflare/route_client-reference-manifest.js +1 -1
  28. package/dist/.next/.next/server/app/api/databases/route.js +1 -1
  29. package/dist/.next/.next/server/app/api/databases/route_client-reference-manifest.js +1 -1
  30. package/dist/.next/.next/server/app/api/migrations/sync/route.js +3 -3
  31. package/dist/.next/.next/server/app/api/migrations/sync/route_client-reference-manifest.js +1 -1
  32. package/dist/.next/.next/server/app/api/migrations/sync-files/route.js +2 -2
  33. package/dist/.next/.next/server/app/api/migrations/sync-files/route_client-reference-manifest.js +1 -1
  34. package/dist/.next/.next/server/app/api/pull-data/confirm/route.js +1 -1
  35. package/dist/.next/.next/server/app/api/pull-data/confirm/route_client-reference-manifest.js +1 -1
  36. package/dist/.next/.next/server/app/api/pull-remote/confirm/route.js +1 -1
  37. package/dist/.next/.next/server/app/api/pull-remote/confirm/route_client-reference-manifest.js +1 -1
  38. package/dist/.next/.next/server/app/api/pull-remote/preview/route.js +2 -2
  39. package/dist/.next/.next/server/app/api/pull-remote/preview/route_client-reference-manifest.js +1 -1
  40. package/dist/.next/.next/server/app/api/push-remote/confirm/route.js +3 -3
  41. package/dist/.next/.next/server/app/api/push-remote/confirm/route_client-reference-manifest.js +1 -1
  42. package/dist/.next/.next/server/app/api/push-remote/preview/route.js +3 -3
  43. package/dist/.next/.next/server/app/api/push-remote/preview/route_client-reference-manifest.js +1 -1
  44. package/dist/.next/.next/server/app/api/query/route.js +3 -3
  45. package/dist/.next/.next/server/app/api/query/route_client-reference-manifest.js +1 -1
  46. package/dist/.next/.next/server/app/api/tables/[name]/route.js +2 -2
  47. package/dist/.next/.next/server/app/api/tables/[name]/route_client-reference-manifest.js +1 -1
  48. package/dist/.next/.next/server/app/api/tables/route.js +2 -2
  49. package/dist/.next/.next/server/app/api/tables/route_client-reference-manifest.js +1 -1
  50. package/dist/.next/.next/server/app/api/update/route.js +1 -1
  51. package/dist/.next/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  52. package/dist/.next/.next/server/app/index.html +3 -3
  53. package/dist/.next/.next/server/app/index.rsc +3 -3
  54. package/dist/.next/.next/server/app/page.js +11 -13
  55. package/dist/.next/.next/server/app/page_client-reference-manifest.js +1 -1
  56. package/dist/.next/.next/server/app-paths-manifest.json +4 -4
  57. package/dist/.next/.next/server/chunks/226.js +2 -2
  58. package/dist/.next/.next/server/chunks/391.js +5 -5
  59. package/dist/.next/.next/server/chunks/452.js +1 -1
  60. package/dist/.next/.next/server/chunks/627.js +3 -3
  61. package/dist/.next/.next/server/chunks/638.js +3 -3
  62. package/dist/.next/.next/server/chunks/90.js +1 -1
  63. package/dist/.next/.next/server/chunks/992.js +3 -3
  64. package/dist/.next/.next/server/pages/404.html +1 -1
  65. package/dist/.next/.next/server/pages/500.html +1 -1
  66. package/dist/.next/.next/server/pages/_app.js +1 -1
  67. package/dist/.next/.next/server/pages/_document.js +1 -1
  68. package/dist/.next/.next/server/pages/_error.js +1 -1
  69. package/dist/.next/.next/server/server-reference-manifest.json +1 -1
  70. package/dist/.next/.next/static/chunks/576-c4daf274bb6469a1.js +1 -0
  71. package/dist/.next/.next/static/chunks/app/{page-16ec561fc8bebb5d.js → page-36ed30b2266617f3.js} +1 -1
  72. package/dist/.next/.next/static/css/9f6c25c5400f83d3.css +3 -0
  73. package/dist/.next/.next/trace +3 -3
  74. package/dist/.next/BUILD_ID +1 -1
  75. package/dist/.next/app-build-manifest.json +7 -7
  76. package/dist/.next/app-path-routes-manifest.json +1 -1
  77. package/dist/.next/build-manifest.json +2 -2
  78. package/dist/.next/cache/.rscinfo +1 -1
  79. package/dist/.next/cache/.tsbuildinfo +1 -1
  80. package/dist/.next/cache/webpack/client-production/0.pack +0 -0
  81. package/dist/.next/cache/webpack/client-production/index.pack +0 -0
  82. package/dist/.next/cache/webpack/edge-server-production/index.pack +0 -0
  83. package/dist/.next/cache/webpack/server-production/0.pack +0 -0
  84. package/dist/.next/cache/webpack/server-production/index.pack +0 -0
  85. package/dist/.next/next-minimal-server.js.nft.json +1 -1
  86. package/dist/.next/next-server.js.nft.json +1 -1
  87. package/dist/.next/prerender-manifest.json +1 -1
  88. package/dist/.next/server/app/_not-found/page.js +1 -1
  89. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  90. package/dist/.next/server/app/_not-found.html +1 -1
  91. package/dist/.next/server/app/_not-found.rsc +2 -2
  92. package/dist/.next/server/app/api/cloudflare/route.js +1 -1
  93. package/dist/.next/server/app/api/cloudflare/route_client-reference-manifest.js +1 -1
  94. package/dist/.next/server/app/api/databases/route.js +1 -1
  95. package/dist/.next/server/app/api/databases/route_client-reference-manifest.js +1 -1
  96. package/dist/.next/server/app/api/migrations/sync/route.js +3 -3
  97. package/dist/.next/server/app/api/migrations/sync/route_client-reference-manifest.js +1 -1
  98. package/dist/.next/server/app/api/migrations/sync-files/route.js +2 -2
  99. package/dist/.next/server/app/api/migrations/sync-files/route_client-reference-manifest.js +1 -1
  100. package/dist/.next/server/app/api/pull-data/confirm/route.js +1 -1
  101. package/dist/.next/server/app/api/pull-data/confirm/route_client-reference-manifest.js +1 -1
  102. package/dist/.next/server/app/api/pull-remote/confirm/route.js +1 -1
  103. package/dist/.next/server/app/api/pull-remote/confirm/route_client-reference-manifest.js +1 -1
  104. package/dist/.next/server/app/api/pull-remote/preview/route.js +2 -2
  105. package/dist/.next/server/app/api/pull-remote/preview/route_client-reference-manifest.js +1 -1
  106. package/dist/.next/server/app/api/push-remote/confirm/route.js +3 -3
  107. package/dist/.next/server/app/api/push-remote/confirm/route_client-reference-manifest.js +1 -1
  108. package/dist/.next/server/app/api/push-remote/preview/route.js +3 -3
  109. package/dist/.next/server/app/api/push-remote/preview/route_client-reference-manifest.js +1 -1
  110. package/dist/.next/server/app/api/query/route.js +3 -3
  111. package/dist/.next/server/app/api/query/route_client-reference-manifest.js +1 -1
  112. package/dist/.next/server/app/api/tables/[name]/route.js +2 -2
  113. package/dist/.next/server/app/api/tables/[name]/route_client-reference-manifest.js +1 -1
  114. package/dist/.next/server/app/api/tables/route.js +2 -2
  115. package/dist/.next/server/app/api/tables/route_client-reference-manifest.js +1 -1
  116. package/dist/.next/server/app/api/update/route.js +1 -1
  117. package/dist/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  118. package/dist/.next/server/app/index.html +3 -3
  119. package/dist/.next/server/app/index.rsc +3 -3
  120. package/dist/.next/server/app/page.js +11 -13
  121. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  122. package/dist/.next/server/app-paths-manifest.json +1 -1
  123. package/dist/.next/server/chunks/226.js +2 -2
  124. package/dist/.next/server/chunks/391.js +5 -5
  125. package/dist/.next/server/chunks/452.js +1 -1
  126. package/dist/.next/server/chunks/627.js +3 -3
  127. package/dist/.next/server/chunks/638.js +3 -3
  128. package/dist/.next/server/chunks/90.js +1 -1
  129. package/dist/.next/server/chunks/992.js +3 -3
  130. package/dist/.next/server/pages/404.html +1 -1
  131. package/dist/.next/server/pages/500.html +1 -1
  132. package/dist/.next/server/pages/_app.js +1 -1
  133. package/dist/.next/server/pages/_document.js +1 -1
  134. package/dist/.next/server/pages/_error.js +1 -1
  135. package/dist/.next/server/server-reference-manifest.json +1 -1
  136. package/dist/.next/static/chunks/576-c4daf274bb6469a1.js +1 -0
  137. package/dist/.next/static/chunks/app/{page-16ec561fc8bebb5d.js → page-36ed30b2266617f3.js} +1 -1
  138. package/dist/.next/static/css/9f6c25c5400f83d3.css +3 -0
  139. package/dist/.next/trace +14 -16
  140. package/dist/app/app/page.jsx +13 -23
  141. package/dist/app/page.jsx +13 -23
  142. package/dist/d1-studio.js +32 -2
  143. package/package.json +1 -1
  144. package/scripts/studio.js +32 -2
  145. package/src/app/page.jsx +13 -23
  146. package/src/components/table-view.jsx +1 -1
  147. package/dist/.next/.next/cache/webpack/client-production/4.pack +0 -0
  148. package/dist/.next/.next/static/chunks/700-dc8f9f08b166c5e6.js +0 -1
  149. package/dist/.next/.next/static/css/0c512cea5f3d317a.css +0 -3
  150. package/dist/.next/static/chunks/700-dc8f9f08b166c5e6.js +0 -1
  151. package/dist/.next/static/css/0c512cea5f3d317a.css +0 -3
  152. /package/dist/.next/.next/static/{5dBGGUmK5q7of4h5Rahrg → OUHnbB-64afrrZQL0Srn5}/_buildManifest.js +0 -0
  153. /package/dist/.next/.next/static/{5dBGGUmK5q7of4h5Rahrg → OUHnbB-64afrrZQL0Srn5}/_ssgManifest.js +0 -0
  154. /package/dist/.next/.next/static/{PflNFnmFsNegSqhzjI6lA → ZBTCAyp1kO5FdEHMU-Dw2}/_buildManifest.js +0 -0
  155. /package/dist/.next/.next/static/{PflNFnmFsNegSqhzjI6lA → ZBTCAyp1kO5FdEHMU-Dw2}/_ssgManifest.js +0 -0
  156. /package/dist/.next/.next/static/{p8875OZM4iDNsPzmoyLe7 → bHYW7fgIBDF8-Q33_WPoE}/_buildManifest.js +0 -0
  157. /package/dist/.next/.next/static/{p8875OZM4iDNsPzmoyLe7 → bHYW7fgIBDF8-Q33_WPoE}/_ssgManifest.js +0 -0
  158. /package/dist/.next/{static 2/5dBGGUmK5q7of4h5Rahrg → static/ZBTCAyp1kO5FdEHMU-Dw2}/_buildManifest.js +0 -0
  159. /package/dist/.next/{static 2/5dBGGUmK5q7of4h5Rahrg → static/ZBTCAyp1kO5FdEHMU-Dw2}/_ssgManifest.js +0 -0
@@ -5,7 +5,6 @@ import { useState } from 'react';
5
5
  import { AppSidebar } from '../components/sidebar';
6
6
  import { SQLEditor } from '../components/sql-editor';
7
7
  import { TableView } from '../components/table-view';
8
- import UpdateBanner from '@/components/update-banner';
9
8
 
10
9
  export default function StudioPage() {
11
10
  const [currentView, setCurrentView] = useState('sql-editor');
@@ -17,28 +16,19 @@ export default function StudioPage() {
17
16
  };
18
17
 
19
18
  return (
20
- <div className="flex flex-col min-h-screen bg-background">
21
- {/* Banner */}
22
- <UpdateBanner />
23
-
24
- {/* Main layout with adjusted positioning for banner */}
25
- <div className="flex flex-1 mt-[var(--banner-height,0px)]">
26
- {/* Sidebar with adjusted height */}
27
- <AppSidebar
28
- className="w-64 border-r fixed top-[var(--banner-height,0px)] h-[calc(100vh-var(--banner-height,0px))]"
29
- currentView={currentView}
30
- onNavigate={setCurrentView}
31
- onTableSelect={handleTableSelect}
32
- />
33
-
34
- {/* Main content with adjusted margin-top and height */}
35
- <main className="ml-64 flex-1 h-[calc(100vh-var(--banner-height,0px))]">
36
- {currentView === 'sql-editor' && <SQLEditor />}
37
- {currentView === 'table-view' && selectedTable && (
38
- <TableView tableName={selectedTable} />
39
- )}
40
- </main>
41
- </div>
19
+ <div className="flex h-screen bg-background">
20
+ <AppSidebar
21
+ className="w-64 border-r flex-shrink-0"
22
+ currentView={currentView}
23
+ onNavigate={setCurrentView}
24
+ onTableSelect={handleTableSelect}
25
+ />
26
+ <main className="flex-1 overflow-hidden">
27
+ {currentView === 'sql-editor' && <SQLEditor />}
28
+ {currentView === 'table-view' && selectedTable && (
29
+ <TableView tableName={selectedTable} />
30
+ )}
31
+ </main>
42
32
  </div>
43
33
  );
44
34
  }
package/dist/app/page.jsx CHANGED
@@ -5,7 +5,6 @@ import { useState } from 'react';
5
5
  import { AppSidebar } from '../components/sidebar';
6
6
  import { SQLEditor } from '../components/sql-editor';
7
7
  import { TableView } from '../components/table-view';
8
- import UpdateBanner from '@/components/update-banner';
9
8
 
10
9
  export default function StudioPage() {
11
10
  const [currentView, setCurrentView] = useState('sql-editor');
@@ -17,28 +16,19 @@ export default function StudioPage() {
17
16
  };
18
17
 
19
18
  return (
20
- <div className="flex flex-col min-h-screen bg-background">
21
- {/* Banner */}
22
- <UpdateBanner />
23
-
24
- {/* Main layout with adjusted positioning for banner */}
25
- <div className="flex flex-1 mt-[var(--banner-height,0px)]">
26
- {/* Sidebar with adjusted height */}
27
- <AppSidebar
28
- className="w-64 border-r fixed top-[var(--banner-height,0px)] h-[calc(100vh-var(--banner-height,0px))]"
29
- currentView={currentView}
30
- onNavigate={setCurrentView}
31
- onTableSelect={handleTableSelect}
32
- />
33
-
34
- {/* Main content with adjusted margin-top and height */}
35
- <main className="ml-64 flex-1 h-[calc(100vh-var(--banner-height,0px))]">
36
- {currentView === 'sql-editor' && <SQLEditor />}
37
- {currentView === 'table-view' && selectedTable && (
38
- <TableView tableName={selectedTable} />
39
- )}
40
- </main>
41
- </div>
19
+ <div className="flex h-screen bg-background">
20
+ <AppSidebar
21
+ className="w-64 border-r flex-shrink-0"
22
+ currentView={currentView}
23
+ onNavigate={setCurrentView}
24
+ onTableSelect={handleTableSelect}
25
+ />
26
+ <main className="flex-1 overflow-hidden">
27
+ {currentView === 'sql-editor' && <SQLEditor />}
28
+ {currentView === 'table-view' && selectedTable && (
29
+ <TableView tableName={selectedTable} />
30
+ )}
31
+ </main>
42
32
  </div>
43
33
  );
44
34
  }
package/dist/d1-studio.js CHANGED
@@ -18,8 +18,38 @@ if (hasDebugFlag) {
18
18
  logger.debug('Debug mode enabled');
19
19
  }
20
20
 
21
- const notifier = updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 * 24 });
22
- notifier.notify({ defer: false });
21
+ const notifier = updateNotifier({
22
+ pkg,
23
+ updateCheckInterval: 1000 * 60 * 60 * 24,
24
+ });
25
+
26
+ // Check if update is available
27
+ if (notifier.update) {
28
+ // Get current version and latest version
29
+ const currentVersion = pkg.version;
30
+ const latestVersion = notifier.update.latest;
31
+
32
+ // Version-specific messages
33
+ const versionMessages = {
34
+ // Add specific version messages here
35
+ '0.2.11': 'Fixed table toolbar and table view horizontal/vertical scroll issues'
36
+ // Add more version messages as needed
37
+ };
38
+
39
+ // Create custom message
40
+ let message = `Update available ${chalk.dim(currentVersion)} → ${chalk.green(latestVersion)}`;
41
+
42
+ // Add version-specific message if available
43
+ if (versionMessages[latestVersion]) {
44
+ message += `\n${chalk.cyan('What\'s new:')} ${versionMessages[latestVersion]}`;
45
+ }
46
+
47
+ // Add installation instructions
48
+ message += `\nRun ${chalk.cyan('npm i -g d1s@latest')} to update`;
49
+
50
+ // Display custom notification
51
+ notifier.notify({ message });
52
+ }
23
53
 
24
54
  // Compute the absolute path of this file and its directory
25
55
  const __filename = fileURLToPath(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "d1s",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "type": "module",
5
5
  "description": "D1 Studio – a native studio for managing Cloudflare D1 databases.",
6
6
  "main": "./dist/d1-studio.js",
package/scripts/studio.js CHANGED
@@ -18,8 +18,38 @@ if (hasDebugFlag) {
18
18
  logger.debug('Debug mode enabled');
19
19
  }
20
20
 
21
- const notifier = updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 * 24 });
22
- notifier.notify({ defer: false });
21
+ const notifier = updateNotifier({
22
+ pkg,
23
+ updateCheckInterval: 1000 * 60 * 60 * 24,
24
+ });
25
+
26
+ // Check if update is available
27
+ if (notifier.update) {
28
+ // Get current version and latest version
29
+ const currentVersion = pkg.version;
30
+ const latestVersion = notifier.update.latest;
31
+
32
+ // Version-specific messages
33
+ const versionMessages = {
34
+ // Add specific version messages here
35
+ '0.2.11': 'Fixed table toolbar and table view horizontal/vertical scroll issues'
36
+ // Add more version messages as needed
37
+ };
38
+
39
+ // Create custom message
40
+ let message = `Update available ${chalk.dim(currentVersion)} → ${chalk.green(latestVersion)}`;
41
+
42
+ // Add version-specific message if available
43
+ if (versionMessages[latestVersion]) {
44
+ message += `\n${chalk.cyan('What\'s new:')} ${versionMessages[latestVersion]}`;
45
+ }
46
+
47
+ // Add installation instructions
48
+ message += `\nRun ${chalk.cyan('npm i -g d1s@latest')} to update`;
49
+
50
+ // Display custom notification
51
+ notifier.notify({ message });
52
+ }
23
53
 
24
54
  // Compute the absolute path of this file and its directory
25
55
  const __filename = fileURLToPath(import.meta.url);
package/src/app/page.jsx CHANGED
@@ -5,7 +5,6 @@ import { useState } from 'react';
5
5
  import { AppSidebar } from '../components/sidebar';
6
6
  import { SQLEditor } from '../components/sql-editor';
7
7
  import { TableView } from '../components/table-view';
8
- import UpdateBanner from '@/components/update-banner';
9
8
 
10
9
  export default function StudioPage() {
11
10
  const [currentView, setCurrentView] = useState('sql-editor');
@@ -17,28 +16,19 @@ export default function StudioPage() {
17
16
  };
18
17
 
19
18
  return (
20
- <div className="flex flex-col min-h-screen bg-background">
21
- {/* Banner */}
22
- <UpdateBanner />
23
-
24
- {/* Main layout with adjusted positioning for banner */}
25
- <div className="flex flex-1 mt-[var(--banner-height,0px)]">
26
- {/* Sidebar with adjusted height */}
27
- <AppSidebar
28
- className="w-64 border-r fixed top-[var(--banner-height,0px)] h-[calc(100vh-var(--banner-height,0px))]"
29
- currentView={currentView}
30
- onNavigate={setCurrentView}
31
- onTableSelect={handleTableSelect}
32
- />
33
-
34
- {/* Main content with adjusted margin-top and height */}
35
- <main className="ml-64 flex-1 h-[calc(100vh-var(--banner-height,0px))]">
36
- {currentView === 'sql-editor' && <SQLEditor />}
37
- {currentView === 'table-view' && selectedTable && (
38
- <TableView tableName={selectedTable} />
39
- )}
40
- </main>
41
- </div>
19
+ <div className="flex h-screen bg-background">
20
+ <AppSidebar
21
+ className="w-64 border-r flex-shrink-0"
22
+ currentView={currentView}
23
+ onNavigate={setCurrentView}
24
+ onTableSelect={handleTableSelect}
25
+ />
26
+ <main className="flex-1 overflow-hidden">
27
+ {currentView === 'sql-editor' && <SQLEditor />}
28
+ {currentView === 'table-view' && selectedTable && (
29
+ <TableView tableName={selectedTable} />
30
+ )}
31
+ </main>
42
32
  </div>
43
33
  );
44
34
  }
@@ -684,7 +684,7 @@ export function TableView({ tableName }) {
684
684
  />
685
685
 
686
686
  <ResizableTable columns={schema} onColumnsResize={handleColumnResize}>
687
- <div className="relative flex-1 overflow-hidden bg-background font-mono">
687
+ <div className="flex-1 overflow-hidden bg-background font-mono">
688
688
  <ScrollArea className="w-full h-screen">
689
689
  <div className="relative w-max min-w-fit pb-4">
690
690
  <Table>