@bakery-framework/orm 1.0.0

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * **Import order is load-bearing here, and alphabetical order is wrong.**
3
+ *
4
+ * `query.ts` and `mutation.ts` are a cycle: `query.ts` ends with
5
+ * `export const Insert = Mutation.Insert`, read at module top level, and
6
+ * `mutation.ts` imports `DB` from `query.ts`. Whichever this barrel names first
7
+ * is the one that evaluates first.
8
+ *
9
+ * `./query` first works. `./mutation` first does not: `mutation.ts` pulls in
10
+ * `query.ts`, whose top-level `Mutation.Insert` runs while `Mutation` is still
11
+ * initialising, and the whole ORM dies with
12
+ * `TypeError: undefined is not an object (evaluating 'Mutation.Insert')`.
13
+ *
14
+ * Biome's `organizeImports` sorts these alphabetically and puts `./mutation`
15
+ * first. That happened during the 2026-08-09 sweep and cost 12 tests; the
16
+ * compiler cannot see it, because the types are fine either way. Hence the
17
+ * suppression.
18
+ */
19
+ // biome-ignore-all assist/source/organizeImports: cycle — see above
20
+ import { DB } from './query'
21
+ import { Mutation } from './mutation'
22
+
23
+ export default DB
24
+ export { DB, Mutation }