joist-knex 2.4.0-next.4 → 2.4.0-next.40
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/build/buildKnexQuery.d.cts +1 -2
- package/build/buildKnexQuery.d.cts.map +1 -1
- package/build/buildKnexQuery.d.mts +1 -2
- package/build/buildKnexQuery.d.mts.map +1 -1
- package/build/index.d.cts +2 -3
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +2 -3
- package/build/index.d.mts.map +1 -1
- package/build/utils.d.cts +1 -2
- package/build/utils.d.cts.map +1 -1
- package/build/utils.d.mts +1 -2
- package/build/utils.d.mts.map +1 -1
- package/package.json +4 -4
|
@@ -2,10 +2,9 @@ import { ParsedFindQuery } from "joist-core";
|
|
|
2
2
|
import { Knex } from "knex";
|
|
3
3
|
//#region src/buildKnexQuery.d.ts
|
|
4
4
|
/** Transforms Joist's internal `ParsedFindQuery` AST into a Knex query builder. */
|
|
5
|
-
declare function buildKnexQuery(knex: Knex, parsed: ParsedFindQuery, settings: {
|
|
5
|
+
export declare function buildKnexQuery(knex: Knex, parsed: ParsedFindQuery, settings: {
|
|
6
6
|
limit?: number;
|
|
7
7
|
offset?: number;
|
|
8
8
|
}): Knex.QueryBuilder<{}, unknown[]>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { buildKnexQuery };
|
|
11
10
|
//# sourceMappingURL=buildKnexQuery.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildKnexQuery.d.cts","names":[],"sources":["../src/buildKnexQuery.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"buildKnexQuery.d.cts","names":[],"sources":["../src/buildKnexQuery.ts"],"mappings":";;;;wBAMgB,eACd,MAAM,MACN,QAAQ,iBACR;EAAY;EAAgB;IAC3B,KAAK"}
|
|
@@ -2,10 +2,9 @@ import { ParsedFindQuery } from "joist-core";
|
|
|
2
2
|
import { Knex } from "knex";
|
|
3
3
|
//#region src/buildKnexQuery.d.ts
|
|
4
4
|
/** Transforms Joist's internal `ParsedFindQuery` AST into a Knex query builder. */
|
|
5
|
-
declare function buildKnexQuery(knex: Knex, parsed: ParsedFindQuery, settings: {
|
|
5
|
+
export declare function buildKnexQuery(knex: Knex, parsed: ParsedFindQuery, settings: {
|
|
6
6
|
limit?: number;
|
|
7
7
|
offset?: number;
|
|
8
8
|
}): Knex.QueryBuilder<{}, unknown[]>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { buildKnexQuery };
|
|
11
10
|
//# sourceMappingURL=buildKnexQuery.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildKnexQuery.d.mts","names":[],"sources":["../src/buildKnexQuery.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"buildKnexQuery.d.mts","names":[],"sources":["../src/buildKnexQuery.ts"],"mappings":";;;;wBAMgB,eACd,MAAM,MACN,QAAQ,iBACR;EAAY;EAAgB;IAC3B,KAAK"}
|
package/build/index.d.cts
CHANGED
|
@@ -28,7 +28,7 @@ import pg from "pg";
|
|
|
28
28
|
* @param filter[optimizeJoinsToExists] Disables rewriting collection joins into EXISTS, i.e. because
|
|
29
29
|
* you plan on adding selects/grouping against collection aliases after Joist builds the query.
|
|
30
30
|
*/
|
|
31
|
-
declare function buildQuery<T extends Entity>(knex: Knex, type: MaybeAbstractEntityConstructor<T>, filter: FilterAndSettings<T> & {
|
|
31
|
+
export declare function buildQuery<T extends Entity>(knex: Knex, type: MaybeAbstractEntityConstructor<T>, filter: FilterAndSettings<T> & {
|
|
32
32
|
pruneJoins?: boolean;
|
|
33
33
|
keepAliases?: string[];
|
|
34
34
|
allowMultipleLeftJoins?: boolean;
|
|
@@ -48,7 +48,6 @@ declare function buildQuery<T extends Entity>(knex: Knex, type: MaybeAbstractEnt
|
|
|
48
48
|
* The returned Knex instance has no internal pool, so there is no need to call
|
|
49
49
|
* `.destroy()` on it — the caller owns the Pool/PoolClient lifecycle.
|
|
50
50
|
*/
|
|
51
|
-
declare function createKnex(poolOrClient: pg.Pool | pg.PoolClient): Knex;
|
|
51
|
+
export declare function createKnex(poolOrClient: pg.Pool | pg.PoolClient): Knex;
|
|
52
52
|
//#endregion
|
|
53
|
-
export { buildQuery, createKnex };
|
|
54
53
|
//# sourceMappingURL=index.d.cts.map
|
package/build/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyCgB,WAAW,UAAU,QACnC,MAAM,MACN,MAAM,+BAA+B,IACrC,QAAQ,kBAAkB;EACxB;EACA;EACA;EACA;IAED,KAAK;;;;;;;;;;;;;;;wBAsCQ,WAAW,cAAc,GAAG,OAAO,GAAG,aAAa"}
|
package/build/index.d.mts
CHANGED
|
@@ -28,7 +28,7 @@ import pg from "pg";
|
|
|
28
28
|
* @param filter[optimizeJoinsToExists] Disables rewriting collection joins into EXISTS, i.e. because
|
|
29
29
|
* you plan on adding selects/grouping against collection aliases after Joist builds the query.
|
|
30
30
|
*/
|
|
31
|
-
declare function buildQuery<T extends Entity>(knex: Knex, type: MaybeAbstractEntityConstructor<T>, filter: FilterAndSettings<T> & {
|
|
31
|
+
export declare function buildQuery<T extends Entity>(knex: Knex, type: MaybeAbstractEntityConstructor<T>, filter: FilterAndSettings<T> & {
|
|
32
32
|
pruneJoins?: boolean;
|
|
33
33
|
keepAliases?: string[];
|
|
34
34
|
allowMultipleLeftJoins?: boolean;
|
|
@@ -48,7 +48,6 @@ declare function buildQuery<T extends Entity>(knex: Knex, type: MaybeAbstractEnt
|
|
|
48
48
|
* The returned Knex instance has no internal pool, so there is no need to call
|
|
49
49
|
* `.destroy()` on it — the caller owns the Pool/PoolClient lifecycle.
|
|
50
50
|
*/
|
|
51
|
-
declare function createKnex(poolOrClient: pg.Pool | pg.PoolClient): Knex;
|
|
51
|
+
export declare function createKnex(poolOrClient: pg.Pool | pg.PoolClient): Knex;
|
|
52
52
|
//#endregion
|
|
53
|
-
export { buildQuery, createKnex };
|
|
54
53
|
//# sourceMappingURL=index.d.mts.map
|
package/build/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyCgB,WAAW,UAAU,QACnC,MAAM,MACN,MAAM,+BAA+B,IACrC,QAAQ,kBAAkB;EACxB;EACA;EACA;EACA;IAED,KAAK;;;;;;;;;;;;;;;wBAsCQ,WAAW,cAAc,GAAG,OAAO,GAAG,aAAa"}
|
package/build/utils.d.cts
CHANGED
package/build/utils.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.cts","names":[],"sources":["../src/utils.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":[],"sources":["../src/utils.ts"],"mappings":";wBAAgB,YAAY"}
|
package/build/utils.d.mts
CHANGED
package/build/utils.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.mts","names":[],"sources":["../src/utils.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"utils.d.mts","names":[],"sources":["../src/utils.ts"],"mappings":";wBAAgB,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-knex",
|
|
3
|
-
"version": "2.4.0-next.
|
|
3
|
+
"version": "2.4.0-next.40",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"build"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"joist-core": "2.4.0-next.
|
|
39
|
+
"joist-core": "2.4.0-next.40",
|
|
40
40
|
"knex": "^3.1.0",
|
|
41
41
|
"pg": "^8.23.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@swc/core": "
|
|
44
|
+
"@swc/core": "1.16.18",
|
|
45
45
|
"@swc/jest": "^0.2.39",
|
|
46
46
|
"@types/jest": "^30.0.0",
|
|
47
|
-
"@types/node": "^26.
|
|
47
|
+
"@types/node": "^26.6.5",
|
|
48
48
|
"jest": "30.4.2",
|
|
49
49
|
"tsconfig-paths": "^4.2.0",
|
|
50
50
|
"typescript": "7.0.2"
|