drizzle-kit 0.24.2-8948f19 → 0.24.2-9140d23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/api.js +13 -20
  2. package/api.mjs +13 -20
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -106113,15 +106113,10 @@ var init_vercel_postgres = __esm({
106113
106113
  });
106114
106114
 
106115
106115
  // ../drizzle-orm/dist/monodriver.js
106116
- var importError, drizzle14;
106116
+ var drizzle14;
106117
106117
  var init_monodriver = __esm({
106118
106118
  "../drizzle-orm/dist/monodriver.js"() {
106119
106119
  "use strict";
106120
- importError = (libName) => {
106121
- throw new Error(
106122
- `Please install '${libName}' for Drizzle ORM to connect to database`
106123
- );
106124
- };
106125
106120
  drizzle14 = async (params) => {
106126
106121
  const { client, connection: connection2 } = params;
106127
106122
  const drizzleConfig = params;
@@ -106129,28 +106124,26 @@ var init_monodriver = __esm({
106129
106124
  delete drizzleConfig.connection;
106130
106125
  switch (client) {
106131
106126
  case "node-postgres": {
106132
- const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
106127
+ const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1));
106133
106128
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_node_postgres(), node_postgres_exports));
106134
106129
  const instance = new Pool2(connection2);
106135
106130
  return drizzle22(instance, drizzleConfig);
106136
106131
  }
106137
106132
  case "aws-data-api-pg": {
106138
- const { RDSDataClient: RDSDataClient2 } = await Promise.resolve().then(() => (init_dist_es54(), dist_es_exports14)).catch(
106139
- () => importError("@aws-sdk/client-rds-data")
106140
- );
106133
+ const { RDSDataClient: RDSDataClient2 } = await Promise.resolve().then(() => (init_dist_es54(), dist_es_exports14));
106141
106134
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_pg(), pg_exports));
106142
106135
  const instance = new RDSDataClient2(connection2);
106143
106136
  return drizzle22(instance, drizzleConfig);
106144
106137
  }
106145
106138
  case "better-sqlite3": {
106146
- const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1)).catch(() => importError("better-sqlite3"));
106139
+ const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1));
106147
106140
  const { filename, options } = connection2;
106148
106141
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_better_sqlite3(), better_sqlite3_exports));
106149
106142
  const instance = new Client4(filename, options);
106150
106143
  return drizzle22(instance, drizzleConfig);
106151
106144
  }
106152
106145
  case "bun-sqlite": {
106153
- const { Database: Client4 } = require("bun:sqlite").catch(() => importError("bun:sqlite"));
106146
+ const { Database: Client4 } = require("bun:sqlite");
106154
106147
  const { filename, options } = connection2;
106155
106148
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_bun_sqlite(), bun_sqlite_exports));
106156
106149
  const instance = new Client4(filename, options);
@@ -106161,32 +106154,32 @@ var init_monodriver = __esm({
106161
106154
  return drizzle22(connection2, drizzleConfig);
106162
106155
  }
106163
106156
  case "libsql": {
106164
- const { createClient: createClient3 } = await Promise.resolve().then(() => (init_node3(), node_exports)).catch(() => importError("@libsql/client"));
106157
+ const { createClient: createClient3 } = await Promise.resolve().then(() => (init_node3(), node_exports));
106165
106158
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_libsql(), libsql_exports));
106166
106159
  const instance = createClient3(connection2);
106167
106160
  return drizzle22(instance, drizzleConfig);
106168
106161
  }
106169
106162
  case "mysql2": {
106170
- const { createConnection } = await Promise.resolve().then(() => __toESM(require_promise(), 1)).catch(() => importError("mysql2/promise"));
106163
+ const { createConnection } = await Promise.resolve().then(() => __toESM(require_promise(), 1));
106171
106164
  const instance = await createConnection(connection2);
106172
106165
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_mysql2(), mysql2_exports));
106173
106166
  return drizzle22(instance, drizzleConfig);
106174
106167
  }
106175
106168
  case "neon-http": {
106176
- const { neon } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
106169
+ const { neon } = await Promise.resolve().then(() => (init_serverless(), serverless_exports));
106177
106170
  const { connectionString, options } = connection2;
106178
106171
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_http(), neon_http_exports));
106179
106172
  const instance = neon(connectionString, options);
106180
106173
  return drizzle22(instance, drizzleConfig);
106181
106174
  }
106182
106175
  case "neon-serverless": {
106183
- const { Pool: Pool2 } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
106176
+ const { Pool: Pool2 } = await Promise.resolve().then(() => (init_serverless(), serverless_exports));
106184
106177
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_serverless(), neon_serverless_exports));
106185
106178
  const instance = new Pool2(connection2);
