drizzle-kit 1.0.0-beta.1 → 1.0.0-beta.1-dfa4db3
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/api.d.mts +3336 -0
- package/api.d.ts +3336 -0
- package/api.js +169529 -0
- package/api.mjs +169507 -0
- package/bin.cjs +76545 -159209
- package/index.d.mts +1 -28
- package/index.d.ts +1 -28
- package/package.json +29 -27
- package/utils.js +6408 -0
- package/utils.mjs +6383 -0
- package/api-postgres.d.mts +0 -12370
- package/api-postgres.d.ts +0 -12370
- package/api-postgres.js +0 -33441
- package/api-postgres.mjs +0 -33434
package/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ type Prefix = (typeof prefixes)[number];
|
|
|
5
5
|
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
|
|
6
6
|
type Driver = (typeof drivers)[number];
|
|
7
7
|
|
|
8
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"
|
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"];
|
|
9
9
|
type Dialect = (typeof dialects)[number];
|
|
10
10
|
|
|
11
11
|
type SslOptions = {
|
|
@@ -223,33 +223,6 @@ type Config = {
|
|
|
223
223
|
password?: string;
|
|
224
224
|
database: string;
|
|
225
225
|
}));
|
|
226
|
-
} | {
|
|
227
|
-
dialect: Verify<Dialect, 'mssql'>;
|
|
228
|
-
dbCredentials: {
|
|
229
|
-
port: number;
|
|
230
|
-
user: string;
|
|
231
|
-
password: string;
|
|
232
|
-
database: string;
|
|
233
|
-
server: string;
|
|
234
|
-
options?: {
|
|
235
|
-
encrypt?: boolean;
|
|
236
|
-
trustServerCertificate?: boolean;
|
|
237
|
-
};
|
|
238
|
-
} | {
|
|
239
|
-
url: string;
|
|
240
|
-
};
|
|
241
|
-
} | {
|
|
242
|
-
dialect: Verify<Dialect, 'cockroach'>;
|
|
243
|
-
dbCredentials: ({
|
|
244
|
-
host: string;
|
|
245
|
-
port?: number;
|
|
246
|
-
user?: string;
|
|
247
|
-
password?: string;
|
|
248
|
-
database: string;
|
|
249
|
-
ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
|
|
250
|
-
} & {}) | {
|
|
251
|
-
url: string;
|
|
252
|
-
};
|
|
253
226
|
});
|
|
254
227
|
/**
|
|
255
228
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ type Prefix = (typeof prefixes)[number];
|
|
|
5
5
|
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
|
|
6
6
|
type Driver = (typeof drivers)[number];
|
|
7
7
|
|
|
8
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"
|
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"];
|
|
9
9
|
type Dialect = (typeof dialects)[number];
|
|
10
10
|
|
|
11
11
|
type SslOptions = {
|
|
@@ -223,33 +223,6 @@ type Config = {
|
|
|
223
223
|
password?: string;
|
|
224
224
|
database: string;
|
|
225
225
|
}));
|
|
226
|
-
} | {
|
|
227
|
-
dialect: Verify<Dialect, 'mssql'>;
|
|
228
|
-
dbCredentials: {
|
|
229
|
-
port: number;
|
|
230
|
-
user: string;
|
|
231
|
-
password: string;
|
|
232
|
-
database: string;
|
|
233
|
-
server: string;
|
|
234
|
-
options?: {
|
|
235
|
-
encrypt?: boolean;
|
|
236
|
-
trustServerCertificate?: boolean;
|
|
237
|
-
};
|
|
238
|
-
} | {
|
|
239
|
-
url: string;
|
|
240
|
-
};
|
|
241
|
-
} | {
|
|
242
|
-
dialect: Verify<Dialect, 'cockroach'>;
|
|
243
|
-
dbCredentials: ({
|
|
244
|
-
host: string;
|
|
245
|
-
port?: number;
|
|
246
|
-
user?: string;
|
|
247
|
-
password?: string;
|
|
248
|
-
database: string;
|
|
249
|
-
ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
|
|
250
|
-
} & {}) | {
|
|
251
|
-
url: string;
|
|
252
|
-
};
|
|
253
226
|
});
|
|
254
227
|
/**
|
|
255
228
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-kit",
|
|
3
|
-
"version": "1.0.0-beta.1",
|
|
3
|
+
"version": "1.0.0-beta.1-dfa4db3",
|
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drizzle",
|
|
@@ -35,47 +35,44 @@
|
|
|
35
35
|
"api": "tsx ./dev/api.ts",
|
|
36
36
|
"migrate:old": "drizzle-kit generate:mysql",
|
|
37
37
|
"cli": "tsx ./src/cli/index.ts",
|
|
38
|
-
"test": "TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest
|
|
39
|
-
"
|
|
40
|
-
"build": "rm -rf ./dist && tsx build.ts && cp package.json dist/",
|
|
41
|
-
"build:artifact": "pnpm run build",
|
|
42
|
-
"build:cli": "rm -rf ./dist && tsx build.cli.ts && cp package.json dist/",
|
|
38
|
+
"test": "pnpm tsc && TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest",
|
|
39
|
+
"build": "rm -rf ./dist && tsx build.ts && cp package.json dist/ && attw --pack dist",
|
|
43
40
|
"build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
|
|
44
|
-
"build:ext": "rm -rf ./dist && vitest run bin.test && vitest run ./tests/postgres/ && vitest run ./tests/sqlite && vitest run ./tests/mysql && tsx build.ext.ts",
|
|
45
41
|
"pack": "cp package.json README.md dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
|
|
46
|
-
"
|
|
42
|
+
"tsc": "tsc -p tsconfig.build.json --noEmit",
|
|
47
43
|
"publish": "npm publish package.tgz"
|
|
48
44
|
},
|
|
49
45
|
"dependencies": {
|
|
50
46
|
"@drizzle-team/brocli": "^0.10.2",
|
|
51
|
-
"@
|
|
52
|
-
"esbuild": "^0.25.
|
|
53
|
-
"esbuild-register": "^3.
|
|
47
|
+
"@esbuild-kit/esm-loader": "^2.5.5",
|
|
48
|
+
"esbuild": "^0.25.4",
|
|
49
|
+
"esbuild-register": "^3.5.0"
|
|
54
50
|
},
|
|
55
51
|
"devDependencies": {
|
|
52
|
+
"@arethetypeswrong/cli": "^0.15.3",
|
|
56
53
|
"@aws-sdk/client-rds-data": "^3.556.0",
|
|
57
54
|
"@cloudflare/workers-types": "^4.20230518.0",
|
|
58
55
|
"@electric-sql/pglite": "^0.2.12",
|
|
59
56
|
"@hono/node-server": "^1.9.0",
|
|
60
57
|
"@hono/zod-validator": "^0.2.1",
|
|
61
58
|
"@libsql/client": "^0.10.0",
|
|
62
|
-
"@neondatabase/serverless": "^
|
|
59
|
+
"@neondatabase/serverless": "^0.9.1",
|
|
63
60
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
64
|
-
"@planetscale/database": "^1.
|
|
61
|
+
"@planetscale/database": "^1.16.0",
|
|
65
62
|
"@types/better-sqlite3": "^7.6.13",
|
|
66
|
-
"@types/bun": "^1.3.0",
|
|
67
63
|
"@types/dockerode": "^3.3.28",
|
|
68
64
|
"@types/glob": "^8.1.0",
|
|
69
65
|
"@types/json-diff": "^1.0.3",
|
|
70
66
|
"@types/micromatch": "^4.0.9",
|
|
71
67
|
"@types/minimatch": "^5.1.2",
|
|
72
|
-
"@types/
|
|
73
|
-
"@types/node": "^24.7.2",
|
|
68
|
+
"@types/node": "^18.11.15",
|
|
74
69
|
"@types/pg": "^8.10.7",
|
|
75
70
|
"@types/pluralize": "^0.0.33",
|
|
76
71
|
"@types/semver": "^7.5.5",
|
|
77
72
|
"@types/uuid": "^9.0.8",
|
|
78
73
|
"@types/ws": "^8.5.10",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
75
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
79
76
|
"@vercel/postgres": "^0.8.0",
|
|
80
77
|
"ava": "^5.1.0",
|
|
81
78
|
"better-sqlite3": "^11.9.1",
|
|
@@ -85,9 +82,13 @@
|
|
|
85
82
|
"commander": "^12.1.0",
|
|
86
83
|
"dockerode": "^4.0.6",
|
|
87
84
|
"dotenv": "^16.0.3",
|
|
85
|
+
"drizzle-kit": "0.25.0-b1faa33",
|
|
88
86
|
"drizzle-orm": "workspace:./drizzle-orm/dist",
|
|
89
87
|
"env-paths": "^3.0.0",
|
|
90
88
|
"esbuild-node-externals": "^1.9.0",
|
|
89
|
+
"eslint": "^8.57.0",
|
|
90
|
+
"eslint-config-prettier": "^9.1.0",
|
|
91
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
91
92
|
"gel": "^2.0.0",
|
|
92
93
|
"get-port": "^6.1.2",
|
|
93
94
|
"glob": "^8.1.0",
|
|
@@ -96,20 +97,21 @@
|
|
|
96
97
|
"json-diff": "1.0.6",
|
|
97
98
|
"micromatch": "^4.0.8",
|
|
98
99
|
"minimatch": "^7.4.3",
|
|
99
|
-
"mssql": "^12.0.0",
|
|
100
100
|
"mysql2": "3.14.1",
|
|
101
101
|
"node-fetch": "^3.3.2",
|
|
102
102
|
"ohm-js": "^17.1.0",
|
|
103
|
-
"orm044": "npm:drizzle-orm@0.44.1",
|
|
104
103
|
"pg": "^8.11.5",
|
|
105
104
|
"pluralize": "^8.0.0",
|
|
106
105
|
"postgres": "^3.4.4",
|
|
107
106
|
"prettier": "^3.5.3",
|
|
108
107
|
"semver": "^7.7.2",
|
|
108
|
+
"superjson": "^2.2.1",
|
|
109
109
|
"tsup": "^8.3.5",
|
|
110
|
-
"tsx": "^
|
|
111
|
-
"typescript": "^5.9.
|
|
110
|
+
"tsx": "^3.12.1",
|
|
111
|
+
"typescript": "^5.9.2",
|
|
112
112
|
"uuid": "^9.0.1",
|
|
113
|
+
"vite-tsconfig-paths": "^4.3.2",
|
|
114
|
+
"vitest": "^3.1.3",
|
|
113
115
|
"ws": "^8.18.2",
|
|
114
116
|
"zod": "^3.20.2",
|
|
115
117
|
"zx": "^8.3.2"
|
|
@@ -127,17 +129,17 @@
|
|
|
127
129
|
"types": "./index.d.mts",
|
|
128
130
|
"default": "./index.mjs"
|
|
129
131
|
},
|
|
130
|
-
"./api
|
|
132
|
+
"./api": {
|
|
131
133
|
"import": {
|
|
132
|
-
"types": "./api
|
|
133
|
-
"default": "./api
|
|
134
|
+
"types": "./api.d.mts",
|
|
135
|
+
"default": "./api.mjs"
|
|
134
136
|
},
|
|
135
137
|
"require": {
|
|
136
|
-
"types": "./api
|
|
137
|
-
"default": "./api
|
|
138
|
+
"types": "./api.d.ts",
|
|
139
|
+
"default": "./api.js"
|
|
138
140
|
},
|
|
139
|
-
"types": "./api
|
|
140
|
-
"default": "./api
|
|
141
|
+
"types": "./api.d.mts",
|
|
142
|
+
"default": "./api.mjs"
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
}
|