bigal 14.1.15 → 14.1.17

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [14.1.17](https://github.com/bigalorm/bigal/compare/v14.1.16...v14.1.17) (2025-12-16)
2
+
3
+ ## [14.1.16](https://github.com/bigalorm/bigal/compare/v14.1.15...v14.1.16) (2025-12-16)
4
+
1
5
  ## [14.1.15](https://github.com/bigalorm/bigal/compare/v14.1.14...v14.1.15) (2025-12-15)
2
6
 
3
7
  ## [14.1.14](https://github.com/bigalorm/bigal/compare/v14.1.13...v14.1.14) (2025-12-14)
package/dist/index.cjs CHANGED
@@ -610,7 +610,7 @@ function getUpdateQueryAndParams({
610
610
  repositoriesByModelNameLowered,
611
611
  model,
612
612
  where,
613
- values = {},
613
+ values,
614
614
  returnRecords = true,
615
615
  returnSelect
616
616
  }) {
@@ -819,7 +819,7 @@ function buildWhere({
819
819
  comparer,
820
820
  isNegated = false,
821
821
  value,
822
- params = []
822
+ params
823
823
  }) {
824
824
  switch (comparer ?? propertyName) {
825
825
  case "!":
@@ -1152,7 +1152,7 @@ function buildOrOperatorStatement({
1152
1152
  model,
1153
1153
  isNegated,
1154
1154
  value,
1155
- params = []
1155
+ params
1156
1156
  }) {
1157
1157
  const orClauses = [];
1158
1158
  for (const constraint of value) {
@@ -1254,7 +1254,7 @@ function buildLikeOperatorStatement({ model, propertyName, isNegated, value, par
1254
1254
  }
1255
1255
  throw new QueryError(`Expected value to be a string for "like" constraint. Property (${propertyName}) in model (${model.name}).`, model);
1256
1256
  }
1257
- function buildComparisonOperatorStatement({ model, propertyName, comparer, isNegated, value, params = [] }) {
1257
+ function buildComparisonOperatorStatement({ model, propertyName, comparer, isNegated, value, params }) {
1258
1258
  const column = model.columnsByPropertyName[propertyName];
1259
1259
  if (!column) {
1260
1260
  throw new QueryError(`Unable to find property ${propertyName} on model ${model.name}`, model);
@@ -1641,7 +1641,7 @@ ${stack ?? ""}`;
1641
1641
  * @param {number} [limit] - Number of records to return
1642
1642
  * @returns Query instance
1643
1643
  */
1644
- paginate({ page = 1, limit: paginateLimit = 10 }) {
1644
+ paginate({ page, limit: paginateLimit }) {
1645
1645
  const safePage = Math.max(page, 1);
1646
1646
  return this.skip(safePage * paginateLimit - paginateLimit).limit(paginateLimit);
1647
1647
  },
package/dist/index.mjs CHANGED
@@ -604,7 +604,7 @@ function getUpdateQueryAndParams({
604
604
  repositoriesByModelNameLowered,
605
605
  model,
606
606
  where,
607
- values = {},
607
+ values,
608
608
  returnRecords = true,
609
609
  returnSelect
610
610
  }) {
@@ -813,7 +813,7 @@ function buildWhere({
813
813
  comparer,
814
814
  isNegated = false,
815
815
  value,
816
- params = []
816
+ params
817
817
  }) {
818
818
  switch (comparer ?? propertyName) {
819
819
  case "!":
@@ -1146,7 +1146,7 @@ function buildOrOperatorStatement({
1146
1146
  model,
1147
1147
  isNegated,
1148
1148
  value,
1149
- params = []
1149
+ params
1150
1150
  }) {
1151
1151
  const orClauses = [];
1152
1152
  for (const constraint of value) {
@@ -1248,7 +1248,7 @@ function buildLikeOperatorStatement({ model, propertyName, isNegated, value, par
1248
1248
  }
1249
1249
  throw new QueryError(`Expected value to be a string for "like" constraint. Property (${propertyName}) in model (${model.name}).`, model);
1250
1250
  }
1251
- function buildComparisonOperatorStatement({ model, propertyName, comparer, isNegated, value, params = [] }) {
1251
+ function buildComparisonOperatorStatement({ model, propertyName, comparer, isNegated, value, params }) {
1252
1252
  const column = model.columnsByPropertyName[propertyName];
1253
1253
  if (!column) {
1254
1254
  throw new QueryError(`Unable to find property ${propertyName} on model ${model.name}`, model);
@@ -1635,7 +1635,7 @@ ${stack ?? ""}`;
1635
1635
  * @param {number} [limit] - Number of records to return
1636
1636
  * @returns Query instance
1637
1637
  */
1638
- paginate({ page = 1, limit: paginateLimit = 10 }) {
1638
+ paginate({ page, limit: paginateLimit }) {
1639
1639
  const safePage = Math.max(page, 1);
1640
1640
  return this.skip(safePage * paginateLimit - paginateLimit).limit(paginateLimit);
1641
1641
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigal",
3
- "version": "14.1.15",
3
+ "version": "14.1.17",
4
4
  "description": "A fast and lightweight orm for postgres and node.js, written in typescript.",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "@types/node": ">=20",
53
53
  "chai": "6.2.1",
54
54
  "eslint": "9.39.2",
55
- "eslint-config-decent": "3.1.65",
55
+ "eslint-config-decent": "3.1.67",
56
56
  "husky": "9.1.7",
57
57
  "lint-staged": "16.2.7",
58
58
  "markdownlint-cli": "0.47.0",