Comparing version 5.2.3-cache-leak-cd186dab45f2c05cbc05c0af14646db509bb21e7 to 5.2.3
@@ -7,5 +7,5 @@ # Change Log | ||
## 5.2.3 - 2019-04-10 | ||
## 5.2.3 - 2019-04-15 | ||
* Filter/match: Clear AJV instance cache on completion [Juan Cruz Viotti] | ||
* Set addUsedSchema to false in all AJV instances [Juan Cruz Viotti] | ||
@@ -12,0 +12,0 @@ ## 5.2.2 - 2019-03-20 |
@@ -510,3 +510,7 @@ /* | ||
allErrors: true, | ||
unknownFormats: 'ignore' | ||
unknownFormats: 'ignore', | ||
// Don't keep references to all used | ||
// schemas in order to not leak memory. | ||
addUsedSchema: false | ||
}) | ||
@@ -538,3 +542,3 @@ | ||
const result = { | ||
return { | ||
valid, | ||
@@ -544,8 +548,2 @@ errors: valid ? [] : ajv.errorsText().split(', '), | ||
} | ||
// Clear the cache so we don't leak it | ||
// eslint-disable-next-line no-underscore-dangle | ||
ajv._cache.clear() | ||
return result | ||
} | ||
@@ -867,3 +865,7 @@ })() | ||
removeAdditional: true, | ||
unknownFormats: 'ignore' | ||
unknownFormats: 'ignore', | ||
// Don't keep references to all used | ||
// schemas in order to not leak memory. | ||
addUsedSchema: false | ||
}) | ||
@@ -874,3 +876,7 @@ | ||
allErrors: true, | ||
unknownFormats: 'ignore' | ||
unknownFormats: 'ignore', | ||
// Don't keep references to all used | ||
// schemas in order to not leak memory. | ||
addUsedSchema: false | ||
}) | ||
@@ -961,11 +967,3 @@ | ||
const result = parse(schema) | ||
// Clear the cache so we don't leak it | ||
// eslint-disable-next-line no-underscore-dangle | ||
filterAjv._cache.clear() | ||
// eslint-disable-next-line no-underscore-dangle | ||
matchAjv._cache.clear() | ||
return result | ||
return parse(schema) | ||
} | ||
@@ -972,0 +970,0 @@ })() |
{ | ||
"name": "skhema", | ||
"version": "5.2.3-cache-leak-cd186dab45f2c05cbc05c0af14646db509bb21e7", | ||
"version": "5.2.3", | ||
"description": "JSON Schema utility collection", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
137014
4817