drizzle-kit 0.25.0-225f91d → 0.25.0-22c3e40

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
@@ -124,13 +124,6 @@ type Config = {
124
124
  introspect?: {
125
125
  casing: 'camel' | 'preserve';
126
126
  };
127
- entities?: {
128
- roles?: boolean | {
129
- provider?: string;
130
- exclude?: string[];
131
- include?: string[];
132
- }[];
133
- };
134
127
  } & ({
135
128
  dialect: Verify<Dialect, 'turso'>;
136
129
  dbCredentials: {
package/index.d.ts CHANGED
@@ -124,13 +124,6 @@ type Config = {
124
124
  introspect?: {
125
125
  casing: 'camel' | 'preserve';
126
126
  };
127
- entities?: {
128
- roles?: boolean | {
129
- provider?: string;
130
- exclude?: string[];
131
- include?: string[];
132
- }[];
133
- };
134
127
  } & ({
135
128
  dialect: Verify<Dialect, 'turso'>;
136
129
  dbCredentials: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.25.0-225f91d",
3
+ "version": "0.25.0-22c3e40",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
@@ -51,7 +51,7 @@
51
51
  "@arethetypeswrong/cli": "^0.15.3",
52
52
  "@aws-sdk/client-rds-data": "^3.556.0",
53
53
  "@cloudflare/workers-types": "^4.20230518.0",
54
- "@electric-sql/pglite": "^0.2.5",
54
+ "@electric-sql/pglite": "^0.1.5",
55
55
  "@hono/node-server": "^1.9.0",
56
56
  "@hono/zod-validator": "^0.2.1",
57
57
  "@libsql/client": "^0.10.0",
package/utils.js CHANGED
@@ -5149,12 +5149,6 @@ var sequenceSchema = objectType({
5149
5149
  cycle: booleanType().optional(),
5150
5150
  schema: stringType()
5151
5151
  }).strict();
5152
- var roleSchema = objectType({
5153
- name: stringType(),
5154
- createDb: booleanType().optional(),
5155
- createRole: booleanType().optional(),
5156
- inherit: booleanType().optional()
5157
- }).strict();
5158
5152
  var sequenceSquashed = objectType({
5159
5153
  name: stringType(),
5160
5154
  schema: stringType(),
@@ -5218,14 +5212,6 @@ var uniqueConstraint2 = objectType({
5218
5212
  columns: stringType().array(),
5219
5213
  nullsNotDistinct: booleanType()
5220
5214
  }).strict();
5221
- var policy = objectType({
5222
- name: stringType(),
5223
- as: enumType(["PERMISSIVE", "RESTRICTIVE"]).optional(),
5224
- for: enumType(["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]).optional(),
5225
- to: stringType().array().optional(),
5226
- using: stringType().optional(),
5227
- withCheck: stringType().optional()
5228
- }).strict();
5229
5215
  var tableV42 = objectType({
5230
5216
  name: stringType(),
5231
5217
  schema: stringType(),
@@ -5267,8 +5253,7 @@ var table2 = objectType({
5267
5253
  indexes: recordType(stringType(), index2),
5268
5254
  foreignKeys: recordType(stringType(), fk2),
5269
5255
  compositePrimaryKeys: recordType(stringType(), compositePK2),
5270
- uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
5271
- policies: recordType(stringType(), policy).default({})
5256
+ uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
5272
5257
  }).strict();
5273
5258
  var schemaHash2 = objectType({
5274
5259
  id: stringType(),
@@ -5362,7 +5347,6 @@ var pgSchemaInternal = objectType({
5362
5347
  enums: recordType(stringType(), enumSchema),
5363
5348
  schemas: recordType(stringType(), stringType()),
5364
5349
  sequences: recordType(stringType(), sequenceSchema).default({}),
5365
- roles: recordType(stringType(), roleSchema).default({}),
5366
5350
  _meta: objectType({
5367
5351
  schemas: recordType(stringType(), stringType()),
5368
5352
  tables: recordType(stringType(), stringType()),
@@ -5377,8 +5361,7 @@ var tableSquashed2 = objectType({
5377
5361
  indexes: recordType(stringType(), stringType()),
5378
5362
  foreignKeys: recordType(stringType(), stringType()),
5379
5363
  compositePrimaryKeys: recordType(stringType(), stringType()),
5380
- uniqueConstraints: recordType(stringType(), stringType()),
5381
- policies: recordType(stringType(), stringType())
5364
+ uniqueConstraints: recordType(stringType(), stringType())
5382
5365
  }).strict();
5383
5366
  var tableSquashedV42 = objectType({
5384
5367
  name: stringType(),
@@ -5407,8 +5390,7 @@ var pgSchemaSquashed = objectType({
5407
5390
  tables: recordType(stringType(), tableSquashed2),
5408
5391
  enums: recordType(stringType(), enumSchema),
5409
5392
  schemas: recordType(stringType(), stringType()),
5410
- sequences: recordType(stringType(), sequenceSquashed),
5411
- roles: recordType(stringType(), roleSchema).default({})
5393
+ sequences: recordType(stringType(), sequenceSquashed)
5412
5394
  }).strict();
5413
5395
  var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
5414
5396
  var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
package/utils.mjs CHANGED
@@ -5127,12 +5127,6 @@ var sequenceSchema = objectType({
5127
5127
  cycle: booleanType().optional(),
5128
5128
  schema: stringType()
5129
5129
  }).strict();
5130
- var roleSchema = objectType({
5131
- name: stringType(),
5132
- createDb: booleanType().optional(),
5133
- createRole: booleanType().optional(),
5134
- inherit: booleanType().optional()
5135
- }).strict();
5136
5130
  var sequenceSquashed = objectType({
5137
5131
  name: stringType(),
5138
5132
  schema: stringType(),
@@ -5196,14 +5190,6 @@ var uniqueConstraint2 = objectType({
5196
5190
  columns: stringType().array(),
5197
5191
  nullsNotDistinct: booleanType()
5198
5192
  }).strict();
5199
- var policy = objectType({
5200
- name: stringType(),
5201
- as: enumType(["PERMISSIVE", "RESTRICTIVE"]).optional(),
5202
- for: enumType(["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]).optional(),
5203
- to: stringType().array().optional(),
5204
- using: stringType().optional(),
5205
- withCheck: stringType().optional()
5206
- }).strict();
5207
5193
  var tableV42 = objectType({
5208
5194
  name: stringType(),
5209
5195
  schema: stringType(),
@@ -5245,8 +5231,7 @@ var table2 = objectType({
5245
5231
  indexes: recordType(stringType(), index2),
5246
5232
  foreignKeys: recordType(stringType(), fk2),
5247
5233
  compositePrimaryKeys: recordType(stringType(), compositePK2),
5248
- uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
5249
- policies: recordType(stringType(), policy).default({})
5234
+ uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
5250
5235
  }).strict();
5251
5236
  var schemaHash2 = objectType({
5252
5237
  id: stringType(),
@@ -5340,7 +5325,6 @@ var pgSchemaInternal = objectType({
5340
5325
  enums: recordType(stringType(), enumSchema),
5341
5326
  schemas: recordType(stringType(), stringType()),
5342
5327
  sequences: recordType(stringType(), sequenceSchema).default({}),
5343
- roles: recordType(stringType(), roleSchema).default({}),
5344
5328
  _meta: objectType({
5345
5329
  schemas: recordType(stringType(), stringType()),
5346
5330
  tables: recordType(stringType(), stringType()),
@@ -5355,8 +5339,7 @@ var tableSquashed2 = objectType({
5355
5339
  indexes: recordType(stringType(), stringType()),
5356
5340
  foreignKeys: recordType(stringType(), stringType()),
5357
5341
  compositePrimaryKeys: recordType(stringType(), stringType()),
5358
- uniqueConstraints: recordType(stringType(), stringType()),
5359
- policies: recordType(stringType(), stringType())
5342
+ uniqueConstraints: recordType(stringType(), stringType())
5360
5343
  }).strict();
5361
5344
  var tableSquashedV42 = objectType({
5362
5345
  name: stringType(),
@@ -5385,8 +5368,7 @@ var pgSchemaSquashed = objectType({
5385
5368
  tables: recordType(stringType(), tableSquashed2),
5386
5369
  enums: recordType(stringType(), enumSchema),
5387
5370
  schemas: recordType(stringType(), stringType()),
5388
- sequences: recordType(stringType(), sequenceSquashed),
5389
- roles: recordType(stringType(), roleSchema).default({})
5371
+ sequences: recordType(stringType(), sequenceSquashed)
5390
5372
  }).strict();
5391
5373
  var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
5392
5374
  var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);