drizzle-kit 0.28.1-6f7d345 → 0.28.1-7665ad9

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 +2457 -1667
  2. package/api.mjs +2457 -1667
  3. package/bin.cjs +15 -13
  4. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -8959,7 +8959,7 @@ var init_utils2 = __esm({
8959
8959
  assertOrmCoreVersion = async () => {
8960
8960
  try {
8961
8961
  const { compatibilityVersion } = await import("drizzle-orm/version");
8962
- await import("drizzle-orm/relations");
8962
+ await import("drizzle-orm/_relations");
8963
8963
  if (compatibilityVersion && compatibilityVersion === requiredApiVersion) {
8964
8964
  return;
8965
8965
  }
@@ -76870,6 +76870,7 @@ var init_connections = __esm({
76870
76870
  rdsClient,
76871
76871
  new PgDialect2(),
76872
76872
  void 0,
76873
+ void 0,
76873
76874
  config,
76874
76875
  void 0
76875
76876
  );
@@ -81235,7 +81236,7 @@ var init_introspect_pg = __esm({
81235
81236
  "src/introspect-pg.ts"() {
81236
81237
  "use strict";
81237
81238
  import_drizzle_orm7 = require("drizzle-orm");
81238
- import_relations = require("drizzle-orm/relations");
81239
+ import_relations = require("drizzle-orm/_relations");
81239
81240
  init_utils3();
81240
81241
  import_casing4 = require("drizzle-orm/casing");
81241
81242
  init_global();
@@ -82494,7 +82495,7 @@ var init_introspect = __esm({
82494
82495
  });
82495
82496
  });
82496
82497
  const uniqueImports = [...new Set(imports)];
82497
- const importsTs = `import { relations } from "drizzle-orm/relations";
82498
+ const importsTs = `import { relations } from "drizzle-orm/_relations";
82498
82499
  import { ${uniqueImports.join(
82499
82500
  ", "
82500
82501
  )} } from "./schema";
@@ -85858,7 +85859,7 @@ __export(studio_exports, {
85858
85859
  prepareSQLiteSchema: () => prepareSQLiteSchema,
85859
85860
  prepareServer: () => prepareServer
85860
85861
  });
85861
- var import_crypto9, import_drizzle_orm8, import_mysql_core3, import_pg_core3, import_sqlite_core3, import_fs12, import_node_https2, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, getCustomDefaults, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleForLibSQL, extractRelations, init, proxySchema, defaultsSchema, schema4, jsonStringify, prepareServer;
85862
+ var import_crypto9, import_drizzle_orm8, import_relations2, import_mysql_core3, import_pg_core3, import_sqlite_core3, import_fs12, import_node_https2, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, getCustomDefaults, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleForLibSQL, extractRelations, init, proxySchema, defaultsSchema, schema4, jsonStringify, prepareServer;
85862
85863
  var init_studio2 = __esm({
85863
85864
  "src/serializer/studio.ts"() {
85864
85865
  "use strict";
@@ -85866,6 +85867,7 @@ var init_studio2 = __esm({
85866
85867
  init_esm();
85867
85868
  import_crypto9 = require("crypto");
85868
85869
  import_drizzle_orm8 = require("drizzle-orm");
85870
+ import_relations2 = require("drizzle-orm/_relations");
85869
85871
  import_mysql_core3 = require("drizzle-orm/mysql-core");
85870
85872
  import_pg_core3 = require("drizzle-orm/pg-core");
85871
85873
  import_sqlite_core3 = require("drizzle-orm/sqlite-core");
@@ -85899,7 +85901,7 @@ var init_studio2 = __esm({
85899
85901
  pgSchema2[schema5] = pgSchema2[schema5] || {};
85900
85902
  pgSchema2[schema5][k] = t2;
85901
85903
  }
85902
- if ((0, import_drizzle_orm8.is)(t2, import_drizzle_orm8.Relations)) {
85904
+ if ((0, import_drizzle_orm8.is)(t2, import_relations2.Relations)) {
85903
85905
  relations4[k] = t2;
85904
85906
  }
85905
85907
  });
@@ -85928,7 +85930,7 @@ var init_studio2 = __esm({
85928
85930
  const schema5 = (0, import_mysql_core3.getTableConfig)(t2).schema || "public";
85929
85931
  mysqlSchema3[schema5][k] = t2;
85930
85932
  }
85931
- if ((0, import_drizzle_orm8.is)(t2, import_drizzle_orm8.Relations)) {
85933
+ if ((0, import_drizzle_orm8.is)(t2, import_relations2.Relations)) {
85932
85934
  relations4[k] = t2;
85933
85935
  }
85934
85936
  });
@@ -85957,7 +85959,7 @@ var init_studio2 = __esm({
85957
85959
  const schema5 = "public";
85958
85960
  sqliteSchema2[schema5][k] = t2;
85959
85961
  }
85960
- if ((0, import_drizzle_orm8.is)(t2, import_drizzle_orm8.Relations)) {
85962
+ if ((0, import_drizzle_orm8.is)(t2, import_relations2.Relations)) {
85961
85963
  relations4[k] = t2;
85962
85964
  }
85963
85965
  });
@@ -86090,7 +86092,7 @@ var init_studio2 = __esm({
86090
86092
  extractRelations = (tablesConfig) => {
86091
86093
  const relations4 = Object.values(tablesConfig.tables).map(
86092
86094
  (it) => Object.entries(it.relations).map(([name, relation]) => {
86093
- const normalized = (0, import_drizzle_orm8.normalizeRelation)(
86095
+ const normalized = (0, import_relations2.normalizeRelation)(
86094
86096
  tablesConfig.tables,
86095
86097
  tablesConfig.tableNamesMap,
86096
86098
  relation
@@ -86111,9 +86113,9 @@ var init_studio2 = __esm({
86111
86113
  throw new Error("unsupported dialect");
86112
86114
  }
86113
86115
  let type;
86114
- if ((0, import_drizzle_orm8.is)(rel, import_drizzle_orm8.One)) {
86116
+ if ((0, import_drizzle_orm8.is)(rel, import_relations2.One)) {
86115
86117
  type = "one";
86116
- } else if ((0, import_drizzle_orm8.is)(rel, import_drizzle_orm8.Many)) {
86118
+ } else if ((0, import_drizzle_orm8.is)(rel, import_relations2.Many)) {
86117
86119
  type = "many";
86118
86120
  } else {
86119
86121
  throw new Error("unsupported relation type");
@@ -86218,9 +86220,9 @@ var init_studio2 = __esm({
86218
86220
  ),
86219
86221
  ...relations4
86220
86222
  };
86221
- const relationsConfig = (0, import_drizzle_orm8.extractTablesRelationalConfig)(
86223
+ const relationsConfig = (0, import_relations2.extractTablesRelationalConfig)(
86222
86224
  relationalSchema,
86223
- import_drizzle_orm8.createTableRelationsHelpers
86225
+ import_relations2.createTableRelationsHelpers
86224
86226
  );
86225
86227
  app.post("/", zValidator("json", schema4), async (c) => {
86226
86228
  const body = c.req.valid("json");
@@ -89644,7 +89646,7 @@ init_utils2();
89644
89646
  var version2 = async () => {
89645
89647
  const { npmVersion } = await ormCoreVersions();
89646
89648
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
89647
- const envVersion = "0.28.1-6f7d345";
89649
+ const envVersion = "0.28.1-7665ad9";
89648
89650
  const kitVersion = envVersion ? `v${envVersion}` : "--";
89649
89651
  const versions = `drizzle-kit: ${kitVersion}
89650
89652
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.28.1-6f7d345",
3
+ "version": "0.28.1-7665ad9",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",