Comparing version 1.13.4 to 1.13.5
@@ -0,1 +1,10 @@ | ||
1.13.5 / 2021-10-26 | ||
=================== | ||
## What's Changed | ||
* docs: enhance aggregation query types & fix raw query result type by @cyjake in https://github.com/cyjake/leoric/pull/208 | ||
**Full Changelog**: https://github.com/cyjake/leoric/compare/v1.13.4...v1.13.5 | ||
1.13.4 / 2021-10-25 | ||
@@ -2,0 +11,0 @@ =================== |
{ | ||
"name": "leoric", | ||
"version": "1.13.4", | ||
"version": "1.13.5", | ||
"description": "JavaScript Object-relational mapping alchemy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ interface ExprIdentifier { | ||
type WithOptions = { | ||
[qualifier: string]: { select: string[], throughRelation: string } | ||
[qualifier: string]: { select: string | string[], throughRelation?: string } | ||
} | ||
@@ -95,7 +95,7 @@ | ||
count(name?: string): Spell<T, ResultSet>; | ||
average(name?: string): Spell<T, ResultSet>; | ||
minimum(name?: string): Spell<T, ResultSet>; | ||
maximum(name?: string): Spell<T, ResultSet>; | ||
sum(name?: string): Spell<T, ResultSet>; | ||
count(name?: string): Spell<T, Extract<U, ResultSet | number>>; | ||
average(name?: string): Spell<T, Extract<U, ResultSet | number>>; | ||
minimum(name?: string): Spell<T, Extract<U, ResultSet | number>>; | ||
maximum(name?: string): Spell<T, Extract<U, ResultSet | number>>; | ||
sum(name?: string): Spell<T, Extract<U, ResultSet | number>>; | ||
@@ -166,4 +166,4 @@ batch(size?: number): AsyncIterable<T>; | ||
affectedRows?: number; | ||
rows?: Record<string, Literal>, | ||
fields?: { table: string, name: string }, | ||
rows?: Array<Record<string, Literal>>, | ||
fields?: Array<{ table: string, name: string }>, | ||
} | ||
@@ -429,7 +429,7 @@ | ||
static count<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet>; | ||
static average<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet>; | ||
static minimum<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet>; | ||
static maximum<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet>; | ||
static sum<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet>; | ||
static count<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet | number>; | ||
static average<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet | number>; | ||
static minimum<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet | number>; | ||
static maximum<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet | number>; | ||
static sum<T extends typeof Bone>(this: T, name?: string): Spell<T, ResultSet | number>; | ||
@@ -436,0 +436,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
269942