@mrxsys/mrx-core 2.11.0-1-and-286-20251124 → 2.11.0-1-and-287-20251128

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.
@@ -116,6 +116,10 @@ class Repository {
116
116
  async update(data, options) {
117
117
  const query = this._knex(this._table.name).update(data);
118
118
  this._applyQueryOptions(query, options);
119
+ if (options.limit)
120
+ query.limit(options.limit);
121
+ if (options.offset)
122
+ query.offset(options.offset);
119
123
  return this._executeQuery(query, options?.throwIfNoResult);
120
124
  }
121
125
  async delete(options) {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  Repository
4
- } from "./chunk-dyntzdyn.js";
4
+ } from "./chunk-7j86h1nd.js";
5
5
  import {
6
6
  TypedEventEmitter
7
7
  } from "./chunk-mvrxngm7.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  dbResolver
4
- } from "./chunk-pcfjfxbw.js";
4
+ } from "./chunk-yzgdqb02.js";
5
5
  import {
6
6
  CRUD_SUCCESS_KEYS
7
7
  } from "./chunk-w7h898m3.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-ayyrgqyv.js";
8
8
  import {
9
9
  MSSQL
10
- } from "./chunk-1yykvnyz.js";
10
+ } from "./chunk-sbpj7f3p.js";
11
11
  import {
12
12
  InternalError
13
13
  } from "./chunk-jz3wd472.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  MSSQL,
4
4
  Table
5
- } from "../../chunk-1yykvnyz.js";
6
- import"../../chunk-dyntzdyn.js";
5
+ } from "../../chunk-sbpj7f3p.js";
6
+ import"../../chunk-7j86h1nd.js";
7
7
  import"../../chunk-grfyngq0.js";
8
8
  import"../../chunk-mvrxngm7.js";
9
9
  import"../../chunk-zv4ta4fb.js";
@@ -20,16 +20,16 @@ import {
20
20
  insert,
21
21
  update,
22
22
  updateOne
23
- } from "../../../chunk-tg6wsheh.js";
24
- import"../../../chunk-pcfjfxbw.js";
23
+ } from "../../../chunk-tmvj28bq.js";
24
+ import"../../../chunk-yzgdqb02.js";
25
25
  import"../../../chunk-r7yr9p57.js";
26
26
  import"../../../chunk-y5dtkmnp.js";
27
27
  import"../../../chunk-ayyrgqyv.js";
28
28
  import"../../../chunk-w7h898m3.js";
29
29
  import"../../../chunk-hv6g22kf.js";
30
30
  import"../../../chunk-10w8mg8e.js";
31
- import"../../../chunk-1yykvnyz.js";
32
- import"../../../chunk-dyntzdyn.js";
31
+ import"../../../chunk-sbpj7f3p.js";
32
+ import"../../../chunk-7j86h1nd.js";
33
33
  import"../../../chunk-grfyngq0.js";
34
34
  import"../../../chunk-mvrxngm7.js";
35
35
  import"../../../chunk-zv4ta4fb.js";
@@ -8,14 +8,14 @@ import {
8
8
  insert,
9
9
  update,
10
10
  updateOne
11
- } from "../../../../chunk-tg6wsheh.js";
12
- import"../../../../chunk-pcfjfxbw.js";
11
+ } from "../../../../chunk-tmvj28bq.js";
12
+ import"../../../../chunk-yzgdqb02.js";
13
13
  import"../../../../chunk-r7yr9p57.js";
14
14
  import"../../../../chunk-y5dtkmnp.js";
15
15
  import"../../../../chunk-ayyrgqyv.js";
16
16
  import"../../../../chunk-w7h898m3.js";
17
- import"../../../../chunk-1yykvnyz.js";
18
- import"../../../../chunk-dyntzdyn.js";
17
+ import"../../../../chunk-sbpj7f3p.js";
18
+ import"../../../../chunk-7j86h1nd.js";
19
19
  import"../../../../chunk-grfyngq0.js";
