drizzle-kit 1.0.0-beta.1-03a5cdc → 1.0.0-beta.1-813549e

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/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", "mssql", "cockroach"];
9
9
  type Dialect = (typeof dialects)[number];
10
10
 
11
11
  type SslOptions = {
@@ -223,6 +223,33 @@ 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
+ };
226
253
  });
227
254
  /**
228
255
  * **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", "mssql", "cockroach"];
9
9
  type Dialect = (typeof dialects)[number];
10
10
 
11
11
  type SslOptions = {
@@ -223,6 +223,33 @@ 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
+ };
226
253
  });
227
254
  /**
228
255
  * **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,145 +1,150 @@
1
1
  {
2
- "name": "drizzle-kit",
3
- "version": "1.0.0-beta.1-03a5cdc",
4
- "homepage": "https://orm.drizzle.team",
5
- "keywords": [
6
- "drizzle",
7
- "orm",
8
- "pg",
9
- "mysql",
10
- "singlestore",
11
- "postgresql",
12
- "postgres",
13
- "sqlite",
14
- "database",
15
- "sql",
16
- "typescript",
17
- "ts",
18
- "drizzle-kit",
19
- "migrations",
20
- "schema"
21
- ],
22
- "publishConfig": {
23
- "provenance": true
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/drizzle-team/drizzle-orm.git"
28
- },
29
- "author": "Drizzle Team",
30
- "license": "MIT",
31
- "bin": {
32
- "drizzle-kit": "./bin.cjs"
33
- },
34
- "scripts": {
35
- "api": "tsx ./dev/api.ts",
36
- "migrate:old": "drizzle-kit generate:mysql",
37
- "cli": "tsx ./src/cli/index.ts",
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",
40
- "build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
41
- "pack": "cp package.json README.md dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
42
- "tsc": "tsc -p tsconfig.build.json --noEmit",
43
- "publish": "npm publish package.tgz"
44
- },
45
- "dependencies": {
46
- "@drizzle-team/brocli": "^0.10.2",
47
- "@esbuild-kit/esm-loader": "^2.5.5",
48
- "esbuild": "^0.25.4",
49
- "esbuild-register": "^3.5.0"
50
- },
51
- "devDependencies": {
52
- "@arethetypeswrong/cli": "^0.15.3",
53
- "@aws-sdk/client-rds-data": "^3.556.0",
54
- "@cloudflare/workers-types": "^4.20230518.0",
55
- "@electric-sql/pglite": "^0.2.12",
56
- "@hono/node-server": "^1.9.0",
57
- "@hono/zod-validator": "^0.2.1",
58
- "@libsql/client": "^0.10.0",
59
- "@neondatabase/serverless": "^0.9.1",
60
- "@originjs/vite-plugin-commonjs": "^1.0.3",
61
- "@planetscale/database": "^1.16.0",
62
- "@types/better-sqlite3": "^7.6.13",
63
- "@types/dockerode": "^3.3.28",
64
- "@types/glob": "^8.1.0",
65
- "@types/json-diff": "^1.0.3",
66
- "@types/micromatch": "^4.0.9",
67
- "@types/minimatch": "^5.1.2",
68
- "@types/node": "^18.11.15",
69
- "@types/pg": "^8.10.7",
70
- "@types/pluralize": "^0.0.33",
71
- "@types/semver": "^7.5.5",
72
- "@types/uuid": "^9.0.8",
73
- "@types/ws": "^8.5.10",
74
- "@typescript-eslint/eslint-plugin": "^7.2.0",
75
- "@typescript-eslint/parser": "^7.2.0",
76
- "@vercel/postgres": "^0.8.0",
77
- "ava": "^5.1.0",
78
- "better-sqlite3": "^11.9.1",
79
- "bun-types": "^0.6.6",
80
- "camelcase": "^7.0.1",
81
- "chalk": "^5.2.0",
82
- "commander": "^12.1.0",
83
- "dockerode": "^4.0.6",
84
- "dotenv": "^16.0.3",
85
- "drizzle-kit": "0.25.0-b1faa33",
86
- "drizzle-orm": "workspace:./drizzle-orm/dist",
87
- "env-paths": "^3.0.0",
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",
92
- "gel": "^2.0.0",
93
- "get-port": "^6.1.2",
94
- "glob": "^8.1.0",
95
- "hanji": "^0.0.5",
96
- "hono": "^4.7.9",
97
- "json-diff": "1.0.6",
98
- "micromatch": "^4.0.8",
99
- "minimatch": "^7.4.3",
100
- "mysql2": "3.14.1",
101
- "node-fetch": "^3.3.2",
102
- "ohm-js": "^17.1.0",
103
- "pg": "^8.11.5",
104
- "pluralize": "^8.0.0",
105
- "postgres": "^3.4.4",
106
- "prettier": "^3.5.3",
107
- "semver": "^7.7.2",
108
- "superjson": "^2.2.1",
109
- "tsup": "^8.3.5",
110
- "tsx": "^3.12.1",
111
- "typescript": "^5.9.2",
112
- "uuid": "^9.0.1",
113
- "vite-tsconfig-paths": "^4.3.2",
114
- "vitest": "^3.1.3",
115
- "ws": "^8.18.2",
116
- "zod": "^3.20.2",
117
- "zx": "^8.3.2"
118
- },
119
- "exports": {
120
- ".": {
121
- "import": {
122
- "types": "./index.d.mts",
123
- "default": "./index.mjs"
124
- },
125
- "require": {
126
- "types": "./index.d.ts",
127
- "default": "./index.js"
128
- },
129
- "types": "./index.d.mts",
130
- "default": "./index.mjs"
131
- },
132
- "./api": {
133
- "import": {
134
- "types": "./api.d.mts",
135
- "default": "./api.mjs"
136
- },
137
- "require": {
138
- "types": "./api.d.ts",
139
- "default": "./api.js"
140
- },
141
- "types": "./api.d.mts",
142
- "default": "./api.mjs"
143
- }
144
- }
2
+ "name": "drizzle-kit",
3
+ "version": "1.0.0-beta.1-813549e",
4
+ "homepage": "https://orm.drizzle.team",
5
+ "keywords": [
6
+ "drizzle",
7
+ "orm",
8
+ "pg",
9
+ "mysql",
10
+ "singlestore",
11
+ "postgresql",
12
+ "postgres",
13
+ "sqlite",
14
+ "database",
15
+ "sql",
16
+ "typescript",
17
+ "ts",
18
+ "drizzle-kit",
19
+ "migrations",
20
+ "schema"
21
+ ],
22
+ "publishConfig": {
23
+ "provenance": true
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/drizzle-team/drizzle-orm.git"
28
+ },
29
+ "author": "Drizzle Team",
30
+ "license": "MIT",
31
+ "bin": {
32
+ "drizzle-kit": "./bin.cjs"
33
+ },
34
+ "scripts": {
35
+ "api": "tsx ./dev/api.ts",
36
+ "migrate:old": "drizzle-kit generate:mysql",
37
+ "cli": "tsx ./src/cli/index.ts",
38
+ "test": "TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest run",
39
+ "test:types": "pnpm tsc -p ./tsconfig.typetest.json",
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/",
43
+ "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
+ "pack": "cp package.json README.md dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
46
+ "pack:artifact": "pnpm run pack",
47
+ "publish": "npm publish package.tgz",
48
+ "test:postgres": "vitest run ./postgres/",
49
+ "test:other": "vitest run ./mysql/ ./sqlite/ ./other",
50
+ "test:cockroach": "vitest run ./cockroach",
51
+ "test:mssql": "vitest run ./mssql",
52
+ "test:gel": "vitest run ./gel",
53
+ "test:singlestore": "vitest run ./singlestore"
54
+ },
55
+ "dependencies": {
56
+ "@drizzle-team/brocli": "^0.10.2",
57
+ "@js-temporal/polyfill": "^0.5.1",
58
+ "esbuild": "^0.25.10",
59
+ "esbuild-register": "^3.6.0"
60
+ },
61
+ "devDependencies": {
62
+ "@aws-sdk/client-rds-data": "^3.556.0",
63
+ "@cloudflare/workers-types": "^4.20230518.0",
64
+ "@electric-sql/pglite": "^0.2.12",
65
+ "@hono/node-server": "^1.9.0",
66
+ "@hono/zod-validator": "^0.2.1",
67
+ "@libsql/client": "^0.10.0",
68
+ "@neondatabase/serverless": "^1.0.2",
69
+ "@originjs/vite-plugin-commonjs": "^1.0.3",
70
+ "@planetscale/database": "^1.19.0",
71
+ "@types/better-sqlite3": "^7.6.13",
72
+ "@types/bun": "^1.3.0",
73
+ "@types/dockerode": "^3.3.28",
74
+ "@types/glob": "^8.1.0",
75
+ "@types/json-diff": "^1.0.3",
76
+ "@types/micromatch": "^4.0.9",
77
+ "@types/minimatch": "^5.1.2",
78
+ "@types/mssql": "^9.1.4",
79
+ "@types/node": "^24.7.2",
80
+ "@types/pg": "^8.10.7",
81
+ "@types/pluralize": "^0.0.33",
82
+ "@types/semver": "^7.5.5",
83
+ "@types/uuid": "^9.0.8",
84
+ "@types/ws": "^8.5.10",
85
+ "@vercel/postgres": "^0.8.0",
86
+ "ava": "^5.1.0",
87
+ "better-sqlite3": "^11.9.1",
88
+ "bun-types": "^0.6.6",
89
+ "camelcase": "^7.0.1",
90
+ "chalk": "^5.2.0",
91
+ "commander": "^12.1.0",
92
+ "dockerode": "^4.0.6",
93
+ "dotenv": "^16.0.3",
94
+ "drizzle-kit": "^0.31.6",
95
+ "drizzle-orm": "workspace:./drizzle-orm/dist",
96
+ "env-paths": "^3.0.0",
97
+ "esbuild-node-externals": "^1.9.0",
98
+ "gel": "^2.0.0",
99
+ "get-port": "^6.1.2",
100
+ "glob": "^8.1.0",
101
+ "hanji": "^0.0.5",
102
+ "hono": "^4.7.9",
103
+ "json-diff": "1.0.6",
104
+ "micromatch": "^4.0.8",
105
+ "minimatch": "^7.4.3",
106
+ "mssql": "^12.0.0",
107
+ "mysql2": "3.14.1",
108
+ "node-fetch": "^3.3.2",
109
+ "ohm-js": "^17.1.0",
110
+ "orm044": "npm:drizzle-orm@0.44.1",
111
+ "pg": "^8.11.5",
112
+ "pluralize": "^8.0.0",
113
+ "postgres": "^3.4.4",
114
+ "prettier": "^3.5.3",
115
+ "semver": "^7.7.2",
116
+ "tsup": "^8.3.5",
117
+ "tsx": "^4.20.6",
118
+ "typescript": "^5.9.3",
119
+ "uuid": "^9.0.1",
120
+ "ws": "^8.18.2",
121
+ "zod": "^3.20.2",
122
+ "zx": "^8.3.2"
123
+ },
124
+ "exports": {
125
+ ".": {
126
+ "import": {
127
+ "types": "./index.d.mts",
128
+ "default": "./index.mjs"
129
+ },
130
+ "require": {
131
+ "types": "./index.d.ts",
132
+ "default": "./index.js"
133
+ },
134
+ "types": "./index.d.mts",
135
+ "default": "./index.mjs"
136
+ },
137
+ "./api-postgres": {
138
+ "import": {
139
+ "types": "./api-postgres.d.mts",
140
+ "default": "./api-postgres.mjs"
141
+ },
142
+ "require": {
143
+ "types": "./api-postgres.d.ts",
144
+ "default": "./api-postgres.js"
145
+ },
146
+ "types": "./api-postgres.d.mts",
147
+ "default": "./api-postgres.mjs"
148
+ }
149
+ }
145
150
  }