bigal 13.0.11 → 13.1.1

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,16 @@
1
+ ## [13.1.1](https://github.com/bigalorm/bigal/compare/v13.1.0...v13.1.1) (2025-05-05)
2
+
3
+ # [13.1.0](https://github.com/bigalorm/bigal/compare/v13.0.11...v13.1.0) (2025-05-01)
4
+
5
+ ### Bug Fixes
6
+
7
+ - **deps:** update all dependencies ([#103](https://github.com/bigalorm/bigal/issues/103)) ([5439258](https://github.com/bigalorm/bigal/commit/5439258e0ece2f650a0fa301d625e16edec7a070))
8
+ - **deps:** update dependency @types/pg to v8.11.14 ([#102](https://github.com/bigalorm/bigal/issues/102)) ([8ee31bf](https://github.com/bigalorm/bigal/commit/8ee31bfd5b74eb040e809505506e8113db067a6d))
9
+
10
+ ### Features
11
+
12
+ - Add UUID data type ([#104](https://github.com/bigalorm/bigal/issues/104)) ([d1469d3](https://github.com/bigalorm/bigal/commit/d1469d385a8ddd43a0c2bfa67b0c6e39e1ba7641))
13
+
1
14
  ## [13.0.11](https://github.com/bigalorm/bigal/compare/v13.0.10...v13.0.11) (2025-04-23)
2
15
 
3
16
  ### Bug Fixes
package/dist/index.cjs CHANGED
@@ -1082,6 +1082,10 @@ function buildWhere({
1082
1082
  case "boolean[]":
1083
1083
  castType = "::BOOLEAN[]";
1084
1084
  break;
1085
+ case "uuid":
1086
+ case "uuid[]":
1087
+ castType = "::UUID[]";
1088
+ break;
1085
1089
  default:
1086
1090
  castType = "::TEXT[]";
1087
1091
  break;
package/dist/index.d.cts CHANGED
@@ -261,7 +261,7 @@ interface ColumnTypeMetadataOptions extends ColumnBaseMetadataOptions {
261
261
  /**
262
262
  * Type of sql column
263
263
  */
264
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
264
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
265
265
  /**
266
266
  * Default database value
267
267
  */
@@ -281,7 +281,7 @@ declare class ColumnTypeMetadata extends ColumnBaseMetadata {
281
281
  /**
282
282
  * Type of the column
283
283
  */
284
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
284
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
285
285
  /**
286
286
  * Default database value
287
287
  */
@@ -813,7 +813,7 @@ interface ColumnTypeOptions extends ColumnBaseOptions {
813
813
  /**
814
814
  * Type of the column
815
815
  */
816
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
816
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
817
817
  /**
818
818
  * Default database value
819
819
  */
@@ -898,4 +898,5 @@ interface InitializeOptions extends IConnection {
898
898
  */
899
899
  declare function initialize({ models, pool, readonlyPool, connections, expose }: InitializeOptions): Record<string, IReadonlyRepository<Entity> | IRepository<Entity>>;
900
900
 
901
- export { type ClassLike, ColumnBaseMetadata, type ColumnBaseMetadataOptions, ColumnCollectionMetadata, type ColumnCollectionMetadataOptions, type ColumnMetadata, ColumnModelMetadata, type ColumnModelMetadataOptions, type ColumnModifierMetadata, ColumnTypeMetadata, type ColumnTypeMetadataOptions, type Comparer, type CountResult, type CreateUpdateOptions, type CreateUpdateParams, type DeleteOptions, type DestroyResult, type DoNotReturnRecords, Entity, type EntityFieldValue, type EntityPrimitiveOrId, type EntityStatic, type ExcludeEntityCollections, type ExcludeFunctions, type FindArgs, type FindOneArgs, type FindOneResult, type FindResult, type GetValueType, type IConnection, type IReadonlyRepository, type IRepository, type IRepositoryOptions, type IncludeFunctions, type InitializeOptions, type IsValueOfType, type LiteralValues, ModelMetadata, type ModelMetadataOptions, type MultipleSortString, type NegatableConstraint, type NotEntity, type NotEntityBrand, type NumberOrDateConstraint, type OmitEntityCollections, type OmitFunctions, type OrderBy, type PaginateOptions, type PickAsType, type PickByValueType, type PickFunctions, type PopulateArgs, type Populated, QueryError, type QueryResult, type QueryResultOptionalPopulated, type QueryResultPopulated, ReadonlyRepository, Repository, type ReturnSelect$1 as ReturnSelect, type Sort, type SortObject, type SortObjectValue, type SortString, type StringConstraint, type WhereClauseValue, type WhereQuery, type WhereQueryStatement, column, createDateColumn, getMetadataStorage, initialize, primaryColumn, table, updateDateColumn, versionColumn };
901
+ export { ColumnBaseMetadata, ColumnCollectionMetadata, ColumnModelMetadata, ColumnTypeMetadata, Entity, ModelMetadata, QueryError, ReadonlyRepository, Repository, column, createDateColumn, getMetadataStorage, initialize, primaryColumn, table, updateDateColumn, versionColumn };
902
+ export type { ClassLike, ColumnBaseMetadataOptions, ColumnCollectionMetadataOptions, ColumnMetadata, ColumnModelMetadataOptions, ColumnModifierMetadata, ColumnTypeMetadataOptions, Comparer, CountResult, CreateUpdateOptions, CreateUpdateParams, DeleteOptions, DestroyResult, DoNotReturnRecords, EntityFieldValue, EntityPrimitiveOrId, EntityStatic, ExcludeEntityCollections, ExcludeFunctions, FindArgs, FindOneArgs, FindOneResult, FindResult, GetValueType, IConnection, IReadonlyRepository, IRepository, IRepositoryOptions, IncludeFunctions, InitializeOptions, IsValueOfType, LiteralValues, ModelMetadataOptions, MultipleSortString, NegatableConstraint, NotEntity, NotEntityBrand, NumberOrDateConstraint, OmitEntityCollections, OmitFunctions, OrderBy, PaginateOptions, PickAsType, PickByValueType, PickFunctions, PopulateArgs, Populated, QueryResult, QueryResultOptionalPopulated, QueryResultPopulated, ReturnSelect$1 as ReturnSelect, Sort, SortObject, SortObjectValue, SortString, StringConstraint, WhereClauseValue, WhereQuery, WhereQueryStatement };
package/dist/index.d.mts CHANGED
@@ -261,7 +261,7 @@ interface ColumnTypeMetadataOptions extends ColumnBaseMetadataOptions {
261
261
  /**
262
262
  * Type of sql column
263
263
  */
264
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
264
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
265
265
  /**
266
266
  * Default database value
267
267
  */
@@ -281,7 +281,7 @@ declare class ColumnTypeMetadata extends ColumnBaseMetadata {
281
281
  /**
282
282
  * Type of the column
283
283
  */
284
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
284
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
285
285
  /**
286
286
  * Default database value
287
287
  */
@@ -813,7 +813,7 @@ interface ColumnTypeOptions extends ColumnBaseOptions {
813
813
  /**
814
814
  * Type of the column
815
815
  */
816
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
816
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
817
817
  /**
818
818
  * Default database value
819
819
  */
@@ -898,4 +898,5 @@ interface InitializeOptions extends IConnection {
898
898
  */
899
899
  declare function initialize({ models, pool, readonlyPool, connections, expose }: InitializeOptions): Record<string, IReadonlyRepository<Entity> | IRepository<Entity>>;
900
900
 
901
- export { type ClassLike, ColumnBaseMetadata, type ColumnBaseMetadataOptions, ColumnCollectionMetadata, type ColumnCollectionMetadataOptions, type ColumnMetadata, ColumnModelMetadata, type ColumnModelMetadataOptions, type ColumnModifierMetadata, ColumnTypeMetadata, type ColumnTypeMetadataOptions, type Comparer, type CountResult, type CreateUpdateOptions, type CreateUpdateParams, type DeleteOptions, type DestroyResult, type DoNotReturnRecords, Entity, type EntityFieldValue, type EntityPrimitiveOrId, type EntityStatic, type ExcludeEntityCollections, type ExcludeFunctions, type FindArgs, type FindOneArgs, type FindOneResult, type FindResult, type GetValueType, type IConnection, type IReadonlyRepository, type IRepository, type IRepositoryOptions, type IncludeFunctions, type InitializeOptions, type IsValueOfType, type LiteralValues, ModelMetadata, type ModelMetadataOptions, type MultipleSortString, type NegatableConstraint, type NotEntity, type NotEntityBrand, type NumberOrDateConstraint, type OmitEntityCollections, type OmitFunctions, type OrderBy, type PaginateOptions, type PickAsType, type PickByValueType, type PickFunctions, type PopulateArgs, type Populated, QueryError, type QueryResult, type QueryResultOptionalPopulated, type QueryResultPopulated, ReadonlyRepository, Repository, type ReturnSelect$1 as ReturnSelect, type Sort, type SortObject, type SortObjectValue, type SortString, type StringConstraint, type WhereClauseValue, type WhereQuery, type WhereQueryStatement, column, createDateColumn, getMetadataStorage, initialize, primaryColumn, table, updateDateColumn, versionColumn };
901
+ export { ColumnBaseMetadata, ColumnCollectionMetadata, ColumnModelMetadata, ColumnTypeMetadata, Entity, ModelMetadata, QueryError, ReadonlyRepository, Repository, column, createDateColumn, getMetadataStorage, initialize, primaryColumn, table, updateDateColumn, versionColumn };
902
+ export type { ClassLike, ColumnBaseMetadataOptions, ColumnCollectionMetadataOptions, ColumnMetadata, ColumnModelMetadataOptions, ColumnModifierMetadata, ColumnTypeMetadataOptions, Comparer, CountResult, CreateUpdateOptions, CreateUpdateParams, DeleteOptions, DestroyResult, DoNotReturnRecords, EntityFieldValue, EntityPrimitiveOrId, EntityStatic, ExcludeEntityCollections, ExcludeFunctions, FindArgs, FindOneArgs, FindOneResult, FindResult, GetValueType, IConnection, IReadonlyRepository, IRepository, IRepositoryOptions, IncludeFunctions, InitializeOptions, IsValueOfType, LiteralValues, ModelMetadataOptions, MultipleSortString, NegatableConstraint, NotEntity, NotEntityBrand, NumberOrDateConstraint, OmitEntityCollections, OmitFunctions, OrderBy, PaginateOptions, PickAsType, PickByValueType, PickFunctions, PopulateArgs, Populated, QueryResult, QueryResultOptionalPopulated, QueryResultPopulated, ReturnSelect$1 as ReturnSelect, Sort, SortObject, SortObjectValue, SortString, StringConstraint, WhereClauseValue, WhereQuery, WhereQueryStatement };
package/dist/index.d.ts CHANGED
@@ -261,7 +261,7 @@ interface ColumnTypeMetadataOptions extends ColumnBaseMetadataOptions {
261
261
  /**
262
262
  * Type of sql column
263
263
  */
264
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
264
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
265
265
  /**
266
266
  * Default database value
267
267
  */
@@ -281,7 +281,7 @@ declare class ColumnTypeMetadata extends ColumnBaseMetadata {
281
281
  /**
282
282
  * Type of the column
283
283
  */
284
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
284
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
285
285
  /**
286
286
  * Default database value
287
287
  */
@@ -813,7 +813,7 @@ interface ColumnTypeOptions extends ColumnBaseOptions {
813
813
  /**
814
814
  * Type of the column
815
815
  */
816
- type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]';
816
+ type: 'array' | 'binary' | 'boolean' | 'boolean[]' | 'date' | 'datetime' | 'float' | 'float[]' | 'integer' | 'integer[]' | 'json' | 'string' | 'string[]' | 'uuid' | 'uuid[]';
817
817
  /**
818
818
  * Default database value
819
819
  */
@@ -898,4 +898,5 @@ interface InitializeOptions extends IConnection {
898
898
  */
899
899
  declare function initialize({ models, pool, readonlyPool, connections, expose }: InitializeOptions): Record<string, IReadonlyRepository<Entity> | IRepository<Entity>>;
900
900
 
901
- export { type ClassLike, ColumnBaseMetadata, type ColumnBaseMetadataOptions, ColumnCollectionMetadata, type ColumnCollectionMetadataOptions, type ColumnMetadata, ColumnModelMetadata, type ColumnModelMetadataOptions, type ColumnModifierMetadata, ColumnTypeMetadata, type ColumnTypeMetadataOptions, type Comparer, type CountResult, type CreateUpdateOptions, type CreateUpdateParams, type DeleteOptions, type DestroyResult, type DoNotReturnRecords, Entity, type EntityFieldValue, type EntityPrimitiveOrId, type EntityStatic, type ExcludeEntityCollections, type ExcludeFunctions, type FindArgs, type FindOneArgs, type FindOneResult, type FindResult, type GetValueType, type IConnection, type IReadonlyRepository, type IRepository, type IRepositoryOptions, type IncludeFunctions, type InitializeOptions, type IsValueOfType, type LiteralValues, ModelMetadata, type ModelMetadataOptions, type MultipleSortString, type NegatableConstraint, type NotEntity, type NotEntityBrand, type NumberOrDateConstraint, type OmitEntityCollections, type OmitFunctions, type OrderBy, type PaginateOptions, type PickAsType, type PickByValueType, type PickFunctions, type PopulateArgs, type Populated, QueryError, type QueryResult, type QueryResultOptionalPopulated, type QueryResultPopulated, ReadonlyRepository, Repository, type ReturnSelect$1 as ReturnSelect, type Sort, type SortObject, type SortObjectValue, type SortString, type StringConstraint, type WhereClauseValue, type WhereQuery, type WhereQueryStatement, column, createDateColumn, getMetadataStorage, initialize, primaryColumn, table, updateDateColumn, versionColumn };
901
+ export { ColumnBaseMetadata, ColumnCollectionMetadata, ColumnModelMetadata, ColumnTypeMetadata, Entity, ModelMetadata, QueryError, ReadonlyRepository, Repository, column, createDateColumn, getMetadataStorage, initialize, primaryColumn, table, updateDateColumn, versionColumn };
902
+ export type { ClassLike, ColumnBaseMetadataOptions, ColumnCollectionMetadataOptions, ColumnMetadata, ColumnModelMetadataOptions, ColumnModifierMetadata, ColumnTypeMetadataOptions, Comparer, CountResult, CreateUpdateOptions, CreateUpdateParams, DeleteOptions, DestroyResult, DoNotReturnRecords, EntityFieldValue, EntityPrimitiveOrId, EntityStatic, ExcludeEntityCollections, ExcludeFunctions, FindArgs, FindOneArgs, FindOneResult, FindResult, GetValueType, IConnection, IReadonlyRepository, IRepository, IRepositoryOptions, IncludeFunctions, InitializeOptions, IsValueOfType, LiteralValues, ModelMetadataOptions, MultipleSortString, NegatableConstraint, NotEntity, NotEntityBrand, NumberOrDateConstraint, OmitEntityCollections, OmitFunctions, OrderBy, PaginateOptions, PickAsType, PickByValueType, PickFunctions, PopulateArgs, Populated, QueryResult, QueryResultOptionalPopulated, QueryResultPopulated, ReturnSelect$1 as ReturnSelect, Sort, SortObject, SortObjectValue, SortString, StringConstraint, WhereClauseValue, WhereQuery, WhereQueryStatement };
package/dist/index.mjs CHANGED
@@ -1076,6 +1076,10 @@ function buildWhere({
1076
1076
  case "boolean[]":
1077
1077
  castType = "::BOOLEAN[]";
1078
1078
  break;
1079
+ case "uuid":
1080
+ case "uuid[]":
1081
+ castType = "::UUID[]";
1082
+ break;
1079
1083
  default:
1080
1084
  castType = "::TEXT[]";
1081
1085
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigal",
3
- "version": "13.0.11",
3
+ "version": "13.1.1",
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",
@@ -33,17 +33,17 @@
33
33
  "node": ">=18"
34
34
  },
35
35
  "dependencies": {
36
- "@types/pg": "8.11.13",
36
+ "@types/pg": "8.11.14",
37
37
  "lodash": "4.17.21",
38
- "pg": "8.15.5",
39
- "postgres-pool": "10.1.3"
38
+ "pg": "8.15.6",
39
+ "postgres-pool": "10.1.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@faker-js/faker": "9.7.0",
43
43
  "@semantic-release/changelog": "6.0.3",
44
44
  "@semantic-release/commit-analyzer": "13.0.1",
45
45
  "@semantic-release/git": "10.0.1",
46
- "@semantic-release/github": "11.0.1",
46
+ "@semantic-release/github": "11.0.2",
47
47
  "@semantic-release/npm": "12.0.1",
48
48
  "@semantic-release/release-notes-generator": "14.0.3",
49
49
  "@types/chai": "5.2.1",
@@ -51,13 +51,13 @@
51
51
  "@types/mocha": "10.0.10",
52
52
  "@types/node": ">=22",
53
53
  "chai": "5.2.0",
54
- "eslint": "9.25.1",
55
- "eslint-config-decent": "2.6.7",
54
+ "eslint": "9.26.0",
55
+ "eslint-config-decent": "2.7.1",
56
56
  "husky": "9.1.7",
57
57
  "lint-staged": "15.5.1",
58
58
  "markdownlint-cli": "0.44.0",
59
- "mocha": "11.1.0",
60
- "npm-run-all2": "7.0.2",
59
+ "mocha": "11.2.2",
60
+ "npm-run-all2": "8.0.1",
61
61
  "pinst": "3.0.0",
62
62
  "prettier": "3.5.3",
63
63
  "semantic-release": "24.2.3",
@@ -1,5 +1,11 @@
1
1
  export default {
2
- branches: ['main', 'beta'],
2
+ branches: [
3
+ 'main',
4
+ {
5
+ name: 'beta',
6
+ prerelease: 'beta',
7
+ },
8
+ ],
3
9
  plugins: [
4
10
  [
5
11
  '@semantic-release/commit-analyzer',