@ronin/compiler 0.11.2 → 0.11.3-leo-ron-1083-1-experimental-233

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
@@ -5996,8 +5996,8 @@ type NativeRecord = Record<string, unknown> & {
5996
5996
  updatedBy: string | null;
5997
5997
  };
5998
5998
  };
5999
- type SingleRecordResult = {
6000
- record: NativeRecord | null;
5999
+ type SingleRecordResult<T = NativeRecord> = {
6000
+ record: T | null;
6001
6001
  };
6002
6002
  type MultipleRecordResult = {
6003
6003
  records: Array<NativeRecord>;
package/dist/index.js CHANGED
@@ -1256,7 +1256,7 @@ var handleSelecting = (models, model, statementParams, instructions, options) =>
1256
1256
  }
1257
1257
  const expandColumns = isJoining && options?.expandColumns;
1258
1258
  if (expandColumns) {
1259
- instructions.selecting = model.fields.map((field) => field.slug);
1259
+ instructions.selecting = model.fields.filter((field) => !(field.type === "link" && field.kind === "many")).map((field) => field.slug);
1260
1260
  }
1261
1261
  if (instructions.selecting) {
1262
1262
  const usableModel = expandColumns ? { ...model, tableAlias: model.tableAlias || model.table } : model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.11.2",
3
+ "version": "0.11.3-leo-ron-1083-1-experimental-233",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {