drizzle-kit 0.20.18-d190692 → 0.21.0-178d0dc

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.mts CHANGED
@@ -9,6 +9,99 @@ declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
9
9
  type Dialect = TypeOf<typeof dialect>;
10
10
 
11
11
  type Verify<T, U extends T> = U;
12
+ /**
13
+ * **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
14
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
15
+ *
16
+ *
17
+ * **Config** usage:
18
+ *
19
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
20
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`
21
+ *
22
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
23
+ *
24
+ * ---
25
+ * `schema` - param lets you define where your schema file/files live.
26
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
27
+ *
28
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
29
+ *
30
+ * ---
31
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
32
+ *
33
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
34
+ *
35
+ * ---
36
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
37
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`
38
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
39
+ *
40
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
41
+ *
42
+ * ---
43
+ *
44
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
45
+ *
46
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
47
+ *
48
+ * ---
49
+ *
50
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
51
+ * By default, all information about executed migrations will be stored in the database inside
52
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
53
+ * However, you can configure where to store those records.
54
+ *
55
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
56
+ *
57
+ * ---
58
+ *
59
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
60
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
61
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
62
+ * Drizzle ORM has to apply them sequentially one by one.
63
+ *
64
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
65
+ *
66
+ * ---
67
+ *
68
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
69
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
70
+ *
71
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
72
+ *
73
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
74
+ *
75
+ * ---
76
+ *
77
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
78
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
79
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
80
+ * but you can add any schema you need.
81
+ *
82
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
83
+ * drizzle schema that are a part of the my_schema schema.
84
+ *
85
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
86
+ *
87
+ * ---
88
+ *
89
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
90
+ *
91
+ * > Note: This command will only print the statements that should be executed.
92
+ * To approve them before applying, please refer to the `strict` command.
93
+ *
94
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
95
+ *
96
+ * ---
97
+ *
98
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
99
+ * either to execute all statements needed to sync your schema with the database or not.
100
+ *
101
+ *
102
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
103
+ *
104
+ */
12
105
  type Config = {
13
106
  dialect: Dialect;
14
107
  out?: string;
@@ -80,6 +173,99 @@ type Config = {
80
173
  dialect: Verify<Dialect, "sqlite">;
81
174
  driver: Verify<Driver, "expo">;
82
175
  } | {});
176
+ /**
177
+ * **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
178
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
179
+ *
180
+ *
181
+ * **Config** usage:
182
+ *
183
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
184
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`
185
+ *
186
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
187
+ *
188
+ * ---
189
+ * `schema` - param lets you define where your schema file/files live.
190
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
191
+ *
192
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
193
+ *
194
+ * ---
195
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
196
+ *
197
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
198
+ *
199
+ * ---
200
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
201
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`
202
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
203
+ *
204
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
205
+ *
206
+ * ---
207
+ *
208
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
209
+ *
210
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
211
+ *
212
+ * ---
213
+ *
214
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
215
+ * By default, all information about executed migrations will be stored in the database inside
216
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
217
+ * However, you can configure where to store those records.
218
+ *
219
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
220
+ *
221
+ * ---
222
+ *
223
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
224
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
225
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
226
+ * Drizzle ORM has to apply them sequentially one by one.
227
+ *
228
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
229
+ *
230
+ * ---
231
+ *
232
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
233
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
234
+ *
235
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
236
+ *
237
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
238
+ *
239
+ * ---
240
+ *
241
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
242
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
243
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
244
+ * but you can add any schema you need.
245
+ *
246
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
247
+ * drizzle schema that are a part of the my_schema schema.
248
+ *
249
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
250
+ *
251
+ * ---
252
+ *
253
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
254
+ *
255
+ * > Note: This command will only print the statements that should be executed.
256
+ * To approve them before applying, please refer to the `strict` command.
257
+ *
258
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
259
+ *
260
+ * ---
261
+ *
262
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
263
+ * either to execute all statements needed to sync your schema with the database or not.
264
+ *
265
+ *
266
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
267
+ *
268
+ */
83
269
  declare function defineConfig(config: Config): Config;