106186
106179
  return drizzle22(instance, drizzleConfig);
106187
106180
  }
106188
106181
  case "planetscale": {
106189
- const { Client: Client4 } = await Promise.resolve().then(() => (init_dist(), dist_exports)).catch(() => importError("@planetscale/database"));
106182
+ const { Client: Client4 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
106190
106183
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_planetscale_serverless(), planetscale_serverless_exports));
106191
106184
  const instance = new Client4(
106192
106185
  connection2
@@ -106194,19 +106187,19 @@ var init_monodriver = __esm({
106194
106187
  return drizzle22(instance, drizzleConfig);
106195
106188
  }
106196
106189
  case "postgres-js": {
106197
- const { default: client2 } = await Promise.resolve().then(() => (init_src(), src_exports)).catch(() => importError("postgres"));
106190
+ const { default: client2 } = await Promise.resolve().then(() => (init_src(), src_exports));
106198
106191
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_postgres_js(), postgres_js_exports));
106199
106192
  const instance = client2(connection2);
106200
106193
  return drizzle22(instance, drizzleConfig);
106201
106194
  }
106202
106195
  case "tidb-serverless": {
106203
- const { connect: connect3 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2)).catch(() => importError("@tidbcloud/serverless"));
106196
+ const { connect: connect3 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2));
106204
106197
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_tidb_serverless(), tidb_serverless_exports));
106205
106198
  const instance = connect3(connection2);
106206
106199
  return drizzle22(instance, drizzleConfig);
106207
106200
  }
106208
106201
  case "vercel-postgres": {
106209
- const { sql: sql3 } = await Promise.resolve().then(() => (init_index_node(), index_node_exports)).catch(() => importError("@vercel/postgres"));
106202
+ const { sql: sql3 } = await Promise.resolve().then(() => (init_index_node(), index_node_exports));
106210
106203
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_vercel_postgres(), vercel_postgres_exports));
106211
106204
  return drizzle22(sql3, drizzleConfig);
106212
106205
  }
package/api.mjs CHANGED
@@ -106116,15 +106116,10 @@ var init_vercel_postgres = __esm({
106116
106116
  });
106117
106117
 
106118
106118
  // ../drizzle-orm/dist/monodriver.js
106119
- var importError, drizzle14;
106119
+ var drizzle14;
106120
106120
  var init_monodriver = __esm({
106121
106121
  "../drizzle-orm/dist/monodriver.js"() {
106122
106122
  "use strict";
106123
- importError = (libName) => {
106124
- throw new Error(
106125
- `Please install '${libName}' for Drizzle ORM to connect to database`
106126
- );
106127
- };
106128
106123
  drizzle14 = async (params) => {
106129
106124
  const { client, connection: connection2 } = params;
106130
106125
  const drizzleConfig = params;
@@ -106132,28 +106127,26 @@ var init_monodriver = __esm({
106132
106127
  delete drizzleConfig.connection;
106133
106128
  switch (client) {
106134
106129
  case "node-postgres": {
106135
- const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
106130
+ const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1));
106136
106131
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_node_postgres(), node_postgres_exports));
106137
106132
  const instance = new Pool2(connection2);
106138
106133
  return drizzle22(instance, drizzleConfig);
106139
106134
  }
106140
106135
  case "aws-data-api-pg": {
106141
- const { RDSDataClient: RDSDataClient2 } = await Promise.resolve().then(() => (init_dist_es54(), dist_es_exports14)).catch(
106142
- () => importError("@aws-sdk/client-rds-data")
106143
- );
106136
+ const { RDSDataClient: RDSDataClient2 } = await Promise.resolve().then(() => (init_dist_es54(), dist_es_exports14));
106144
106137
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_pg(), pg_exports));
106145
106138
  const instance = new RDSDataClient2(connection2);
106146
106139
  return drizzle22(instance, drizzleConfig);
106147
106140
  }
106148
106141
  case "better-sqlite3": {
106149
- const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1)).catch(() => importError("better-sqlite3"));
106142
+ const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1));
106150
106143
  const { filename, options } = connection2;
106151
106144
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_better_sqlite3(), better_sqlite3_exports));
106152
106145
  const instance = new Client4(filename, options);
106153
106146
  return drizzle22(instance, drizzleConfig);
106154
106147
  }
106155
106148
  case "bun-sqlite": {
106156
- const { Database: Client4 } = await import("bun:sqlite").catch(() => importError("bun:sqlite"));
106149
+ const { Database: Client4 } = await import("bun:sqlite");
106157
106150
  const { filename, options } = connection2;
106158
106151
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_bun_sqlite(), bun_sqlite_exports));
106159
106152
  const instance = new Client4(filename, options);
