drizzle-kit 0.23.0 → 0.23.1-7816536
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +8890 -11383
- package/index.d.mts +6 -3
- package/index.d.ts +6 -3
- package/package.json +4 -8
- package/payload.d.mts +4 -4
- package/payload.d.ts +4 -4
- package/payload.js +1422 -1036
- package/payload.mjs +1424 -1037
package/index.d.mts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
import { ConnectionOptions } from 'tls';
|
2
2
|
|
3
|
-
|
4
|
-
type
|
3
|
+
declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "none"];
|
4
|
+
type Prefix = (typeof prefixes)[number];
|
5
|
+
declare const drivers: readonly ["turso", "d1-http", "expo", "aws-data-api"];
|
6
|
+
type Driver = (typeof drivers)[number];
|
5
7
|
|
6
|
-
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite"];
|
9
|
+
type Dialect = (typeof dialects)[number];
|
7
10
|
|
8
11
|
type SslOptions = {
|
9
12
|
pfx?: string;
|
package/index.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
import { ConnectionOptions } from 'tls';
|
2
2
|
|
3
|
-
|
4
|
-
type
|
3
|
+
declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "none"];
|
4
|
+
type Prefix = (typeof prefixes)[number];
|
5
|
+
declare const drivers: readonly ["turso", "d1-http", "expo", "aws-data-api"];
|
6
|
+
type Driver = (typeof drivers)[number];
|
5
7
|
|
6
|
-
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite"];
|
9
|
+
type Dialect = (typeof dialects)[number];
|
7
10
|
|
8
11
|
type SslOptions = {
|
9
12
|
pfx?: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.23.
|
3
|
+
"version": "0.23.1-7816536",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"payload": "tsx ./dev/payload.ts",
|
12
12
|
"migrate:old": "drizzle-kit generate:mysql",
|
13
13
|
"cli": "tsx ./src/cli/index.ts",
|
14
|
-
"test": "vitest",
|
14
|
+
"test": "TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest",
|
15
15
|
"build": "rm -rf ./dist && tsx build.ts && cp package.json dist/ && attw --pack dist",
|
16
16
|
"build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
|
17
17
|
"packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
|
@@ -19,6 +19,7 @@
|
|
19
19
|
"pub": "cp package.json readme.md dist/ && cd dist && npm publish"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
+
"@drizzle-team/brocli": "^0.8.2",
|
22
23
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
23
24
|
"esbuild": "^0.19.7",
|
24
25
|
"esbuild-register": "^3.5.0"
|
@@ -56,7 +57,7 @@
|
|
56
57
|
"dockerode": "^3.3.4",
|
57
58
|
"dotenv": "^16.0.3",
|
58
59
|
"drizzle-kit": "0.21.2",
|
59
|
-
"drizzle-orm": "0.32.
|
60
|
+
"drizzle-orm": "0.32.1",
|
60
61
|
"env-paths": "^3.0.0",
|
61
62
|
"esbuild-node-externals": "^1.9.0",
|
62
63
|
"eslint": "^8.57.0",
|
@@ -112,10 +113,5 @@
|
|
112
113
|
"types": "./payload.d.mts",
|
113
114
|
"default": "./payload.mjs"
|
114
115
|
}
|
115
|
-
},
|
116
|
-
"pnpm": {
|
117
|
-
"patchedDependencies": {
|
118
|
-
"difflib@0.2.4": "patches/difflib@0.2.4.patch"
|
119
|
-
}
|
120
116
|
}
|
121
117
|
}
|
package/payload.d.mts
CHANGED
@@ -2,7 +2,7 @@ import { PgDatabase } from 'drizzle-orm/pg-core';
|
|
2
2
|
import * as zod from 'zod';
|
3
3
|
import { TypeOf } from 'zod';
|
4
4
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
5
|
-
import {
|
5
|
+
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
6
6
|
|
7
7
|
declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
8
8
|
version: zod.ZodLiteral<"7">;
|
@@ -1386,9 +1386,9 @@ type MySqlSchema = TypeOf<typeof schema>;
|
|
1386
1386
|
type DrizzleSnapshotJSON = PgSchema;
|
1387
1387
|
type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
|
1388
1388
|
type DrizzleMySQLSnapshotJSON = MySqlSchema;
|
1389
|
-
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => PgSchema;
|
1389
|
+
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[]) => PgSchema;
|
1390
1390
|
declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
1391
|
-
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any
|
1391
|
+
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
|
1392
1392
|
hasDataLoss: boolean;
|
1393
1393
|
warnings: string[];
|
1394
1394
|
statementsToExecute: string[];
|
@@ -1396,7 +1396,7 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
|
|
1396
1396
|
}>;
|
1397
1397
|
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<SQLiteSchema>;
|
1398
1398
|
declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
1399
|
-
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance:
|
1399
|
+
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
|
1400
1400
|
hasDataLoss: boolean;
|
1401
1401
|
warnings: string[];
|
1402
1402
|
statementsToExecute: string[];
|
package/payload.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { PgDatabase } from 'drizzle-orm/pg-core';
|
|
2
2
|
import * as zod from 'zod';
|
3
3
|
import { TypeOf } from 'zod';
|
4
4
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
5
|
-
import {
|
5
|
+
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
6
6
|
|
7
7
|
declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
8
8
|
version: zod.ZodLiteral<"7">;
|
@@ -1386,9 +1386,9 @@ type MySqlSchema = TypeOf<typeof schema>;
|
|
1386
1386
|
type DrizzleSnapshotJSON = PgSchema;
|
1387
1387
|
type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
|
1388
1388
|
type DrizzleMySQLSnapshotJSON = MySqlSchema;
|
1389
|
-
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => PgSchema;
|
1389
|
+
declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[]) => PgSchema;
|
1390
1390
|
declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
|
1391
|
-
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any
|
1391
|
+
declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
|
1392
1392
|
hasDataLoss: boolean;
|
1393
1393
|
warnings: string[];
|
1394
1394
|
statementsToExecute: string[];
|
@@ -1396,7 +1396,7 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
|
|
1396
1396
|
}>;
|
1397
1397
|
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<SQLiteSchema>;
|
1398
1398
|
declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
1399
|
-
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance:
|
1399
|
+
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
|
1400
1400
|
hasDataLoss: boolean;
|
1401
1401
|
warnings: string[];
|
1402
1402
|
statementsToExecute: string[];
|