bigal 13.0.2 → 13.0.4

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,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 13.0.4 - 2024-11-29
4
+
5
+ - Update npms
6
+
7
+ ## 13.0.3 - 2024-09-30
8
+
9
+ - Update npms
10
+
3
11
  ## 13.0.2 - 2024-08-26
4
12
 
5
13
  - Update npms
package/dist/index.d.cts CHANGED
@@ -392,12 +392,8 @@ declare function getMetadataStorage<T extends Entity>(): MetadataStorage<T>;
392
392
  type ExcludeUndefined<T> = Exclude<T, undefined>;
393
393
  type LiteralValues<TValue> = (TValue | null)[] | TValue | null;
394
394
  type WhereClauseValue<TValue> = TValue extends NotEntityBrand | undefined ? Exclude<TValue, NotEntityBrand | undefined> : Extract<TValue, Entity> extends undefined ? LiteralValues<ExcludeUndefined<TValue>> : (ExcludeUndefined<Exclude<TValue, Entity>> | null)[] | (Pick<Extract<ExcludeUndefined<TValue>, Entity>, 'id'> | null)[] | ExcludeUndefined<Exclude<TValue, Entity>> | Pick<Extract<ExcludeUndefined<TValue>, Entity>, 'id'> | null;
395
- type StringConstraint<TValue extends string> = {
396
- [P in 'contains' | 'endsWith' | 'like' | 'startsWith']?: LiteralValues<ExcludeUndefined<TValue>>;
397
- };
398
- type NumberOrDateConstraint<TValue extends Date | number> = {
399
- [P in '<' | '<=' | '>' | '>=']?: LiteralValues<ExcludeUndefined<TValue>>;
400
- };
395
+ type StringConstraint<TValue extends string> = Partial<Record<'contains' | 'endsWith' | 'like' | 'startsWith', LiteralValues<ExcludeUndefined<TValue>>>>;
396
+ type NumberOrDateConstraint<TValue extends Date | number> = Partial<Record<'<' | '<=' | '>' | '>=', LiteralValues<ExcludeUndefined<TValue>>>>;
401
397
  type NegatableConstraint<TValue> = TValue | {
402
398
  '!': TValue;
403
399
  };
package/dist/index.d.mts CHANGED
@@ -392,12 +392,8 @@ declare function getMetadataStorage<T extends Entity>(): MetadataStorage<T>;
392
392
  type ExcludeUndefined<T> = Exclude<T, undefined>;
393
393
  type LiteralValues<TValue> = (TValue | null)[] | TValue | null;
394
394
  type WhereClauseValue<TValue> = TValue extends NotEntityBrand | undefined ? Exclude<TValue, NotEntityBrand | undefined> : Extract<TValue, Entity> extends undefined ? LiteralValues<ExcludeUndefined<TValue>> : (ExcludeUndefined<Exclude<TValue, Entity>> | null)[] | (Pick<Extract<ExcludeUndefined<TValue>, Entity>, 'id'> | null)[] | ExcludeUndefined<Exclude<TValue, Entity>> | Pick<Extract<ExcludeUndefined<TValue>, Entity>, 'id'> | null;
395
- type StringConstraint<TValue extends string> = {
396
- [P in 'contains' | 'endsWith' | 'like' | 'startsWith']?: LiteralValues<ExcludeUndefined<TValue>>;
397
- };
398
- type NumberOrDateConstraint<TValue extends Date | number> = {
399
- [P in '<' | '<=' | '>' | '>=']?: LiteralValues<ExcludeUndefined<TValue>>;
400
- };
395
+ type StringConstraint<TValue extends string> = Partial<Record<'contains' | 'endsWith' | 'like' | 'startsWith', LiteralValues<ExcludeUndefined<TValue>>>>;
396
+ type NumberOrDateConstraint<TValue extends Date | number> = Partial<Record<'<' | '<=' | '>' | '>=', LiteralValues<ExcludeUndefined<TValue>>>>;
401
397
  type NegatableConstraint<TValue> = TValue | {
402
398
  '!': TValue;
403
399
  };