84
270
 
85
271
  export { type Config, defineConfig };
package/index.d.ts CHANGED
@@ -9,6 +9,99 @@ declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
9
9
  type Dialect = TypeOf<typeof dialect>;
10
10
 
11
11
  type Verify<T, U extends T> = U;
12
+ /**
13
+ * **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
14
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
15
+ *
16
+ *
17
+ * **Config** usage:
18
+ *
19
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
20
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`
21
+ *
22
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
23
+ *
24
+ * ---
25
+ * `schema` - param lets you define where your schema file/files live.
26
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
27
+ *
28
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
29
+ *
30
+ * ---
31
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
32
+ *
33
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
34
+ *
35
+ * ---
36
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
37
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`
38
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
39
+ *
40
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
41
+ *
42
+ * ---
43
+ *
44
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
45
+ *
46
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
47
+ *
48
+ * ---
49
+ *
50
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
51
+ * By default, all information about executed migrations will be stored in the database inside
52
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
53
+ * However, you can configure where to store those records.
54
+ *
55
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
56
+ *
57
+ * ---
58
+ *
59
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
60
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
61
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
62
+ * Drizzle ORM has to apply them sequentially one by one.
63
+ *
64
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
65
+ *
66
+ * ---
67
+ *
68
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
69
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
70
+ *
71
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
72
+ *
73
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
74
+ *
75
+ * ---
76
+ *
77
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
78
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
79
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
80
+ * but you can add any schema you need.
81
+ *
82
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
83
+ * drizzle schema that are a part of the my_schema schema.
84
+ *
85
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
86
+ *
87
+ * ---
88
+ *
89
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
90
+ *
91
+ * > Note: This command will only print the statements that should be executed.
92
+ * To approve them before applying, please refer to the `strict` command.
93
+ *
94
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
95
+ *
96
+ * ---
97
+ *
98
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
99
+ * either to execute all statements needed to sync your schema with the database or not.
100
+ *
101
+ *
102
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
103
+ *
104
+ */
12
105
  type Config = {
13
106
  dialect: Dialect;
14
107
  out?: string;
@@ -80,6 +173,99 @@ type Config = {
80
173
  dialect: Verify<Dialect, "sqlite">;
81
174
  driver: Verify<Driver, "expo">;
82
175
  } | {});
176
+ /**
177
+ * **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
178
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
179
+ *
180
+ *
181
+ * **Config** usage:
182
+ *
183
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
184
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`
185
+ *
186
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
187
+ *
188
+ * ---
189
+ * `schema` - param lets you define where your schema file/files live.
190
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
191
+ *
192
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
193
+ *
194
+ * ---
195
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
196
+ *
197
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
198
+ *
199
+ * ---
200
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
201
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`
202
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
203
+ *
204
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
205
+ *
206
+ * ---
207
+ *
208
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
209
+ *
210
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
211
+ *
212
+ * ---
213
+ *
214
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
215
+ * By default, all information about executed migrations will be stored in the database inside
216
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
217
+ * However, you can configure where to store those records.
218
+ *
219
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
220
+ *
221
+ * ---
222
+ *
223
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
224
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
225
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
226
+ * Drizzle ORM has to apply them sequentially one by one.
227
+ *
228
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
229
+ *
230
+ * ---
231
+ *
232
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
233
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
234
+ *
235
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
236
+ *
237
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
238
+ *
239
+ * ---
240
+ *
241
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
242
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
243
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
244
+ * but you can add any schema you need.
245
+ *
246
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
247
+ * drizzle schema that are a part of the my_schema schema.
248
+ *
249
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
250
+ *
251
+ * ---
252
+ *
253
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
254
+ *
255
+ * > Note: This command will only print the statements that should be executed.
256
+ * To approve them before applying, please refer to the `strict` command.
257
+ *
258
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
259
+ *
260
+ * ---
261
+ *
262
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
263
+ * either to execute all statements needed to sync your schema with the database or not.
264
+ *
265
+ *
266
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
267
+ *
268
+ */
83
269
  declare function defineConfig(config: Config): Config;