@@ -106164,32 +106157,32 @@ var init_monodriver = __esm({
106164
106157
  return drizzle22(connection2, drizzleConfig);
106165
106158
  }
106166
106159
  case "libsql": {
106167
- const { createClient: createClient3 } = await Promise.resolve().then(() => (init_node3(), node_exports)).catch(() => importError("@libsql/client"));
106160
+ const { createClient: createClient3 } = await Promise.resolve().then(() => (init_node3(), node_exports));
106168
106161
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_libsql(), libsql_exports));
106169
106162
  const instance = createClient3(connection2);
106170
106163
  return drizzle22(instance, drizzleConfig);
106171
106164
  }
106172
106165
  case "mysql2": {
106173
- const { createConnection } = await Promise.resolve().then(() => __toESM(require_promise(), 1)).catch(() => importError("mysql2/promise"));
106166
+ const { createConnection } = await Promise.resolve().then(() => __toESM(require_promise(), 1));
106174
106167
  const instance = await createConnection(connection2);
106175
106168
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_mysql2(), mysql2_exports));
106176
106169
  return drizzle22(instance, drizzleConfig);
106177
106170
  }
106178
106171
  case "neon-http": {
106179
- const { neon } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
106172
+ const { neon } = await Promise.resolve().then(() => (init_serverless(), serverless_exports));
106180
106173
  const { connectionString, options } = connection2;
106181
106174
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_http(), neon_http_exports));
106182
106175
  const instance = neon(connectionString, options);
106183
106176
  return drizzle22(instance, drizzleConfig);
106184
106177
  }
106185
106178
  case "neon-serverless": {
106186
- const { Pool: Pool2 } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
106179
+ const { Pool: Pool2 } = await Promise.resolve().then(() => (init_serverless(), serverless_exports));
106187
106180
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_serverless(), neon_serverless_exports));
106188
106181
  const instance = new Pool2(connection2);
106189
106182
  return drizzle22(instance, drizzleConfig);
106190
106183
  }
106191
106184
  case "planetscale": {
106192
- const { Client: Client4 } = await Promise.resolve().then(() => (init_dist(), dist_exports)).catch(() => importError("@planetscale/database"));
106185
+ const { Client: Client4 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
106193
106186
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_planetscale_serverless(), planetscale_serverless_exports));
106194
106187
  const instance = new Client4(
106195
106188
  connection2
@@ -106197,19 +106190,19 @@ var init_monodriver = __esm({
106197
106190
  return drizzle22(instance, drizzleConfig);
106198
106191
  }
106199
106192
  case "postgres-js": {
106200
- const { default: client2 } = await Promise.resolve().then(() => (init_src(), src_exports)).catch(() => importError("postgres"));
106193
+ const { default: client2 } = await Promise.resolve().then(() => (init_src(), src_exports));
106201
106194
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_postgres_js(), postgres_js_exports));
106202
106195
  const instance = client2(connection2);
106203
106196
  return drizzle22(instance, drizzleConfig);
106204
106197
  }
106205
106198
  case "tidb-serverless": {
106206
- const { connect: connect3 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2)).catch(() => importError("@tidbcloud/serverless"));
106199
+ const { connect: connect3 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2));
106207
106200
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_tidb_serverless(), tidb_serverless_exports));
106208
106201
  const instance = connect3(connection2);
106209
106202
  return drizzle22(instance, drizzleConfig);
106210
106203
  }
106211
106204
  case "vercel-postgres": {
106212
- const { sql: sql3 } = await Promise.resolve().then(() => (init_index_node(), index_node_exports)).catch(() => importError("@vercel/postgres"));
106205
+ const { sql: sql3 } = await Promise.resolve().then(() => (init_index_node(), index_node_exports));
106213
106206
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_vercel_postgres(), vercel_postgres_exports));
106214
106207
  return drizzle22(sql3, drizzleConfig);
106215
106208
  }
package/bin.cjs CHANGED
@@ -84028,7 +84028,7 @@ init_utils2();
84028
84028
  var version2 = async () => {
84029
84029
  const { npmVersion } = await ormCoreVersions();
84030
84030
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
84031
- const envVersion = "0.24.2-8948f19";
84031
+ const envVersion = "0.24.2-9140d23";
84032
84032
  const kitVersion = envVersion ? `v${envVersion}` : "--";
84033
84033
  const versions = `drizzle-kit: ${kitVersion}
84034
84034
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.24.2-8948f19",
3
+ "version": "0.24.2-9140d23",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",