Skip to content

Commit

Permalink
Release v8.0.0
Browse files Browse the repository at this point in the history
* Constrain types for create(), update(), and selects
  * Exclude instance functions and entity collections
  * Only expect `primitive | Pick<T, ‘id’>` when creating, updating, or in where queries, rather than `primitive | T`
* Shape query result types
  * Remove Entity and Entity[] types from property values for find(), findOne(), update(), and destroy() responses
  * Add Entity and Entity[] types when populate is called
* Update npms

**Breaking Change:** The change to create and update values expects a property called `id` on subclasses of `Entity`.
  • Loading branch information
jgeurts committed Mar 24, 2021
1 parent 880268c commit 7e645fa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### 8.0.0
* Constrain types for create(), update(), and selects
* Exclude instance functions and entity collections
* Only expect `primitive | Pick<T, ‘id’>` when creating, updating, or in where queries, rather than `primitive | T`
* Shape query result types
* Remove Entity and Entity[] types from property values for find(), findOne(), update(), and destroy() responses
* Add Entity and Entity[] types when populate is called
* Update npms

**Breaking Change:** The change to create and update values expects a property called `id` on subclasses of `Entity`.

### 7.1.2
* Make sort argument optional for chained calls

Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bigal",
"version": "7.1.2",
"version": "8.0.0",
"description": "A fast and lightweight orm for postgres and node.js, written in typescript.",
"main": "index.js",
"types": "index.d.ts",
Expand All @@ -20,39 +20,39 @@
},
"dependencies": {
"@types/lodash": "^4.14.168",
"@types/node": "^14.14.31",
"@types/pg": "^7.14.10",
"@types/node": "^14.14.35",
"@types/pg": "^7.14.11",
"lodash": "^4.17.21",
"pg": "8.5.1",
"postgres-pool": "^3.2.7"
"postgres-pool": "^4.0.0"
},
"devDependencies": {
"@types/chai": "^4.2.15",
"@types/faker": "^5.1.7",
"@types/mocha": "^8.2.1",
"@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.2",
"chai": "^4.3.0",
"eslint": "^7.20.0",
"@types/mocha": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"chai": "^4.3.4",
"eslint": "^7.22.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^32.2.0",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-jsdoc": "^32.3.0",
"eslint-plugin-mocha": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-security": "^1.4.0",
"faker": "^5.4.0",
"husky": "^5.1.1",
"husky": "^5.1.3",
"lint-staged": "^10.5.4",
"mocha": "^8.3.0",
"mocha": "^8.3.2",
"pinst": "^2.1.6",
"prettier": "^2.2.1",
"strict-event-emitter-types": "^2.0.0",
"ts-mockito": "^2.6.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.2"
"typescript": "^4.2.3"
},
"scripts": {
"build": "tsc",
Expand Down

0 comments on commit 7e645fa

Please sign in to comment.