package/dist/index.d.ts CHANGED
@@ -392,12 +392,8 @@ declare function getMetadataStorage<T extends Entity>(): MetadataStorage<T>;
392
392
  type ExcludeUndefined<T> = Exclude<T, undefined>;
393
393
  type LiteralValues<TValue> = (TValue | null)[] | TValue | null;
394
394
  type WhereClauseValue<TValue> = TValue extends NotEntityBrand | undefined ? Exclude<TValue, NotEntityBrand | undefined> : Extract<TValue, Entity> extends undefined ? LiteralValues<ExcludeUndefined<TValue>> : (ExcludeUndefined<Exclude<TValue, Entity>> | null)[] | (Pick<Extract<ExcludeUndefined<TValue>, Entity>, 'id'> | null)[] | ExcludeUndefined<Exclude<TValue, Entity>> | Pick<Extract<ExcludeUndefined<TValue>, Entity>, 'id'> | null;
395
- type StringConstraint<TValue extends string> = {
396
- [P in 'contains' | 'endsWith' | 'like' | 'startsWith']?: LiteralValues<ExcludeUndefined<TValue>>;
397
- };
398
- type NumberOrDateConstraint<TValue extends Date | number> = {
399
- [P in '<' | '<=' | '>' | '>=']?: LiteralValues<ExcludeUndefined<TValue>>;
400
- };
395
+ type StringConstraint<TValue extends string> = Partial<Record<'contains' | 'endsWith' | 'like' | 'startsWith', LiteralValues<ExcludeUndefined<TValue>>>>;
396
+ type NumberOrDateConstraint<TValue extends Date | number> = Partial<Record<'<' | '<=' | '>' | '>=', LiteralValues<ExcludeUndefined<TValue>>>>;
401
397
  type NegatableConstraint<TValue> = TValue | {
402
398
  '!': TValue;
403
399
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigal",
3
- "version": "13.0.2",
3
+ "version": "13.0.4",
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,31 +33,31 @@
33
33
  "node": ">=18"
34
34
  },
35
35
  "dependencies": {
36
- "@types/pg": "^8.11.6",
36
+ "@types/pg": "^8.11.10",
37
37
  "lodash": "^4.17.21",
38
- "pg": "^8.12.0",
39
- "postgres-pool": "^9.0.2"
38
+ "pg": "^8.13.1",
39
+ "postgres-pool": "^9.0.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@faker-js/faker": "^8.4.1",
43
- "@types/chai": "^4.3.18",
44
- "@types/lodash": "^4.17.7",
45
- "@types/mocha": "10.0.7",
42
+ "@faker-js/faker": "^9.2.0",
43
+ "@types/chai": "^5.0.1",
44
+ "@types/lodash": "^4.17.13",
45
+ "@types/mocha": "10.0.10",
46
46
  "@types/node": ">=22",
47
- "chai": "^5.1.1",
48
- "eslint": "^9.9.1",
49
- "eslint-config-decent": "^2.2.0",
50
- "husky": "^9.1.5",
51
- "lint-staged": "^15.2.9",
52
- "markdownlint-cli": "^0.41.0",
53
- "mocha": "^10.7.3",
47
+ "chai": "^5.1.2",
48
+ "eslint": "^9.16.0",
49
+ "eslint-config-decent": "^2.2.3",
50
+ "husky": "^9.1.7",
51
+ "lint-staged": "^15.2.10",
52
+ "markdownlint-cli": "^0.43.0",
53
+ "mocha": "^10.8.2",
54
54
  "npm-run-all": "^4.1.5",
55
55
  "pinst": "^3.0.0",
56
- "prettier": "^3.3.3",
56
+ "prettier": "^3.4.1",
57
57
  "strict-event-emitter-types": "^2.0.0",
58
58
  "ts-mockito": "^2.6.1",
59
59
  "ts-node": "^10.9.2",
60
- "typescript": "^5.5.4",
60
+ "typescript": "^5.7.2",
61
61
  "unbuild": "^2.0.0"
62
62
  },
63
63
  "scripts": {