orange-orm 4.6.2 → 4.6.3

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.
@@ -11069,8 +11069,8 @@ function requireGetManyDto$1 () {
11069
11069
  return decode(context, strategy[name], leg.span, rawRows, keys, updateParent);
11070
11070
 
11071
11071
  function updateParent(subRow, i) {
11072
- resultRows[i][name] = subRow;
11073
-
11072
+ if (resultRows[i])
11073
+ resultRows[i][name] = subRow;
11074
11074
  }
11075
11075
  };
11076
11076
 
package/dist/index.mjs CHANGED
@@ -11071,8 +11071,8 @@ function requireGetManyDto$2 () {
11071
11071
  return decode(context, strategy[name], leg.span, rawRows, keys, updateParent);
11072
11072
 
11073
11073
  function updateParent(subRow, i) {
11074
- resultRows[i][name] = subRow;
11075
-
11074
+ if (resultRows[i])
11075
+ resultRows[i][name] = subRow;
11076
11076
  }
11077
11077
  };
11078
11078
 
package/docs/changelog.md CHANGED
@@ -1,8 +1,10 @@
1
1
  ## Changelog
2
+ __4.6.3__
3
+ Bugfix: Chained Reference relation throws if first one is null. See [#126](https://github.com/alfateam/issues/126)
2
4
  __4.6.2__
3
5
  Bugfix: crashed when combining endsWith filter with other filter: e.g. `endsWith('foo').or(...)`
4
6
  __4.6.1__
5
- Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/)
7
+ Bugfix: No intellisense when running in browser mode . See [#125](https://github.com/alfateam/issues/125)
6
8
  __4.6.0__
7
9
  Support for Deno and Bun.
8
10
  Using builtin sqlite for Node22++.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "4.6.2",
3
+ "version": "4.6.3",
4
4
  "main": "./src/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "browser": "./dist/index.browser.mjs",
package/src/getManyDto.js CHANGED
@@ -338,8 +338,8 @@ async function decodeRelations2(context, strategy, span, rawRows, resultRows, ke
338
338
  return decode(context, strategy[name], leg.span, rawRows, keys, updateParent);
339
339
 
340
340
  function updateParent(subRow, i) {
341
- resultRows[i][name] = subRow;
342
-
341
+ if (resultRows[i])
342
+ resultRows[i][name] = subRow;
343
343
  }
344
344
  };
345
345