drizzle-kit 1.0.0-beta.1-27d2721 → 1.0.0-beta.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "1.0.0-beta.1-27d2721",
3
+ "version": "1.0.0-beta.1",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
@@ -35,44 +35,47 @@
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": "pnpm tsc && TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest",
39
- "build": "rm -rf ./dist && tsx build.ts && cp package.json dist/ && attw --pack dist",
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/",
40
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",
41
45
  "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",
46
+ "pack:artifact": "pnpm run pack",
43
47
  "publish": "npm publish package.tgz"
44
48
  },
45
49
  "dependencies": {
46
50
  "@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"
51
+ "@js-temporal/polyfill": "^0.5.1",
52
+ "esbuild": "^0.25.10",
53
+ "esbuild-register": "^3.6.0"
50
54
  },
51
55
  "devDependencies": {
52
- "@arethetypeswrong/cli": "^0.15.3",
53
56
  "@aws-sdk/client-rds-data": "^3.556.0",
54
57
  "@cloudflare/workers-types": "^4.20230518.0",
55
58
  "@electric-sql/pglite": "^0.2.12",
56
59
  "@hono/node-server": "^1.9.0",
57
60
  "@hono/zod-validator": "^0.2.1",
58
61
  "@libsql/client": "^0.10.0",
59
- "@neondatabase/serverless": "^0.9.1",
62
+ "@neondatabase/serverless": "^1.0.2",
60
63
  "@originjs/vite-plugin-commonjs": "^1.0.3",
61
- "@planetscale/database": "^1.16.0",
64
+ "@planetscale/database": "^1.19.0",
62
65
  "@types/better-sqlite3": "^7.6.13",
66
+ "@types/bun": "^1.3.0",
63
67
  "@types/dockerode": "^3.3.28",
64
68
  "@types/glob": "^8.1.0",
65
69
  "@types/json-diff": "^1.0.3",
66
70
  "@types/micromatch": "^4.0.9",
67
71
  "@types/minimatch": "^5.1.2",
68
- "@types/node": "^18.11.15",
72
+ "@types/mssql": "^9.1.4",
73
+ "@types/node": "^24.7.2",
69
74
  "@types/pg": "^8.10.7",
70
75
  "@types/pluralize": "^0.0.33",
71
76
  "@types/semver": "^7.5.5",
72
77
  "@types/uuid": "^9.0.8",
73
78
  "@types/ws": "^8.5.10",
74
- "@typescript-eslint/eslint-plugin": "^7.2.0",
75
- "@typescript-eslint/parser": "^7.2.0",
76
79
  "@vercel/postgres": "^0.8.0",
77
80
  "ava": "^5.1.0",
78
81
  "better-sqlite3": "^11.9.1",
@@ -82,13 +85,9 @@
82
85
  "commander": "^12.1.0",
83
86
  "dockerode": "^4.0.6",
84
87
  "dotenv": "^16.0.3",
85
- "drizzle-kit": "0.25.0-b1faa33",
86
88
  "drizzle-orm": "workspace:./drizzle-orm/dist",
87
89
  "env-paths": "^3.0.0",
88
90
  "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
91
  "gel": "^2.0.0",
93
92
  "get-port": "^6.1.2",
94
93
  "glob": "^8.1.0",
@@ -97,21 +96,20 @@
97
96
  "json-diff": "1.0.6",
98
97
  "micromatch": "^4.0.8",
99
98
  "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",
103
104
  "pg": "^8.11.5",
104
105
  "pluralize": "^8.0.0",
105
106
  "postgres": "^3.4.4",
106
107
  "prettier": "^3.5.3",
107
108
  "semver": "^7.7.2",
108
- "superjson": "^2.2.1",
109
109
  "tsup": "^8.3.5",
110
- "tsx": "^3.12.1",
111
- "typescript": "^5.9.2",
110
+ "tsx": "^4.20.6",
111
+ "typescript": "^5.9.3",
112
112
  "uuid": "^9.0.1",
113
- "vite-tsconfig-paths": "^4.3.2",
114
- "vitest": "^3.1.3",
115
113
  "ws": "^8.18.2",
116
114
  "zod": "^3.20.2",
117
115
  "zx": "^8.3.2"
@@ -129,17 +127,17 @@
129
127
  "types": "./index.d.mts",
130
128
  "default": "./index.mjs"
131
129
  },
132
- "./api": {
130
+ "./api-postgres": {
133
131
  "import": {
134
- "types": "./api.d.mts",
135
- "default": "./api.mjs"
132
+ "types": "./api-postgres.d.mts",
133
+ "default": "./api-postgres.mjs"
136
134
  },
137
135
  "require": {
138
- "types": "./api.d.ts",
139
- "default": "./api.js"
136
+ "types": "./api-postgres.d.ts",
137
+ "default": "./api-postgres.js"
140
138
  },
141
- "types": "./api.d.mts",
142
- "default": "./api.mjs"
139
+ "types": "./api-postgres.d.mts",
140
+ "default": "./api-postgres.mjs"
143
141
  }
144
142
  }
145
143
  }