@astrojs/db 0.11.4 → 0.11.6

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,7 +1,5 @@
1
1
  import { LibsqlError } from '@libsql/client';
2
2
  import type { ColumnsConfig, DBConfigInput, TableConfig } from '../core/types.js';
3
- import type { LibSQLDatabase } from 'drizzle-orm/libsql';
4
- export type Database = Omit<LibSQLDatabase, 'transaction'>;
5
3
  export declare function isDbError(err: unknown): err is LibsqlError;
6
4
  export declare const column: {
7
5
  number: <T extends ({
@@ -27,7 +27,7 @@ function printHelp({
27
27
  message.push(
28
28
  linebreak(),
29
29
  ` ${bgGreen(black(` ${commandName} `))} ${green(
30
- `v${"0.11.4"}`
30
+ `v${"0.11.6"}`
31
31
  )} ${headline}`
32
32
  );
33
33
  }
@@ -1,5 +1,7 @@
1
1
  import { type ColumnDataType } from 'drizzle-orm';
2
+ import { type LibSQLDatabase } from 'drizzle-orm/libsql';
2
3
  import type { DBColumn, DBTable } from '../core/types.js';
4
+ export type Database = Omit<LibSQLDatabase, 'transaction'>;
3
5
  export type { Table } from './types.js';
4
6
  export { createRemoteDatabaseClient, createLocalDatabaseClient } from './db-client.js';
5
7
  export declare function hasPrimaryKey(column: DBColumn): boolean;
@@ -1,4 +1,5 @@
1
1
  import { sql } from "drizzle-orm";
2
+ import {} from "drizzle-orm/libsql";
2
3
  import {
3
4
  customType,
4
5
  index,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/db",
3
- "version": "0.11.4",
3
+ "version": "0.11.6",
4
4
  "description": "Add libSQL and Astro Studio support to your Astro site",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -62,11 +62,11 @@
62
62
  "astro-integration"
63
63
  ],
64
64
  "dependencies": {
65
- "@libsql/client": "^0.6.0",
65
+ "@libsql/client": "^0.6.2",
66
66
  "async-listen": "^3.0.1",
67
67
  "ci-info": "^4.0.0",
68
68
  "deep-diff": "^1.0.2",
69
- "drizzle-orm": "^0.30.10",
69
+ "drizzle-orm": "^0.31.2",
70
70
  "github-slugger": "^2.0.0",
71
71
  "kleur": "^4.1.5",
72
72
  "nanoid": "^5.0.7",
@@ -82,15 +82,12 @@
82
82
  "@types/chai": "^4.3.16",
83
83
  "@types/deep-diff": "^1.0.5",
84
84
  "@types/diff": "^5.2.1",
85
- "@types/mocha": "^10.0.6",
86
85
  "@types/prompts": "^2.4.9",
87
86
  "@types/yargs-parser": "^21.0.3",
88
- "chai": "^5.1.1",
89
87
  "cheerio": "1.0.0-rc.12",
90
- "mocha": "^10.4.0",
91
88
  "typescript": "^5.4.5",
92
- "vite": "^5.2.11",
93
- "astro": "4.8.7",
89
+ "vite": "^5.3.1",
90
+ "astro": "4.10.3",
94
91
  "astro-scripts": "0.0.14"
95
92
  },
96
93
  "scripts": {
@@ -98,7 +95,6 @@
98
95
  "build": "astro-scripts build \"src/**/*.ts\" && tsc && pnpm types:virtual",
99
96
  "build:ci": "astro-scripts build \"src/**/*.ts\"",
100
97
  "dev": "astro-scripts dev \"src/**/*.ts\"",
101
- "test": "mocha --exit --timeout 20000 \"test/*.js\" \"test/unit/**/*.js\"",
102
- "test:match": "mocha --timeout 20000 \"test/*.js\" \"test/unit/*.js\" -g"
98
+ "test": "astro-scripts test \"test/**/*.test.js\""
103
99
  }
104
100
  }
package/virtual.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare module 'astro:db' {
2
2
  type RuntimeConfig = typeof import('./dist/_internal/runtime/virtual.js');
3
3
 
4
- export const db: import('./dist/_internal/runtime/virtual.js').Database;
4
+ export const db: import('./dist/runtime/index.js').Database;
5
5
  export const dbUrl: string;
6
6
 
7
7
  export const sql: RuntimeConfig['sql'];