Comparing version 2.5.0 to 2.6.0
# Changelog | ||
## 2.6.0 - 2018-04-24 | ||
- fix: Use shallow-copy instead of deep-copy when working with context to prevent too large memory usage and slowing down request resonses [See #452] | ||
## 2.5.0 - 2018-04-09 | ||
@@ -4,0 +8,0 @@ |
@@ -336,4 +336,3 @@ 'use strict'; | ||
} else { | ||
// Do not use reference, as we'll modify this object later on | ||
kwargs = kwargs ? JSON.parse(stringify(kwargs)) : {}; | ||
kwargs = utils.isPlainObject(kwargs) ? extend({}, kwargs) : {}; | ||
} | ||
@@ -368,8 +367,3 @@ | ||
} else { | ||
var req = kwargs && kwargs.req; | ||
// Do not use reference, as we'll modify this object later on | ||
kwargs = kwargs ? JSON.parse(stringify(kwargs)) : {}; | ||
// Preserve `req` so we can use some framework's middleware methods | ||
// `req` is the only thing that we pass through in `errorHandler`, so we need just that | ||
if (req) kwargs.req = req; | ||
kwargs = utils.isPlainObject(kwargs) ? extend({}, kwargs) : {}; | ||
} | ||
@@ -376,0 +370,0 @@ |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"repository": "git://github.com/getsentry/raven-node.git", | ||
@@ -15,0 +15,0 @@ "license": "BSD-2-Clause", |
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
68631
1405