@knorm/knorm
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,11 @@ | ||
<a name="1.6.1"></a> | ||
## [1.6.1](https://github.com/knorm/knorm/compare/v1.6.0...v1.6.1) (2018-08-22) | ||
### Bug Fixes | ||
* **NoRowsError:** add a reference to the query instance ([2a627d9](https://github.com/knorm/knorm/commit/2a627d9)) | ||
<a name="1.6.0"></a> | ||
@@ -2,0 +12,0 @@ # [1.6.0](https://github.com/knorm/knorm/compare/v1.5.0...v1.6.0) (2018-08-21) |
@@ -177,2 +177,6 @@ # Fields | ||
**NOTE:** since these methods are intended to work with a single row, they will | ||
automatically throw a `NoRowsFetchedError`, `NoRowsUpdatedError` or | ||
`NoRowsDeletedError` error if the row is not found in the database. | ||
## Value casting | ||
@@ -179,0 +183,0 @@ |
@@ -169,4 +169,4 @@ # Models | ||
In addition, you can configure various "ByField" methods with the `methods` | ||
[field config option](guides/fields.md#field-config): | ||
In addition, you can configure [generated methods](guides/fields.md#generated-methods) | ||
with the `methods` [field config option](guides/fields.md#field-config): | ||
@@ -173,0 +173,0 @@ ```js |
@@ -7,2 +7,6 @@ const KnormError = require('./KnormError'); | ||
super({ query }); | ||
if (query) { | ||
this.query = query; | ||
} | ||
} | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "@knorm/knorm", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "A purely ES6 class-based ORM for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
443002
10018