Comparing version 6.1.2 to 6.1.3
@@ -5,2 +5,10 @@ # Changelog | ||
### [6.1.3](https://gitlab.com/dmfay/massive-js/compare/v6.1.2...v6.1.3) (2019-12-01) | ||
### Bug Fixes | ||
* **deps:** update dependency pg-promise to v10.3.1 ([e86f923](https://gitlab.com/dmfay/massive-js/commit/e86f923cc74631b67897d1c5f9456033c758095e)) | ||
* give db clones a clean entityCache ([0f15e61](https://gitlab.com/dmfay/massive-js/commit/0f15e6191117dd55a9141bdf94024f2e9bb90334)) | ||
### [6.1.2](https://gitlab.com/dmfay/massive-js/compare/v6.1.1...v6.1.2) (2019-11-23) | ||
@@ -7,0 +15,0 @@ |
@@ -539,3 +539,3 @@ 'use strict'; | ||
const executables = []; | ||
const cloneDb = _.cloneDeepWith(this, prop => { | ||
const cloneDb = _.cloneDeepWith(this, (prop, name) => { | ||
if (typeof prop === 'function' && Object.prototype.hasOwnProperty.call(prop, 'executable')) { | ||
@@ -552,6 +552,10 @@ executables.push(_.cloneWith(prop.executable, (val, key) => { | ||
} | ||
switch (name) { | ||
case 'instance': return conn; | ||
case 'entityCache': return {}; | ||
default: return undefined; | ||
} | ||
}); | ||
cloneDb.instance = conn; | ||
executables.forEach(e => { | ||
@@ -558,0 +562,0 @@ cloneDb.detach(e.path); |
{ | ||
"name": "massive", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "A small query tool for Postgres that embraces json and makes life simpler", | ||
@@ -56,3 +56,3 @@ "homepage": "https://massivejs.org", | ||
"murmurhash": "0.0.2", | ||
"pg-promise": "10.2.1", | ||
"pg-promise": "10.3.1", | ||
"pg-query-stream": "2.0.1" | ||
@@ -63,4 +63,4 @@ }, | ||
"chai-as-promised": "7.1.1", | ||
"coveralls": "3.0.8", | ||
"eslint": "6.7.0", | ||
"coveralls": "3.0.9", | ||
"eslint": "6.7.2", | ||
"mocha": "6.2.2", | ||
@@ -67,0 +67,0 @@ "nyc": "14.1.1", |
176368
2979
+ Addedpg@7.14.0(transitive)
+ Addedpg-promise@10.3.1(transitive)
- Removedpg@7.12.1(transitive)
- Removedpg-promise@10.2.1(transitive)
Updatedpg-promise@10.3.1