linkgress-orm 0.4.61 → 0.4.63

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.
Files changed (33) hide show
  1. package/dist/entity/db-context.d.ts +1 -1
  2. package/dist/entity/db-context.js +65 -65
  3. package/dist/entity/db-context.js.map +1 -1
  4. package/dist/entity/entity-base.d.ts +1 -1
  5. package/dist/entity/entity-base.js +1 -1
  6. package/dist/entity/entity-builder.d.ts +9 -9
  7. package/dist/entity/entity-builder.js +9 -9
  8. package/dist/query/collection-strategy.interface.d.ts +1 -1
  9. package/dist/query/conditions.d.ts +25 -10
  10. package/dist/query/conditions.d.ts.map +1 -1
  11. package/dist/query/conditions.js +39 -11
  12. package/dist/query/conditions.js.map +1 -1
  13. package/dist/query/cte-root-query.d.ts +66 -0
  14. package/dist/query/cte-root-query.d.ts.map +1 -1
  15. package/dist/query/cte-root-query.js +135 -18
  16. package/dist/query/cte-root-query.js.map +1 -1
  17. package/dist/query/grouped-query.d.ts +7 -0
  18. package/dist/query/grouped-query.d.ts.map +1 -1
  19. package/dist/query/grouped-query.js +7 -1
  20. package/dist/query/grouped-query.js.map +1 -1
  21. package/dist/query/mutation-batch.d.ts +2 -2
  22. package/dist/query/mutation-batch.js +2 -2
  23. package/dist/query/query-builder.d.ts +1 -1
  24. package/dist/query/query-builder.d.ts.map +1 -1
  25. package/dist/query/query-builder.js +26 -21
  26. package/dist/query/query-builder.js.map +1 -1
  27. package/dist/query/strategies/cte-collection-strategy.d.ts +1 -1
  28. package/dist/query/strategies/cte-collection-strategy.js +1 -1
  29. package/dist/query/strategies/lateral-collection-strategy.d.ts +1 -1
  30. package/dist/query/strategies/lateral-collection-strategy.js +1 -1
  31. package/dist/query/strategies/temptable-collection-strategy.d.ts +1 -1
  32. package/dist/query/strategies/temptable-collection-strategy.js +1 -1
  33. package/package.json +1 -1
@@ -42,7 +42,7 @@ export declare class CteCollectionStrategy implements ICollectionStrategy {
42
42
  *
43
43
  * Without this, the CTE strategy groups every target row by FK column with no
44
44
  * filtering, leaking historical / closed SCD2 rows into the projected
45
- * collection — the exact QA_GO-429 Bug D symptom.
45
+ * collection — the exact constant-FK projection symptom.
46
46
  *
47
47
  * @param config The aggregation config (carries `foreignKeys`/`matches`).
48
48
  * @param targetTable Alias of the target table inside the CTE's inner SELECT.
@@ -49,7 +49,7 @@ class CteCollectionStrategy {
49
49
  *
50
50
  * Without this, the CTE strategy groups every target row by FK column with no
51
51
  * filtering, leaking historical / closed SCD2 rows into the projected
52
- * collection — the exact QA_GO-429 Bug D symptom.
52
+ * collection — the exact constant-FK projection symptom.
53
53
  *
54
54
  * @param config The aggregation config (carries `foreignKeys`/`matches`).
55
55
  * @param targetTable Alias of the target table inside the CTE's inner SELECT.
@@ -48,7 +48,7 @@ export declare class LateralCollectionStrategy implements ICollectionStrategy {
48
48
  * like `__LIT:true`). Falls back to the legacy single-column form when the
49
49
  * navigation metadata doesn't carry the array form.
50
50
  *
51
- * This is the load-bearing helper for the QA_GO-429 Bug D fix: navigation
51
+ * This is the load-bearing helper for the constant-FK projection fix: navigation
52
52
  * properties may declare additional literal predicates beyond the column
53
53
  * equality (e.g. `withForeignKey: [col, isCurrent], withPrincipalKey: [id, true]`)
54
54
  * that must fire on every projection. Without this helper, the strategy
@@ -55,7 +55,7 @@ class LateralCollectionStrategy {
55
55
  * like `__LIT:true`). Falls back to the legacy single-column form when the
56
56
  * navigation metadata doesn't carry the array form.
57
57
  *
58
- * This is the load-bearing helper for the QA_GO-429 Bug D fix: navigation
58
+ * This is the load-bearing helper for the constant-FK projection fix: navigation
59
59
  * properties may declare additional literal predicates beyond the column
60
60
  * equality (e.g. `withForeignKey: [col, isCurrent], withPrincipalKey: [id, true]`)
61
61
  * that must fire on every projection. Without this helper, the strategy
@@ -49,7 +49,7 @@ export declare class TempTableCollectionStrategy implements ICollectionStrategy
49
49
  * with any literal FK predicates declared on the navigation (e.g. SCD2
50
50
  * `is_current = TRUE`). Returns "" or " AND <preds...>". Without this, the
51
51
  * temptable strategy leaks SCD2-closed target rows into the projection — the
52
- * exact QA_GO-429 Bug D symptom.
52
+ * exact constant-FK projection symptom.
53
53
  */
54
54
  private buildAdditionalWhere;
55
55
  requiresParentIds(): boolean;
@@ -57,7 +57,7 @@ class TempTableCollectionStrategy {
57
57
  * with any literal FK predicates declared on the navigation (e.g. SCD2
58
58
  * `is_current = TRUE`). Returns "" or " AND <preds...>". Without this, the
59
59
  * temptable strategy leaks SCD2-closed target rows into the projection — the
60
- * exact QA_GO-429 Bug D symptom.
60
+ * exact constant-FK projection symptom.
61
61
  */
62
62
  buildAdditionalWhere(config, targetTable, rewrittenWhereClause) {
63
63
  const literalPreds = (0, join_utils_1.buildLiteralOnlyPredicates)(targetTable, config.foreignKeys, config.matches);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkgress-orm",
3
- "version": "0.4.61",
3
+ "version": "0.4.63",
4
4
  "description": "A lightweight, type-safe ORM for PostgreSQL with LINQ-style queries and automatic type inference",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",