Skip to content

Commit

Permalink
Release v7.1.2
Browse files Browse the repository at this point in the history
* Make sort argument optional for chained calls
  • Loading branch information
jgeurts committed Feb 25, 2021
1 parent 6035aed commit a682aee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 7.1.2
* Make sort argument optional for chained calls

### 7.1.1
* Allow sort() argument to be undefined
* Fix object notation for sort() to have properties be optional
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bigal",
"version": "7.1.1",
"version": "7.1.2",
"description": "A fast and lightweight orm for postgres and node.js, written in typescript.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/query/FindOneResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import type { WhereQuery } from './WhereQuery';
export interface FindOneResult<T extends Entity> extends ChainablePromiseLike<T | null> {
where(args: WhereQuery<T>): FindOneResult<T>;
populate<TProperty extends string & keyof PickByValueType<T, Entity>>(propertyName: TProperty, options?: PopulateArgs<GetValueType<PickByValueType<T, Entity>[TProperty], Entity>>): FindOneResult<T>;
sort(value: Sort<T>): FindOneResult<T>;
sort(value?: Sort<T>): FindOneResult<T>;
}
2 changes: 1 addition & 1 deletion src/query/FindResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { WhereQuery } from './WhereQuery';

export interface FindResult<TEntity extends Entity> extends ChainablePromiseLike<TEntity[]> {
where(args: WhereQuery<TEntity>): FindResult<TEntity>;
sort(value: Sort<TEntity>): FindResult<TEntity>;
sort(value?: Sort<TEntity>): FindResult<TEntity>;
limit(value: number): FindResult<TEntity>;
skip(value: number): FindResult<TEntity>;
paginate(options: PaginateOptions): FindResult<TEntity>;
Expand Down

0 comments on commit a682aee

Please sign in to comment.