20
20
  import"../../../../chunk-mvrxngm7.js";
21
21
  import"../../../../chunk-zv4ta4fb.js";
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  dbResolver
4
- } from "../../../chunk-pcfjfxbw.js";
4
+ } from "../../../chunk-yzgdqb02.js";
5
5
  import"../../../chunk-r7yr9p57.js";
6
6
  import"../../../chunk-y5dtkmnp.js";
7
7
  import"../../../chunk-ayyrgqyv.js";
8
- import"../../../chunk-1yykvnyz.js";
9
- import"../../../chunk-dyntzdyn.js";
8
+ import"../../../chunk-sbpj7f3p.js";
9
+ import"../../../chunk-7j86h1nd.js";
10
10
  import"../../../chunk-grfyngq0.js";
11
11
  import"../../../chunk-mvrxngm7.js";
12
12
  import"../../../chunk-zv4ta4fb.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  Repository
4
- } from "../../chunk-dyntzdyn.js";
4
+ } from "../../chunk-7j86h1nd.js";
5
5
  import"../../chunk-grfyngq0.js";
6
6
  import"../../chunk-zv4ta4fb.js";
7
7
  import"../../chunk-sqts8vyk.js";
@@ -304,7 +304,7 @@ export declare class Repository<TModel = Record<string, unknown>> {
304
304
  * });
305
305
  * ```
306
306
  */
307
- update<KModel extends TModel = TModel>(data: Partial<NoInfer<KModel>>, options: Omit<QueryOptions<KModel>, 'orderBy' | 'filters'> & Required<Pick<QueryOptions<KModel>, 'filters'>>): Promise<Required<KModel>[]>;
307
+ update<KModel extends TModel = TModel>(data: Partial<NoInfer<KModel>>, options: Omit<QueryOptionsExtendPagination<KModel>, 'orderBy' | 'filters'> & Required<Pick<QueryOptions<KModel>, 'filters'>>): Promise<Required<KModel>[]>;
308
308
  /**
309
309
  * Deletes records from the database based on the specified query options and returns the deleted records.
310
310
  * This method supports advanced filtering capabilities to filter the records before deletion.
@@ -352,7 +352,7 @@ export declare class Repository<TModel = Record<string, unknown>> {
352
352
  * @param query - The Knex.js query builder to apply the selected fields to.
353
353
  * @param selectedFields - The fields to select. Can be a single field or an array of fields.
354
354
  */
355
- protected _applySelectedFields<KModel>(query: Knex.QueryBuilder, selectedFields: QueryOptions<KModel>['selectedFields'] | undefined): void;
355
+ protected _applySelectedFields<KModel>(query: Knex.QueryBuilder, selectedFields: QueryOptions<KModel>['selectedFields']): void;
356
356
  /**
357
357
  * Applies filter criteria to a Knex.js query builder. This method supports complex queries
358
358
  * using operators like `$eq`, `$neq`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$nin`, `$between`, `$nbetween`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrxsys/mrx-core",
3
- "version": "2.11.0-1-and-286-20251124",
3
+ "version": "2.11.0-1-and-287-20251128",
4
4
  "author": "Ruby",
5
5
  "devDependencies": {
6
6
  "@eslint/js": "^9.39.1",
@@ -15,8 +15,8 @@
15
15
  "jose": "^6.1.2",
16
16
  "knex": "^3.1.0",
17
17
  "mssql": "^12.1.1",
18
- "nodemailer": "^7.0.10",
19
- "typescript-eslint": "^8.47.0"
18
+ "nodemailer": "^7.0.11",
19
+ "typescript-eslint": "^8.48.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@sinclair/typebox": "0.34.41",
@@ -25,7 +25,7 @@
25
25
  "jose": "^6.1.2",
26
26
  "mssql": "^12.1.1",
27
27
  "knex": "^3.1.0",
28
- "nodemailer": "^7.0.10",
28
+ "nodemailer": "^7.0.11",
29
29
  "typescript": "^5.9.3"
30
30
  },
31
31
  "exports": {