84
270
 
85
271
  export { type Config, defineConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.18-d190692",
3
+ "version": "0.21.0-178d0dc",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -20,24 +20,13 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@esbuild-kit/esm-loader": "^2.5.5",
23
- "@hono/node-server": "^1.9.0",
24
- "@hono/zod-validator": "^0.2.0",
25
- "@types/json-diff": "^1.0.3",
26
- "camelcase": "^7.0.1",
27
- "chalk": "^5.2.0",
28
23
  "commander": "^9.4.1",
29
24
  "env-paths": "^3.0.0",
30
25
  "esbuild": "^0.19.7",
31
26
  "esbuild-register": "^3.5.0",
32
27
  "glob": "^8.1.0",
33
28
  "hanji": "^0.0.5",
34
- "hono": "^4.1.4",
35
29
  "json-diff": "0.9.0",
36
- "minimatch": "^7.4.3",
37
- "pluralize": "^8.0.0",
38
- "semver": "^7.5.4",
39
- "superjson": "^2.2.1",
40
- "ws": "^8.16.0",
41
30
  "zod": "^3.20.2"
42
31
  },
43
32
  "devDependencies": {
@@ -45,6 +34,8 @@
45
34
  "@aws-sdk/client-rds-data": "^3.556.0",
46
35
  "@cloudflare/workers-types": "^4.20230518.0",
47
36
  "@electric-sql/pglite": "^0.1.3",
37
+ "@hono/node-server": "^1.9.0",
38
+ "@hono/zod-validator": "^0.2.1",
48
39
  "@libsql/client": "^0.4.2",
49
40
  "@neondatabase/serverless": "^0.9.1",
50
41
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -52,6 +43,7 @@
52
43
  "@types/better-sqlite3": "^7.6.4",
53
44
  "@types/dockerode": "^3.3.28",
54
45
  "@types/glob": "^8.1.0",
46
+ "@types/json-diff": "^1.0.3",
55
47
  "@types/minimatch": "^5.1.2",
56
48
  "@types/node": "^18.11.15",
57
49
  "@types/pg": "^8.10.7",
@@ -64,6 +56,8 @@
64
56
  "@vercel/postgres": "^0.8.0",
65
57
  "ava": "^5.1.0",
66
58
  "better-sqlite3": "^9.4.3",
59
+ "camelcase": "^7.0.1",
60
+ "chalk": "^5.2.0",
67
61
  "dockerode": "^3.3.4",
68
62
  "dotenv": "^16.0.3",
69
63
  "drizzle-kit": "0.20.14",
@@ -73,10 +67,15 @@
73
67
  "eslint-config-prettier": "^9.1.0",
74
68
  "eslint-plugin-prettier": "^5.1.3",
75
69
  "get-port": "^6.1.2",
70
+ "hono": "^4.1.5",
71
+ "minimatch": "^7.4.3",
76
72
  "mysql2": "2.3.3",
77
73
  "pg": "^8.11.3",
74
+ "pluralize": "^8.0.0",
78
75
  "postgres": "^3.4.4",
79
76
  "prettier": "^2.8.1",
77
+ "semver": "^7.5.4",
78
+ "superjson": "^2.2.1",
80
79
  "tsup": "^8.0.2",
81
80
  "tsx": "^3.12.1",
82
81
  "typescript": "^5.4.3",
@@ -84,6 +83,7 @@
84
83
  "vite-tsconfig-paths": "^4.3.2",
85
84
  "vitest": "^1.4.0",
86
85
  "wrangler": "^3.22.1",
86
+ "ws": "^8.16.0",
87
87
  "zx": "^7.2.2"
88
88
  },
89
89
  "exports": {
@@ -111,5 +111,10 @@
111
111
  "types": "./payload.d.mts",
112
112
  "default": "./payload.mjs"
113
113
  }
114
+ },
115
+ "pnpm": {
116
+ "patchedDependencies": {
117
+ "difflib@0.2.4": "patches/difflib@0.2.4.patch"
118
+ }
114
119
  }
115
120
  }