@flaredev/core 0.1.1 → 0.1.2

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/dist/index.d.ts CHANGED
@@ -433,6 +433,6 @@ interface SeedContext {
433
433
  type Seed = (context: SeedContext) => void | Promise<void>;
434
434
  declare function defineSeed(seed: Seed): Seed;
435
435
 
436
- declare const FLARE_VERSION = "0.1.1";
436
+ declare const FLARE_VERSION = "0.1.2";
437
437
 
438
438
  export { type BelongsToRelation, CreateInput, FLARE_VERSION, Field, type FormValues, type FormatOptions, type HasManyRelation, type MailMessage, type MailResult, type Mailer, type MailerOptions, PBKDF2_ITERATIONS, type Policy, type PolicyAction, type PolicyConfig, PolicyError, type ReadUrlOptions, RelationError, type RelationGraph, Resource, type ResourceRelations, type ResourceValidators, SNIFF_BYTES, SUBSCRIPTION_STATUSES, type Seed, type SeedContext, type Storage, type StorageBucket, type StorageOptions, StoredField, type SubscriptionLike, type SubscriptionState, type SubscriptionStatus, type Tone, type TransactionalEmail, UpdateInput, type UploadUrlOptions, allowedActions, camelCase, can, checkoutPaid, createMailer, createObjectKey, createStorage, createValidators, currentPeriodEnd, definePolicy, defineSeed, fieldSchema, fileKeyPrefix, formValuesToInput, formatValue, grantsAccess, hashPassword, humanize, importSigningKey, initialFormValues, isLiveSubscription, issuesByField, kebabCase, matchesContentType, optionLabel, pascalCase, pluralize, randomLetters, relationGraph, renderTransactionalEmail, shouldApplySubscription, signToken, snakeCase, sniffMatches, statusTone, subscriptionPriceId, subscriptionState, toSubscriptionStatus, verifyPassword, verifyToken, words };
package/dist/index.js CHANGED
@@ -707,7 +707,7 @@ function defineSeed(seed) {
707
707
  }
708
708
 
709
709
  // src/index.ts
710
- var FLARE_VERSION = "0.1.1";
710
+ var FLARE_VERSION = "0.1.2";
711
711
  export {
712
712
  DEFAULT_FILE_MAX_BYTES,
713
713
  FILE_CATEGORIES,
package/dist/server.js CHANGED
@@ -3,8 +3,1187 @@ import {
3
3
  storedFields
4
4
  } from "./chunk-DARDHZPX.js";
5
5
 
6
- // src/server/store.ts
7
- import { and, asc, count, desc, eq, getTableColumns, inArray, isNull, or, sql } from "drizzle-orm";
6
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/entity.js
7
+ var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
8
+ function is(value, type) {
9
+ if (!value || typeof value !== "object") {
10
+ return false;
11
+ }
12
+ if (value instanceof type) {
13
+ return true;
14
+ }
15
+ if (!Object.prototype.hasOwnProperty.call(type, entityKind)) {
16
+ throw new Error(
17
+ `Class "${type.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`
18
+ );
19
+ }
20
+ let cls = Object.getPrototypeOf(value).constructor;
21
+ if (cls) {
22
+ while (cls) {
23
+ if (entityKind in cls && cls[entityKind] === type[entityKind]) {
24
+ return true;
25
+ }
26
+ cls = Object.getPrototypeOf(cls);
27
+ }
28
+ }
29
+ return false;
30
+ }
31
+
32
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/column.js
33
+ var Column = class {
34
+ constructor(table, config) {
35
+ this.table = table;
36
+ this.config = config;
37
+ this.name = config.name;
38
+ this.keyAsName = config.keyAsName;
39
+ this.notNull = config.notNull;
40
+ this.default = config.default;
41
+ this.defaultFn = config.defaultFn;
42
+ this.onUpdateFn = config.onUpdateFn;
43
+ this.hasDefault = config.hasDefault;
44
+ this.primary = config.primaryKey;
45
+ this.isUnique = config.isUnique;
46
+ this.uniqueName = config.uniqueName;
47
+ this.uniqueType = config.uniqueType;
48
+ this.dataType = config.dataType;
49
+ this.columnType = config.columnType;
50
+ this.generated = config.generated;
51
+ this.generatedIdentity = config.generatedIdentity;
52
+ }
53
+ static [entityKind] = "Column";
54
+ name;
55
+ keyAsName;
56
+ primary;
57
+ notNull;
58
+ default;
59
+ defaultFn;
60
+ onUpdateFn;
61
+ hasDefault;
62
+ isUnique;
63
+ uniqueName;
64
+ uniqueType;
65
+ dataType;
66
+ columnType;
67
+ enumValues = void 0;
68
+ generated = void 0;
69
+ generatedIdentity = void 0;
70
+ config;
71
+ mapFromDriverValue(value) {
72
+ return value;
73
+ }
74
+ mapToDriverValue(value) {
75
+ return value;
76
+ }
77
+ // ** @internal */
78
+ shouldDisableInsert() {
79
+ return this.config.generated !== void 0 && this.config.generated.type !== "byDefault";
80
+ }
81
+ };
82
+
83
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/column-builder.js
84
+ var ColumnBuilder = class {
85
+ static [entityKind] = "ColumnBuilder";
86
+ config;
87
+ constructor(name, dataType, columnType) {
88
+ this.config = {
89
+ name,
90
+ keyAsName: name === "",
91
+ notNull: false,
92
+ default: void 0,
93
+ hasDefault: false,
94
+ primaryKey: false,
95
+ isUnique: false,
96
+ uniqueName: void 0,
97
+ uniqueType: void 0,
98
+ dataType,
99
+ columnType,
100
+ generated: void 0
101
+ };
102
+ }
103
+ /**
104
+ * Changes the data type of the column. Commonly used with `json` columns. Also, useful for branded types.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const users = pgTable('users', {
109
+ * id: integer('id').$type<UserId>().primaryKey(),
110
+ * details: json('details').$type<UserDetails>().notNull(),
111
+ * });
112
+ * ```
113
+ */
114
+ $type() {
115
+ return this;
116
+ }
117
+ /**
118
+ * Adds a `not null` clause to the column definition.
119
+ *
120
+ * Affects the `select` model of the table - columns *without* `not null` will be nullable on select.
121
+ */
122
+ notNull() {
123
+ this.config.notNull = true;
124
+ return this;
125
+ }
126
+ /**
127
+ * Adds a `default <value>` clause to the column definition.
128
+ *
129
+ * Affects the `insert` model of the table - columns *with* `default` are optional on insert.
130
+ *
131
+ * If you need to set a dynamic default value, use {@link $defaultFn} instead.
132
+ */
133
+ default(value) {
134
+ this.config.default = value;
135
+ this.config.hasDefault = true;
136
+ return this;
137
+ }
138
+ /**
139
+ * Adds a dynamic default value to the column.
140
+ * The function will be called when the row is inserted, and the returned value will be used as the column value.
141
+ *
142
+ * **Note:** This value does not affect the `drizzle-kit` behavior, it is only used at runtime in `drizzle-orm`.
143
+ */
144
+ $defaultFn(fn) {
145
+ this.config.defaultFn = fn;
146
+ this.config.hasDefault = true;
147
+ return this;
148
+ }
149
+ /**
150
+ * Alias for {@link $defaultFn}.
151
+ */
152
+ $default = this.$defaultFn;
153
+ /**
154
+ * Adds a dynamic update value to the column.
155
+ * The function will be called when the row is updated, and the returned value will be used as the column value if none is provided.
156
+ * If no `default` (or `$defaultFn`) value is provided, the function will be called when the row is inserted as well, and the returned value will be used as the column value.
157
+ *
158
+ * **Note:** This value does not affect the `drizzle-kit` behavior, it is only used at runtime in `drizzle-orm`.
159
+ */
160
+ $onUpdateFn(fn) {
161
+ this.config.onUpdateFn = fn;
162
+ this.config.hasDefault = true;
163
+ return this;
164
+ }
165
+ /**
166
+ * Alias for {@link $onUpdateFn}.
167
+ */
168
+ $onUpdate = this.$onUpdateFn;
169
+ /**
170
+ * Adds a `primary key` clause to the column definition. This implicitly makes the column `not null`.
171
+ *
172
+ * In SQLite, `integer primary key` implicitly makes the column auto-incrementing.
173
+ */
174
+ primaryKey() {
175
+ this.config.primaryKey = true;
176
+ this.config.notNull = true;
177
+ return this;
178
+ }
179
+ /** @internal Sets the name of the column to the key within the table definition if a name was not given. */
180
+ setName(name) {
181
+ if (this.config.name !== "") return;
182
+ this.config.name = name;
183
+ }
184
+ };
185
+
186
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/table.utils.js
187
+ var TableName = /* @__PURE__ */ Symbol.for("drizzle:Name");
188
+
189
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/pg-core/foreign-keys.js
190
+ var ForeignKeyBuilder = class {
191
+ static [entityKind] = "PgForeignKeyBuilder";
192
+ /** @internal */
193
+ reference;
194
+ /** @internal */
195
+ _onUpdate = "no action";
196
+ /** @internal */
197
+ _onDelete = "no action";
198
+ constructor(config, actions) {
199
+ this.reference = () => {
200
+ const { name, columns, foreignColumns } = config();
201
+ return { name, columns, foreignTable: foreignColumns[0].table, foreignColumns };
202
+ };
203
+ if (actions) {
204
+ this._onUpdate = actions.onUpdate;
205
+ this._onDelete = actions.onDelete;
206
+ }
207
+ }
208
+ onUpdate(action) {
209
+ this._onUpdate = action === void 0 ? "no action" : action;
210
+ return this;
211
+ }
212
+ onDelete(action) {
213
+ this._onDelete = action === void 0 ? "no action" : action;
214
+ return this;
215
+ }
216
+ /** @internal */
217
+ build(table) {
218
+ return new ForeignKey(table, this);
219
+ }
220
+ };
221
+ var ForeignKey = class {
222
+ constructor(table, builder) {
223
+ this.table = table;
224
+ this.reference = builder.reference;
225
+ this.onUpdate = builder._onUpdate;
226
+ this.onDelete = builder._onDelete;
227
+ }
228
+ static [entityKind] = "PgForeignKey";
229
+ reference;
230
+ onUpdate;
231
+ onDelete;
232
+ getName() {
233
+ const { name, columns, foreignColumns } = this.reference();
234
+ const columnNames = columns.map((column) => column.name);
235
+ const foreignColumnNames = foreignColumns.map((column) => column.name);
236
+ const chunks = [
237
+ this.table[TableName],
238
+ ...columnNames,
239
+ foreignColumns[0].table[TableName],
240
+ ...foreignColumnNames
241
+ ];
242
+ return name ?? `${chunks.join("_")}_fk`;
243
+ }
244
+ };
245
+
246
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/tracing-utils.js
247
+ function iife(fn, ...args) {
248
+ return fn(...args);
249
+ }
250
+
251
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/pg-core/unique-constraint.js
252
+ function uniqueKeyName(table, columns) {
253
+ return `${table[TableName]}_${columns.join("_")}_unique`;
254
+ }
255
+ var UniqueConstraintBuilder = class {
256
+ constructor(columns, name) {
257
+ this.name = name;
258
+ this.columns = columns;
259
+ }
260
+ static [entityKind] = "PgUniqueConstraintBuilder";
261
+ /** @internal */
262
+ columns;
263
+ /** @internal */
264
+ nullsNotDistinctConfig = false;
265
+ nullsNotDistinct() {
266
+ this.nullsNotDistinctConfig = true;
267
+ return this;
268
+ }
269
+ /** @internal */
270
+ build(table) {
271
+ return new UniqueConstraint(table, this.columns, this.nullsNotDistinctConfig, this.name);
272
+ }
273
+ };
274
+ var UniqueOnConstraintBuilder = class {
275
+ static [entityKind] = "PgUniqueOnConstraintBuilder";
276
+ /** @internal */
277
+ name;
278
+ constructor(name) {
279
+ this.name = name;
280
+ }
281
+ on(...columns) {
282
+ return new UniqueConstraintBuilder(columns, this.name);
283
+ }
284
+ };
285
+ var UniqueConstraint = class {
286
+ constructor(table, columns, nullsNotDistinct, name) {
287
+ this.table = table;
288
+ this.columns = columns;
289
+ this.name = name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));
290
+ this.nullsNotDistinct = nullsNotDistinct;
291
+ }
292
+ static [entityKind] = "PgUniqueConstraint";
293
+ columns;
294
+ name;
295
+ nullsNotDistinct = false;
296
+ getName() {
297
+ return this.name;
298
+ }
299
+ };
300
+
301
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/pg-core/utils/array.js
302
+ function parsePgArrayValue(arrayString, startFrom, inQuotes) {
303
+ for (let i = startFrom; i < arrayString.length; i++) {
304
+ const char = arrayString[i];
305
+ if (char === "\\") {
306
+ i++;
307
+ continue;
308
+ }
309
+ if (char === '"') {
310
+ return [arrayString.slice(startFrom, i).replace(/\\/g, ""), i + 1];
311
+ }
312
+ if (inQuotes) {
313
+ continue;
314
+ }
315
+ if (char === "," || char === "}") {
316
+ return [arrayString.slice(startFrom, i).replace(/\\/g, ""), i];
317
+ }
318
+ }
319
+ return [arrayString.slice(startFrom).replace(/\\/g, ""), arrayString.length];
320
+ }
321
+ function parsePgNestedArray(arrayString, startFrom = 0) {
322
+ const result = [];
323
+ let i = startFrom;
324
+ let lastCharIsComma = false;
325
+ while (i < arrayString.length) {
326
+ const char = arrayString[i];
327
+ if (char === ",") {
328
+ if (lastCharIsComma || i === startFrom) {
329
+ result.push("");
330
+ }
331
+ lastCharIsComma = true;
332
+ i++;
333
+ continue;
334
+ }
335
+ lastCharIsComma = false;
336
+ if (char === "\\") {
337
+ i += 2;
338
+ continue;
339
+ }
340
+ if (char === '"') {
341
+ const [value2, startFrom2] = parsePgArrayValue(arrayString, i + 1, true);
342
+ result.push(value2);
343
+ i = startFrom2;
344
+ continue;
345
+ }
346
+ if (char === "}") {
347
+ return [result, i + 1];
348
+ }
349
+ if (char === "{") {
350
+ const [value2, startFrom2] = parsePgNestedArray(arrayString, i + 1);
351
+ result.push(value2);
352
+ i = startFrom2;
353
+ continue;
354
+ }
355
+ const [value, newStartFrom] = parsePgArrayValue(arrayString, i, false);
356
+ result.push(value);
357
+ i = newStartFrom;
358
+ }
359
+ return [result, i];
360
+ }
361
+ function parsePgArray(arrayString) {
362
+ const [result] = parsePgNestedArray(arrayString, 1);
363
+ return result;
364
+ }
365
+ function makePgArray(array) {
366
+ return `{${array.map((item) => {
367
+ if (Array.isArray(item)) {
368
+ return makePgArray(item);
369
+ }
370
+ if (typeof item === "string") {
371
+ return `"${item.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
372
+ }
373
+ return `${item}`;
374
+ }).join(",")}}`;
375
+ }
376
+
377
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/pg-core/columns/common.js
378
+ var PgColumnBuilder = class extends ColumnBuilder {
379
+ foreignKeyConfigs = [];
380
+ static [entityKind] = "PgColumnBuilder";
381
+ array(size) {
382
+ return new PgArrayBuilder(this.config.name, this, size);
383
+ }
384
+ references(ref, actions = {}) {
385
+ this.foreignKeyConfigs.push({ ref, actions });
386
+ return this;
387
+ }
388
+ unique(name, config) {
389
+ this.config.isUnique = true;
390
+ this.config.uniqueName = name;
391
+ this.config.uniqueType = config?.nulls;
392
+ return this;
393
+ }
394
+ generatedAlwaysAs(as) {
395
+ this.config.generated = {
396
+ as,
397
+ type: "always",
398
+ mode: "stored"
399
+ };
400
+ return this;
401
+ }
402
+ /** @internal */
403
+ buildForeignKeys(column, table) {
404
+ return this.foreignKeyConfigs.map(({ ref, actions }) => {
405
+ return iife(
406
+ (ref2, actions2) => {
407
+ const builder = new ForeignKeyBuilder(() => {
408
+ const foreignColumn = ref2();
409
+ return { columns: [column], foreignColumns: [foreignColumn] };
410
+ });
411
+ if (actions2.onUpdate) {
412
+ builder.onUpdate(actions2.onUpdate);
413
+ }
414
+ if (actions2.onDelete) {
415
+ builder.onDelete(actions2.onDelete);
416
+ }
417
+ return builder.build(table);
418
+ },
419
+ ref,
420
+ actions
421
+ );
422
+ });
423
+ }
424
+ /** @internal */
425
+ buildExtraConfigColumn(table) {
426
+ return new ExtraConfigColumn(table, this.config);
427
+ }
428
+ };
429
+ var PgColumn = class extends Column {
430
+ constructor(table, config) {
431
+ if (!config.uniqueName) {
432
+ config.uniqueName = uniqueKeyName(table, [config.name]);
433
+ }
434
+ super(table, config);
435
+ this.table = table;
436
+ }
437
+ static [entityKind] = "PgColumn";
438
+ };
439
+ var ExtraConfigColumn = class extends PgColumn {
440
+ static [entityKind] = "ExtraConfigColumn";
441
+ getSQLType() {
442
+ return this.getSQLType();
443
+ }
444
+ indexConfig = {
445
+ order: this.config.order ?? "asc",
446
+ nulls: this.config.nulls ?? "last",
447
+ opClass: this.config.opClass
448
+ };
449
+ defaultConfig = {
450
+ order: "asc",
451
+ nulls: "last",
452
+ opClass: void 0
453
+ };
454
+ asc() {
455
+ this.indexConfig.order = "asc";
456
+ return this;
457
+ }
458
+ desc() {
459
+ this.indexConfig.order = "desc";
460
+ return this;
461
+ }
462
+ nullsFirst() {
463
+ this.indexConfig.nulls = "first";
464
+ return this;
465
+ }
466
+ nullsLast() {
467
+ this.indexConfig.nulls = "last";
468
+ return this;
469
+ }
470
+ /**
471
+ * ### PostgreSQL documentation quote
472
+ *
473
+ * > An operator class with optional parameters can be specified for each column of an index.
474
+ * The operator class identifies the operators to be used by the index for that column.
475
+ * For example, a B-tree index on four-byte integers would use the int4_ops class;
476
+ * this operator class includes comparison functions for four-byte integers.
477
+ * In practice the default operator class for the column's data type is usually sufficient.
478
+ * The main point of having operator classes is that for some data types, there could be more than one meaningful ordering.
479
+ * For example, we might want to sort a complex-number data type either by absolute value or by real part.
480
+ * We could do this by defining two operator classes for the data type and then selecting the proper class when creating an index.
481
+ * More information about operator classes check:
482
+ *
483
+ * ### Useful links
484
+ * https://www.postgresql.org/docs/current/sql-createindex.html
485
+ *
486
+ * https://www.postgresql.org/docs/current/indexes-opclass.html
487
+ *
488
+ * https://www.postgresql.org/docs/current/xindex.html
489
+ *
490
+ * ### Additional types
491
+ * If you have the `pg_vector` extension installed in your database, you can use the
492
+ * `vector_l2_ops`, `vector_ip_ops`, `vector_cosine_ops`, `vector_l1_ops`, `bit_hamming_ops`, `bit_jaccard_ops`, `halfvec_l2_ops`, `sparsevec_l2_ops` options, which are predefined types.
493
+ *
494
+ * **You can always specify any string you want in the operator class, in case Drizzle doesn't have it natively in its types**
495
+ *
496
+ * @param opClass
497
+ * @returns
498
+ */
499
+ op(opClass) {
500
+ this.indexConfig.opClass = opClass;
501
+ return this;
502
+ }
503
+ };
504
+ var IndexedColumn = class {
505
+ static [entityKind] = "IndexedColumn";
506
+ constructor(name, keyAsName, type, indexConfig) {
507
+ this.name = name;
508
+ this.keyAsName = keyAsName;
509
+ this.type = type;
510
+ this.indexConfig = indexConfig;
511
+ }
512
+ name;
513
+ keyAsName;
514
+ type;
515
+ indexConfig;
516
+ };
517
+ var PgArrayBuilder = class extends PgColumnBuilder {
518
+ static [entityKind] = "PgArrayBuilder";
519
+ constructor(name, baseBuilder, size) {
520
+ super(name, "array", "PgArray");
521
+ this.config.baseBuilder = baseBuilder;
522
+ this.config.size = size;
523
+ }
524
+ /** @internal */
525
+ build(table) {
526
+ const baseColumn = this.config.baseBuilder.build(table);
527
+ return new PgArray(
528
+ table,
529
+ this.config,
530
+ baseColumn
531
+ );
532
+ }
533
+ };
534
+ var PgArray = class _PgArray extends PgColumn {
535
+ constructor(table, config, baseColumn, range) {
536
+ super(table, config);
537
+ this.baseColumn = baseColumn;
538
+ this.range = range;
539
+ this.size = config.size;
540
+ }
541
+ size;
542
+ static [entityKind] = "PgArray";
543
+ getSQLType() {
544
+ return `${this.baseColumn.getSQLType()}[${typeof this.size === "number" ? this.size : ""}]`;
545
+ }
546
+ mapFromDriverValue(value) {
547
+ if (typeof value === "string") {
548
+ value = parsePgArray(value);
549
+ }
550
+ return value.map((v) => this.baseColumn.mapFromDriverValue(v));
551
+ }
552
+ mapToDriverValue(value, isNestedArray = false) {
553
+ const a = value.map(
554
+ (v) => v === null ? null : is(this.baseColumn, _PgArray) ? this.baseColumn.mapToDriverValue(v, true) : this.baseColumn.mapToDriverValue(v)
555
+ );
556
+ if (isNestedArray) return a;
557
+ return makePgArray(a);
558
+ }
559
+ };
560
+
561
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/pg-core/columns/enum.js
562
+ var PgEnumObjectColumnBuilder = class extends PgColumnBuilder {
563
+ static [entityKind] = "PgEnumObjectColumnBuilder";
564
+ constructor(name, enumInstance) {
565
+ super(name, "string", "PgEnumObjectColumn");
566
+ this.config.enum = enumInstance;
567
+ }
568
+ /** @internal */
569
+ build(table) {
570
+ return new PgEnumObjectColumn(
571
+ table,
572
+ this.config
573
+ );
574
+ }
575
+ };
576
+ var PgEnumObjectColumn = class extends PgColumn {
577
+ static [entityKind] = "PgEnumObjectColumn";
578
+ enum;
579
+ enumValues = this.config.enum.enumValues;
580
+ constructor(table, config) {
581
+ super(table, config);
582
+ this.enum = config.enum;
583
+ }
584
+ getSQLType() {
585
+ return this.enum.enumName;
586
+ }
587
+ };
588
+ var isPgEnumSym = /* @__PURE__ */ Symbol.for("drizzle:isPgEnum");
589
+ function isPgEnum(obj) {
590
+ return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
591
+ }
592
+ var PgEnumColumnBuilder = class extends PgColumnBuilder {
593
+ static [entityKind] = "PgEnumColumnBuilder";
594
+ constructor(name, enumInstance) {
595
+ super(name, "string", "PgEnumColumn");
596
+ this.config.enum = enumInstance;
597
+ }
598
+ /** @internal */
599
+ build(table) {
600
+ return new PgEnumColumn(
601
+ table,
602
+ this.config
603
+ );
604
+ }
605
+ };
606
+ var PgEnumColumn = class extends PgColumn {
607
+ static [entityKind] = "PgEnumColumn";
608
+ enum = this.config.enum;
609
+ enumValues = this.config.enum.enumValues;
610
+ constructor(table, config) {
611
+ super(table, config);
612
+ this.enum = config.enum;
613
+ }
614
+ getSQLType() {
615
+ return this.enum.enumName;
616
+ }
617
+ };
618
+
619
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/subquery.js
620
+ var Subquery = class {
621
+ static [entityKind] = "Subquery";
622
+ constructor(sql2, fields, alias, isWith = false, usedTables = []) {
623
+ this._ = {
624
+ brand: "Subquery",
625
+ sql: sql2,
626
+ selectedFields: fields,
627
+ alias,
628
+ isWith,
629
+ usedTables
630
+ };
631
+ }
632
+ // getSQL(): SQL<unknown> {
633
+ // return new SQL([this]);
634
+ // }
635
+ };
636
+ var WithSubquery = class extends Subquery {
637
+ static [entityKind] = "WithSubquery";
638
+ };
639
+
640
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/version.js
641
+ var version = "0.45.2";
642
+
643
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/tracing.js
644
+ var otel;
645
+ var rawTracer;
646
+ var tracer = {
647
+ startActiveSpan(name, fn) {
648
+ if (!otel) {
649
+ return fn();
650
+ }
651
+ if (!rawTracer) {
652
+ rawTracer = otel.trace.getTracer("drizzle-orm", version);
653
+ }
654
+ return iife(
655
+ (otel2, rawTracer2) => rawTracer2.startActiveSpan(
656
+ name,
657
+ (span) => {
658
+ try {
659
+ return fn(span);
660
+ } catch (e) {
661
+ span.setStatus({
662
+ code: otel2.SpanStatusCode.ERROR,
663
+ message: e instanceof Error ? e.message : "Unknown error"
664
+ // eslint-disable-line no-instanceof/no-instanceof
665
+ });
666
+ throw e;
667
+ } finally {
668
+ span.end();
669
+ }
670
+ }
671
+ ),
672
+ otel,
673
+ rawTracer
674
+ );
675
+ }
676
+ };
677
+
678
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/view-common.js
679
+ var ViewBaseConfig = /* @__PURE__ */ Symbol.for("drizzle:ViewBaseConfig");
680
+
681
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/table.js
682
+ var Schema = /* @__PURE__ */ Symbol.for("drizzle:Schema");
683
+ var Columns = /* @__PURE__ */ Symbol.for("drizzle:Columns");
684
+ var ExtraConfigColumns = /* @__PURE__ */ Symbol.for("drizzle:ExtraConfigColumns");
685
+ var OriginalName = /* @__PURE__ */ Symbol.for("drizzle:OriginalName");
686
+ var BaseName = /* @__PURE__ */ Symbol.for("drizzle:BaseName");
687
+ var IsAlias = /* @__PURE__ */ Symbol.for("drizzle:IsAlias");
688
+ var ExtraConfigBuilder = /* @__PURE__ */ Symbol.for("drizzle:ExtraConfigBuilder");
689
+ var IsDrizzleTable = /* @__PURE__ */ Symbol.for("drizzle:IsDrizzleTable");
690
+ var Table = class {
691
+ static [entityKind] = "Table";
692
+ /** @internal */
693
+ static Symbol = {
694
+ Name: TableName,
695
+ Schema,
696
+ OriginalName,
697
+ Columns,
698
+ ExtraConfigColumns,
699
+ BaseName,
700
+ IsAlias,
701
+ ExtraConfigBuilder
702
+ };
703
+ /**
704
+ * @internal
705
+ * Can be changed if the table is aliased.
706
+ */
707
+ [TableName];
708
+ /**
709
+ * @internal
710
+ * Used to store the original name of the table, before any aliasing.
711
+ */
712
+ [OriginalName];
713
+ /** @internal */
714
+ [Schema];
715
+ /** @internal */
716
+ [Columns];
717
+ /** @internal */
718
+ [ExtraConfigColumns];
719
+ /**
720
+ * @internal
721
+ * Used to store the table name before the transformation via the `tableCreator` functions.
722
+ */
723
+ [BaseName];
724
+ /** @internal */
725
+ [IsAlias] = false;
726
+ /** @internal */
727
+ [IsDrizzleTable] = true;
728
+ /** @internal */
729
+ [ExtraConfigBuilder] = void 0;
730
+ constructor(name, schema, baseName) {
731
+ this[TableName] = this[OriginalName] = name;
732
+ this[Schema] = schema;
733
+ this[BaseName] = baseName;
734
+ }
735
+ };
736
+
737
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/sql/sql.js
738
+ var FakePrimitiveParam = class {
739
+ static [entityKind] = "FakePrimitiveParam";
740
+ };
741
+ function isSQLWrapper(value) {
742
+ return value !== null && value !== void 0 && typeof value.getSQL === "function";
743
+ }
744
+ function mergeQueries(queries) {
745
+ const result = { sql: "", params: [] };
746
+ for (const query of queries) {
747
+ result.sql += query.sql;
748
+ result.params.push(...query.params);
749
+ if (query.typings?.length) {
750
+ if (!result.typings) {
751
+ result.typings = [];
752
+ }
753
+ result.typings.push(...query.typings);
754
+ }
755
+ }
756
+ return result;
757
+ }
758
+ var StringChunk = class {
759
+ static [entityKind] = "StringChunk";
760
+ value;
761
+ constructor(value) {
762
+ this.value = Array.isArray(value) ? value : [value];
763
+ }
764
+ getSQL() {
765
+ return new SQL([this]);
766
+ }
767
+ };
768
+ var SQL = class _SQL {
769
+ constructor(queryChunks) {
770
+ this.queryChunks = queryChunks;
771
+ for (const chunk of queryChunks) {
772
+ if (is(chunk, Table)) {
773
+ const schemaName = chunk[Table.Symbol.Schema];
774
+ this.usedTables.push(
775
+ schemaName === void 0 ? chunk[Table.Symbol.Name] : schemaName + "." + chunk[Table.Symbol.Name]
776
+ );
777
+ }
778
+ }
779
+ }
780
+ static [entityKind] = "SQL";
781
+ /** @internal */
782
+ decoder = noopDecoder;
783
+ shouldInlineParams = false;
784
+ /** @internal */
785
+ usedTables = [];
786
+ append(query) {
787
+ this.queryChunks.push(...query.queryChunks);
788
+ return this;
789
+ }
790
+ toQuery(config) {
791
+ return tracer.startActiveSpan("drizzle.buildSQL", (span) => {
792
+ const query = this.buildQueryFromSourceParams(this.queryChunks, config);
793
+ span?.setAttributes({
794
+ "drizzle.query.text": query.sql,
795
+ "drizzle.query.params": JSON.stringify(query.params)
796
+ });
797
+ return query;
798
+ });
799
+ }
800
+ buildQueryFromSourceParams(chunks, _config) {
801
+ const config = Object.assign({}, _config, {
802
+ inlineParams: _config.inlineParams || this.shouldInlineParams,
803
+ paramStartIndex: _config.paramStartIndex || { value: 0 }
804
+ });
805
+ const {
806
+ casing,
807
+ escapeName,
808
+ escapeParam,
809
+ prepareTyping,
810
+ inlineParams,
811
+ paramStartIndex
812
+ } = config;
813
+ return mergeQueries(chunks.map((chunk) => {
814
+ if (is(chunk, StringChunk)) {
815
+ return { sql: chunk.value.join(""), params: [] };
816
+ }
817
+ if (is(chunk, Name)) {
818
+ return { sql: escapeName(chunk.value), params: [] };
819
+ }
820
+ if (chunk === void 0) {
821
+ return { sql: "", params: [] };
822
+ }
823
+ if (Array.isArray(chunk)) {
824
+ const result = [new StringChunk("(")];
825
+ for (const [i, p] of chunk.entries()) {
826
+ result.push(p);
827
+ if (i < chunk.length - 1) {
828
+ result.push(new StringChunk(", "));
829
+ }
830
+ }
831
+ result.push(new StringChunk(")"));
832
+ return this.buildQueryFromSourceParams(result, config);
833
+ }
834
+ if (is(chunk, _SQL)) {
835
+ return this.buildQueryFromSourceParams(chunk.queryChunks, {
836
+ ...config,
837
+ inlineParams: inlineParams || chunk.shouldInlineParams
838
+ });
839
+ }
840
+ if (is(chunk, Table)) {
841
+ const schemaName = chunk[Table.Symbol.Schema];
842
+ const tableName = chunk[Table.Symbol.Name];
843
+ return {
844
+ sql: schemaName === void 0 || chunk[IsAlias] ? escapeName(tableName) : escapeName(schemaName) + "." + escapeName(tableName),
845
+ params: []
846
+ };
847
+ }
848
+ if (is(chunk, Column)) {
849
+ const columnName = casing.getColumnCasing(chunk);
850
+ if (_config.invokeSource === "indexes") {
851
+ return { sql: escapeName(columnName), params: [] };
852
+ }
853
+ const schemaName = chunk.table[Table.Symbol.Schema];
854
+ return {
855
+ sql: chunk.table[IsAlias] || schemaName === void 0 ? escapeName(chunk.table[Table.Symbol.Name]) + "." + escapeName(columnName) : escapeName(schemaName) + "." + escapeName(chunk.table[Table.Symbol.Name]) + "." + escapeName(columnName),
856
+ params: []
857
+ };
858
+ }
859
+ if (is(chunk, View)) {
860
+ const schemaName = chunk[ViewBaseConfig].schema;
861
+ const viewName = chunk[ViewBaseConfig].name;
862
+ return {
863
+ sql: schemaName === void 0 || chunk[ViewBaseConfig].isAlias ? escapeName(viewName) : escapeName(schemaName) + "." + escapeName(viewName),
864
+ params: []
865
+ };
866
+ }
867
+ if (is(chunk, Param)) {
868
+ if (is(chunk.value, Placeholder)) {
869
+ return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
870
+ }
871
+ const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
872
+ if (is(mappedValue, _SQL)) {
873
+ return this.buildQueryFromSourceParams([mappedValue], config);
874
+ }
875
+ if (inlineParams) {
876
+ return { sql: this.mapInlineParam(mappedValue, config), params: [] };
877
+ }
878
+ let typings = ["none"];
879
+ if (prepareTyping) {
880
+ typings = [prepareTyping(chunk.encoder)];
881
+ }
882
+ return { sql: escapeParam(paramStartIndex.value++, mappedValue), params: [mappedValue], typings };
883
+ }
884
+ if (is(chunk, Placeholder)) {
885
+ return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
886
+ }
887
+ if (is(chunk, _SQL.Aliased) && chunk.fieldAlias !== void 0) {
888
+ return { sql: escapeName(chunk.fieldAlias), params: [] };
889
+ }
890
+ if (is(chunk, Subquery)) {
891
+ if (chunk._.isWith) {
892
+ return { sql: escapeName(chunk._.alias), params: [] };
893
+ }
894
+ return this.buildQueryFromSourceParams([
895
+ new StringChunk("("),
896
+ chunk._.sql,
897
+ new StringChunk(") "),
898
+ new Name(chunk._.alias)
899
+ ], config);
900
+ }
901
+ if (isPgEnum(chunk)) {
902
+ if (chunk.schema) {
903
+ return { sql: escapeName(chunk.schema) + "." + escapeName(chunk.enumName), params: [] };
904
+ }
905
+ return { sql: escapeName(chunk.enumName), params: [] };
906
+ }
907
+ if (isSQLWrapper(chunk)) {
908
+ if (chunk.shouldOmitSQLParens?.()) {
909
+ return this.buildQueryFromSourceParams([chunk.getSQL()], config);
910
+ }
911
+ return this.buildQueryFromSourceParams([
912
+ new StringChunk("("),
913
+ chunk.getSQL(),
914
+ new StringChunk(")")
915
+ ], config);
916
+ }
917
+ if (inlineParams) {
918
+ return { sql: this.mapInlineParam(chunk, config), params: [] };
919
+ }
920
+ return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ["none"] };
921
+ }));
922
+ }
923
+ mapInlineParam(chunk, { escapeString }) {
924
+ if (chunk === null) {
925
+ return "null";
926
+ }
927
+ if (typeof chunk === "number" || typeof chunk === "boolean") {
928
+ return chunk.toString();
929
+ }
930
+ if (typeof chunk === "string") {
931
+ return escapeString(chunk);
932
+ }
933
+ if (typeof chunk === "object") {
934
+ const mappedValueAsString = chunk.toString();
935
+ if (mappedValueAsString === "[object Object]") {
936
+ return escapeString(JSON.stringify(chunk));
937
+ }
938
+ return escapeString(mappedValueAsString);
939
+ }
940
+ throw new Error("Unexpected param value: " + chunk);
941
+ }
942
+ getSQL() {
943
+ return this;
944
+ }
945
+ as(alias) {
946
+ if (alias === void 0) {
947
+ return this;
948
+ }
949
+ return new _SQL.Aliased(this, alias);
950
+ }
951
+ mapWith(decoder) {
952
+ this.decoder = typeof decoder === "function" ? { mapFromDriverValue: decoder } : decoder;
953
+ return this;
954
+ }
955
+ inlineParams() {
956
+ this.shouldInlineParams = true;
957
+ return this;
958
+ }
959
+ /**
960
+ * This method is used to conditionally include a part of the query.
961
+ *
962
+ * @param condition - Condition to check
963
+ * @returns itself if the condition is `true`, otherwise `undefined`
964
+ */
965
+ if(condition) {
966
+ return condition ? this : void 0;
967
+ }
968
+ };
969
+ var Name = class {
970
+ constructor(value) {
971
+ this.value = value;
972
+ }
973
+ static [entityKind] = "Name";
974
+ brand;
975
+ getSQL() {
976
+ return new SQL([this]);
977
+ }
978
+ };
979
+ function isDriverValueEncoder(value) {
980
+ return typeof value === "object" && value !== null && "mapToDriverValue" in value && typeof value.mapToDriverValue === "function";
981
+ }
982
+ var noopDecoder = {
983
+ mapFromDriverValue: (value) => value
984
+ };
985
+ var noopEncoder = {
986
+ mapToDriverValue: (value) => value
987
+ };
988
+ var noopMapper = {
989
+ ...noopDecoder,
990
+ ...noopEncoder
991
+ };
992
+ var Param = class {
993
+ /**
994
+ * @param value - Parameter value
995
+ * @param encoder - Encoder to convert the value to a driver parameter
996
+ */
997
+ constructor(value, encoder = noopEncoder) {
998
+ this.value = value;
999
+ this.encoder = encoder;
1000
+ }
1001
+ static [entityKind] = "Param";
1002
+ brand;
1003
+ getSQL() {
1004
+ return new SQL([this]);
1005
+ }
1006
+ };
1007
+ function sql(strings, ...params) {
1008
+ const queryChunks = [];
1009
+ if (params.length > 0 || strings.length > 0 && strings[0] !== "") {
1010
+ queryChunks.push(new StringChunk(strings[0]));
1011
+ }
1012
+ for (const [paramIndex, param2] of params.entries()) {
1013
+ queryChunks.push(param2, new StringChunk(strings[paramIndex + 1]));
1014
+ }
1015
+ return new SQL(queryChunks);
1016
+ }
1017
+ ((sql2) => {
1018
+ function empty() {
1019
+ return new SQL([]);
1020
+ }
1021
+ sql2.empty = empty;
1022
+ function fromList(list) {
1023
+ return new SQL(list);
1024
+ }
1025
+ sql2.fromList = fromList;
1026
+ function raw(str) {
1027
+ return new SQL([new StringChunk(str)]);
1028
+ }
1029
+ sql2.raw = raw;
1030
+ function join(chunks, separator) {
1031
+ const result = [];
1032
+ for (const [i, chunk] of chunks.entries()) {
1033
+ if (i > 0 && separator !== void 0) {
1034
+ result.push(separator);
1035
+ }
1036
+ result.push(chunk);
1037
+ }
1038
+ return new SQL(result);
1039
+ }
1040
+ sql2.join = join;
1041
+ function identifier(value) {
1042
+ return new Name(value);
1043
+ }
1044
+ sql2.identifier = identifier;
1045
+ function placeholder2(name2) {
1046
+ return new Placeholder(name2);
1047
+ }
1048
+ sql2.placeholder = placeholder2;
1049
+ function param2(value, encoder) {
1050
+ return new Param(value, encoder);
1051
+ }
1052
+ sql2.param = param2;
1053
+ })(sql || (sql = {}));
1054
+ ((SQL2) => {
1055
+ class Aliased {
1056
+ constructor(sql2, fieldAlias) {
1057
+ this.sql = sql2;
1058
+ this.fieldAlias = fieldAlias;
1059
+ }
1060
+ static [entityKind] = "SQL.Aliased";
1061
+ /** @internal */
1062
+ isSelectionField = false;
1063
+ getSQL() {
1064
+ return this.sql;
1065
+ }
1066
+ /** @internal */
1067
+ clone() {
1068
+ return new Aliased(this.sql, this.fieldAlias);
1069
+ }
1070
+ }
1071
+ SQL2.Aliased = Aliased;
1072
+ })(SQL || (SQL = {}));
1073
+ var Placeholder = class {
1074
+ constructor(name2) {
1075
+ this.name = name2;
1076
+ }
1077
+ static [entityKind] = "Placeholder";
1078
+ getSQL() {
1079
+ return new SQL([this]);
1080
+ }
1081
+ };
1082
+ var IsDrizzleView = /* @__PURE__ */ Symbol.for("drizzle:IsDrizzleView");
1083
+ var View = class {
1084
+ static [entityKind] = "View";
1085
+ /** @internal */
1086
+ [ViewBaseConfig];
1087
+ /** @internal */
1088
+ [IsDrizzleView] = true;
1089
+ constructor({ name: name2, schema, selectedFields, query }) {
1090
+ this[ViewBaseConfig] = {
1091
+ name: name2,
1092
+ originalName: name2,
1093
+ schema,
1094
+ selectedFields,
1095
+ query,
1096
+ isExisting: !query,
1097
+ isAlias: false
1098
+ };
1099
+ }
1100
+ getSQL() {
1101
+ return new SQL([this]);
1102
+ }
1103
+ };
1104
+ Column.prototype.getSQL = function() {
1105
+ return new SQL([this]);
1106
+ };
1107
+ Table.prototype.getSQL = function() {
1108
+ return new SQL([this]);
1109
+ };
1110
+ Subquery.prototype.getSQL = function() {
1111
+ return new SQL([this]);
1112
+ };
1113
+
1114
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/utils.js
1115
+ function getTableColumns(table) {
1116
+ return table[Table.Symbol.Columns];
1117
+ }
1118
+ var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder();
1119
+
1120
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/sql/expressions/conditions.js
1121
+ function bindIfParam(value, column) {
1122
+ if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
1123
+ return new Param(value, column);
1124
+ }
1125
+ return value;
1126
+ }
1127
+ var eq = (left, right) => {
1128
+ return sql`${left} = ${bindIfParam(right, left)}`;
1129
+ };
1130
+ function and(...unfilteredConditions) {
1131
+ const conditions = unfilteredConditions.filter(
1132
+ (c) => c !== void 0
1133
+ );
1134
+ if (conditions.length === 0) {
1135
+ return void 0;
1136
+ }
1137
+ if (conditions.length === 1) {
1138
+ return new SQL(conditions);
1139
+ }
1140
+ return new SQL([
1141
+ new StringChunk("("),
1142
+ sql.join(conditions, new StringChunk(" and ")),
1143
+ new StringChunk(")")
1144
+ ]);
1145
+ }
1146
+ function or(...unfilteredConditions) {
1147
+ const conditions = unfilteredConditions.filter(
1148
+ (c) => c !== void 0
1149
+ );
1150
+ if (conditions.length === 0) {
1151
+ return void 0;
1152
+ }
1153
+ if (conditions.length === 1) {
1154
+ return new SQL(conditions);
1155
+ }
1156
+ return new SQL([
1157
+ new StringChunk("("),
1158
+ sql.join(conditions, new StringChunk(" or ")),
1159
+ new StringChunk(")")
1160
+ ]);
1161
+ }
1162
+ function inArray(column, values) {
1163
+ if (Array.isArray(values)) {
1164
+ if (values.length === 0) {
1165
+ return sql`false`;
1166
+ }
1167
+ return sql`${column} in ${values.map((v) => bindIfParam(v, column))}`;
1168
+ }
1169
+ return sql`${column} in ${bindIfParam(values, column)}`;
1170
+ }
1171
+ function isNull(value) {
1172
+ return sql`${value} is null`;
1173
+ }
1174
+
1175
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/sql/expressions/select.js
1176
+ function asc(column) {
1177
+ return sql`${column} asc`;
1178
+ }
1179
+ function desc(column) {
1180
+ return sql`${column} desc`;
1181
+ }
1182
+
1183
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudfl_b372b29e6d5511672c7f9f9d2ac40572/node_modules/drizzle-orm/sql/functions/aggregate.js
1184
+ function count(expression) {
1185
+ return sql`count(${expression || sql.raw("*")})`.mapWith(Number);
1186
+ }
8
1187
 
9
1188
  // src/server/query.ts
10
1189
  var TIMESTAMP_FIELDS = ["createdAt", "updatedAt"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flaredev/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Flare runtime: resource descriptors, field grammar, and Cloudflare-native helpers",
5
5
  "license": "MIT",
6
6
  "author": "Muke Johnbaptist",
@@ -74,18 +74,6 @@
74
74
  "drizzle-orm": "^0.45.2",
75
75
  "sql.js": "^1.14.2"
76
76
  },
77
- "peerDependencies": {
78
- "drizzle-orm": "^0.45.2",
79
- "react": "^18.2 || ^19.0.0"
80
- },
81
- "peerDependenciesMeta": {
82
- "drizzle-orm": {
83
- "optional": true
84
- },
85
- "react": {
86
- "optional": true
87
- }
88
- },
89
77
  "engines": {
90
78
  "node": ">=22"
91
79
  },