orange-orm 4.7.10-beta.1 → 4.7.10-beta.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.
- package/README.md +2 -4
- package/dist/index.browser.mjs +1 -0
- package/dist/index.mjs +1 -0
- package/docs/changelog.md +2 -0
- package/package.json +1 -1
- package/src/index.js +1 -0
- package/src/indexBrowser.js +1 -0
- package/src/map.d.ts +22 -886
- package/src/map2.d.ts +129 -43
- package/src/cyclic.d.ts +0 -132
package/README.md
CHANGED
|
@@ -94,8 +94,7 @@ const map = orange.map(x => ({
|
|
|
94
94
|
})).map(x => ({
|
|
95
95
|
orderLine: x.orderLine.map(({ hasMany }) => ({
|
|
96
96
|
packages: hasMany(x.package).by('lineId')
|
|
97
|
-
}))
|
|
98
|
-
})).map(x => ({
|
|
97
|
+
})),
|
|
99
98
|
order: x.order.map(v => ({
|
|
100
99
|
customer: v.references(x.customer).by('customerId'),
|
|
101
100
|
lines: v.hasMany(x.orderLine).by('orderId'),
|
|
@@ -200,8 +199,7 @@ const map = orange.map(x => ({
|
|
|
200
199
|
})).map(x => ({
|
|
201
200
|
orderLine: x.orderLine.map(({ hasMany }) => ({
|
|
202
201
|
packages: hasMany(x.package).by('lineId')
|
|
203
|
-
}))
|
|
204
|
-
})).map(x => ({
|
|
202
|
+
})),
|
|
205
203
|
order: x.order.map(({ hasOne, hasMany, references }) => ({
|
|
206
204
|
customer: references(x.customer).by('customerId'),
|
|
207
205
|
deliveryAddress: hasOne(x.deliveryAddress).by('orderId'),
|
package/dist/index.browser.mjs
CHANGED
|
@@ -14799,6 +14799,7 @@ function requireIndexBrowser () {
|
|
|
14799
14799
|
connectViaPool.commit = requireCommit();
|
|
14800
14800
|
connectViaPool.rollback = requireRollback();
|
|
14801
14801
|
connectViaPool.end = requirePools().end;
|
|
14802
|
+
connectViaPool.close = connectViaPool.end;
|
|
14802
14803
|
connectViaPool.log = requireLog().registerLogger;
|
|
14803
14804
|
connectViaPool.on = requireLog().on;
|
|
14804
14805
|
connectViaPool.off = requireLog().off;
|
package/dist/index.mjs
CHANGED
|
@@ -20520,6 +20520,7 @@ function requireSrc () {
|
|
|
20520
20520
|
connectViaPool.commit = requireCommit();
|
|
20521
20521
|
connectViaPool.rollback = requireRollback();
|
|
20522
20522
|
connectViaPool.end = requirePools().end;
|
|
20523
|
+
connectViaPool.close = connectViaPool.end;
|
|
20523
20524
|
connectViaPool.log = requireLog().registerLogger;
|
|
20524
20525
|
connectViaPool.on = requireLog().on;
|
|
20525
20526
|
connectViaPool.off = requireLog().off;
|
package/docs/changelog.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
__4.7.10__
|
|
3
|
+
Enabled cyclic dependencies in type mapping to support true bidirectional relationships. See [#132](https://github.com/alfateam/orange-orm/issues/132)
|
|
2
4
|
__4.7.9__
|
|
3
5
|
Bugfix: MsSql: Validation failed for parameter '0'. Value must be between -2147483648 and 2147483647, inclusive. See [#131](https://github.com/alfateam/orange-orm/issues/131)
|
|
4
6
|
__4.7.8__
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -28,6 +28,7 @@ connectViaPool.filter = require('./emptyFilter');
|
|
|
28
28
|
connectViaPool.commit = require('./table/commit');
|
|
29
29
|
connectViaPool.rollback = require('./table/rollback');
|
|
30
30
|
connectViaPool.end = require('./pools').end;
|
|
31
|
+
connectViaPool.close = connectViaPool.end;
|
|
31
32
|
connectViaPool.log = require('./table/log').registerLogger;
|
|
32
33
|
connectViaPool.on = require('./table/log').on;
|
|
33
34
|
connectViaPool.off = require('./table/log').off;
|
package/src/indexBrowser.js
CHANGED
|
@@ -14,6 +14,7 @@ connectViaPool.filter = require('./emptyFilter');
|
|
|
14
14
|
connectViaPool.commit = require('./table/commit');
|
|
15
15
|
connectViaPool.rollback = require('./table/rollback');
|
|
16
16
|
connectViaPool.end = require('./pools').end;
|
|
17
|
+
connectViaPool.close = connectViaPool.end;
|
|
17
18
|
connectViaPool.log = require('./table/log').registerLogger;
|
|
18
19
|
connectViaPool.on = require('./table/log').on;
|
|
19
20
|
connectViaPool.off = require('./table/log').off;
|