orange-orm 5.3.2 → 5.3.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/deno.lock +75 -0
- package/dist/index.browser.mjs +4 -3
- package/dist/index.mjs +6 -5
- package/docs/changelog.md +2 -0
- package/other.db +0 -0
- package/package.json +1 -1
- package/src/getManyDto.js +4 -3
- package/src/mssql/newTransaction.js +1 -1
- package/src/tedious/newTransaction.js +1 -1
package/deno.lock
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "5",
|
|
3
|
+
"specifiers": {
|
|
4
|
+
"jsr:@std/assert@*": "1.0.19",
|
|
5
|
+
"jsr:@std/assert@^1.0.17": "1.0.19",
|
|
6
|
+
"jsr:@std/internal@^1.0.12": "1.0.12",
|
|
7
|
+
"jsr:@std/path@*": "1.1.4",
|
|
8
|
+
"jsr:@std/testing@*": "1.0.17"
|
|
9
|
+
},
|
|
10
|
+
"jsr": {
|
|
11
|
+
"@std/assert@1.0.19": {
|
|
12
|
+
"integrity": "eaada96ee120cb980bc47e040f82814d786fe8162ecc53c91d8df60b8755991e",
|
|
13
|
+
"dependencies": [
|
|
14
|
+
"jsr:@std/internal"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"@std/internal@1.0.12": {
|
|
18
|
+
"integrity": "972a634fd5bc34b242024402972cd5143eac68d8dffaca5eaa4dba30ce17b027"
|
|
19
|
+
},
|
|
20
|
+
"@std/path@1.1.4": {
|
|
21
|
+
"integrity": "1d2d43f39efb1b42f0b1882a25486647cb851481862dc7313390b2bb044314b5",
|
|
22
|
+
"dependencies": [
|
|
23
|
+
"jsr:@std/internal"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"@std/testing@1.0.17": {
|
|
27
|
+
"integrity": "87bdc2700fa98249d48a17cd72413352d3d3680dcfbdb64947fd0982d6bbf681",
|
|
28
|
+
"dependencies": [
|
|
29
|
+
"jsr:@std/assert@^1.0.17",
|
|
30
|
+
"jsr:@std/internal"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"workspace": {
|
|
35
|
+
"packageJson": {
|
|
36
|
+
"dependencies": [
|
|
37
|
+
"npm:@cloudflare/workers-types@^4.20241106.0",
|
|
38
|
+
"npm:@electric-sql/pglite@0.3",
|
|
39
|
+
"npm:@hono/node-server@^1.14.4",
|
|
40
|
+
"npm:@lroal/on-change@^4.0.2",
|
|
41
|
+
"npm:@rollup/plugin-commonjs@^28.0.2",
|
|
42
|
+
"npm:@rollup/plugin-json@^6.1.0",
|
|
43
|
+
"npm:@rollup/plugin-node-resolve@13",
|
|
44
|
+
"npm:@tediousjs/connection-string@~0.4.1",
|
|
45
|
+
"npm:@types/express@^4.17.13",
|
|
46
|
+
"npm:@types/oracledb@^6.0.4",
|
|
47
|
+
"npm:@types/tedious@^4.0.14",
|
|
48
|
+
"npm:@typescript-eslint/eslint-plugin@^8.56.1",
|
|
49
|
+
"npm:@typescript-eslint/parser@^8.56.1",
|
|
50
|
+
"npm:@vitest/coverage-v8@^3.2.4",
|
|
51
|
+
"npm:ajv@^8.17.1",
|
|
52
|
+
"npm:axios@^1.6.2",
|
|
53
|
+
"npm:better-sqlite3@^12.6.2",
|
|
54
|
+
"npm:cors@^2.8.5",
|
|
55
|
+
"npm:eslint-plugin-jest@^29.15.0",
|
|
56
|
+
"npm:eslint@^8.57.0",
|
|
57
|
+
"npm:express@^4.18.2",
|
|
58
|
+
"npm:fast-json-patch@^3.1.1",
|
|
59
|
+
"npm:hono@^4.8.2",
|
|
60
|
+
"npm:msnodesqlv8@^4.1.0",
|
|
61
|
+
"npm:mysql2@^3.9.4",
|
|
62
|
+
"npm:oracledb@^6.3.0",
|
|
63
|
+
"npm:owasp-dependency-check@^0.0.21",
|
|
64
|
+
"npm:pg-query-stream@^3.3.2",
|
|
65
|
+
"npm:pg@^8.5.1",
|
|
66
|
+
"npm:rfdc@^1.2.0",
|
|
67
|
+
"npm:rollup@^2.52.7",
|
|
68
|
+
"npm:tedious@19",
|
|
69
|
+
"npm:typescript@^5.4.5",
|
|
70
|
+
"npm:uuid@^8.3.2 || 9 || 10 || ^11.1.0",
|
|
71
|
+
"npm:vitest@^3.2.4"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
package/dist/index.browser.mjs
CHANGED
|
@@ -11830,9 +11830,6 @@ function requireGetManyDto$1 () {
|
|
|
11830
11830
|
|
|
11831
11831
|
async function decodeManyRelations(context, strategy, span) {
|
|
11832
11832
|
const maxParameters = getSessionSingleton(context, 'maxParameters');
|
|
11833
|
-
const maxRows = maxParameters
|
|
11834
|
-
? maxParameters * span.table._primaryColumns.length
|
|
11835
|
-
: undefined;
|
|
11836
11833
|
|
|
11837
11834
|
const promises = [];
|
|
11838
11835
|
const c = {};
|
|
@@ -11852,6 +11849,10 @@ function requireGetManyDto$1 () {
|
|
|
11852
11849
|
const name = leg.name;
|
|
11853
11850
|
const table = span.table;
|
|
11854
11851
|
const relation = table._relations[name];
|
|
11852
|
+
const parametersPerRow = relation.joinRelation.columns.length;
|
|
11853
|
+
const maxRows = maxParameters
|
|
11854
|
+
? Math.max(1, Math.floor((maxParameters - 1) / parametersPerRow))
|
|
11855
|
+
: undefined;
|
|
11855
11856
|
const rowsMap = span._rowsMap;
|
|
11856
11857
|
|
|
11857
11858
|
const extractKey = createExtractKey(leg);
|
package/dist/index.mjs
CHANGED
|
@@ -11831,9 +11831,6 @@ function requireGetManyDto$1 () {
|
|
|
11831
11831
|
|
|
11832
11832
|
async function decodeManyRelations(context, strategy, span) {
|
|
11833
11833
|
const maxParameters = getSessionSingleton(context, 'maxParameters');
|
|
11834
|
-
const maxRows = maxParameters
|
|
11835
|
-
? maxParameters * span.table._primaryColumns.length
|
|
11836
|
-
: undefined;
|
|
11837
11834
|
|
|
11838
11835
|
const promises = [];
|
|
11839
11836
|
const c = {};
|
|
@@ -11853,6 +11850,10 @@ function requireGetManyDto$1 () {
|
|
|
11853
11850
|
const name = leg.name;
|
|
11854
11851
|
const table = span.table;
|
|
11855
11852
|
const relation = table._relations[name];
|
|
11853
|
+
const parametersPerRow = relation.joinRelation.columns.length;
|
|
11854
|
+
const maxRows = maxParameters
|
|
11855
|
+
? Math.max(1, Math.floor((maxParameters - 1) / parametersPerRow))
|
|
11856
|
+
: undefined;
|
|
11856
11857
|
const rowsMap = span._rowsMap;
|
|
11857
11858
|
|
|
11858
11859
|
const extractKey = createExtractKey(leg);
|
|
@@ -20915,7 +20916,7 @@ function requireNewTransaction$3 () {
|
|
|
20915
20916
|
rdb.pool = pool;
|
|
20916
20917
|
}
|
|
20917
20918
|
rdb.engine = 'mssqlNative';
|
|
20918
|
-
rdb.maxParameters =
|
|
20919
|
+
rdb.maxParameters = 2098;
|
|
20919
20920
|
rdb.encodeBoolean = encodeBoolean;
|
|
20920
20921
|
rdb.decodeJSON = decodeJSON;
|
|
20921
20922
|
rdb.encodeJSON = JSON.stringify;
|
|
@@ -21678,7 +21679,7 @@ function requireNewTransaction$2 () {
|
|
|
21678
21679
|
rdb.pool = pool;
|
|
21679
21680
|
}
|
|
21680
21681
|
rdb.engine = 'mssql';
|
|
21681
|
-
rdb.maxParameters =
|
|
21682
|
+
rdb.maxParameters = 2098;
|
|
21682
21683
|
rdb.encodeBoolean = encodeBoolean;
|
|
21683
21684
|
rdb.decodeJSON = decodeJSON;
|
|
21684
21685
|
rdb.encodeJSON = JSON.stringify;
|
package/docs/changelog.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
__5.3.3__
|
|
3
|
+
MSSQL: Set `maxParameters` to `2098` because `tedious` adds extra parameters, so using `2100` can still exceed SQL Server's limit during `getMany`/`hasMany` loading.
|
|
2
4
|
__5.3.2__
|
|
3
5
|
Removed uuid dependency.
|
|
4
6
|
Upgraded to tedious@19.2.1 to reduce transitive audit vulnerabilities in the MSSQL driver chain.
|
package/other.db
ADDED
|
Binary file
|
package/package.json
CHANGED
package/src/getManyDto.js
CHANGED
|
@@ -184,9 +184,6 @@ async function decode(context, strategy, span, rows, keys = rows.length > 0 ? Ob
|
|
|
184
184
|
|
|
185
185
|
async function decodeManyRelations(context, strategy, span) {
|
|
186
186
|
const maxParameters = getSessionSingleton(context, 'maxParameters');
|
|
187
|
-
const maxRows = maxParameters
|
|
188
|
-
? maxParameters * span.table._primaryColumns.length
|
|
189
|
-
: undefined;
|
|
190
187
|
|
|
191
188
|
const promises = [];
|
|
192
189
|
const c = {};
|
|
@@ -206,6 +203,10 @@ async function decodeManyRelations(context, strategy, span) {
|
|
|
206
203
|
const name = leg.name;
|
|
207
204
|
const table = span.table;
|
|
208
205
|
const relation = table._relations[name];
|
|
206
|
+
const parametersPerRow = relation.joinRelation.columns.length;
|
|
207
|
+
const maxRows = maxParameters
|
|
208
|
+
? Math.max(1, Math.floor((maxParameters - 1) / parametersPerRow))
|
|
209
|
+
: undefined;
|
|
209
210
|
const rowsMap = span._rowsMap;
|
|
210
211
|
|
|
211
212
|
const extractKey = createExtractKey(leg);
|
|
@@ -19,7 +19,7 @@ function newResolveTransaction(domain, pool, { readonly = false } = {}) {
|
|
|
19
19
|
rdb.pool = pool;
|
|
20
20
|
}
|
|
21
21
|
rdb.engine = 'mssqlNative';
|
|
22
|
-
rdb.maxParameters =
|
|
22
|
+
rdb.maxParameters = 2098;
|
|
23
23
|
rdb.encodeBoolean = encodeBoolean;
|
|
24
24
|
rdb.decodeJSON = decodeJSON;
|
|
25
25
|
rdb.encodeJSON = JSON.stringify;
|
|
@@ -19,7 +19,7 @@ function newResolveTransaction(domain, pool, { readonly = false } = {}) {
|
|
|
19
19
|
rdb.pool = pool;
|
|
20
20
|
}
|
|
21
21
|
rdb.engine = 'mssql';
|
|
22
|
-
rdb.maxParameters =
|
|
22
|
+
rdb.maxParameters = 2098;
|
|
23
23
|
rdb.encodeBoolean = encodeBoolean;
|
|
24
24
|
rdb.decodeJSON = decodeJSON;
|
|
25
25
|
rdb.encodeJSON = JSON.stringify;
|