bedrock-validation
Advanced tools
Comparing version
# bedrock-validation ChangeLog | ||
## 5.6.3 - 2022-03-24 | ||
### Fixed | ||
- Fix slow loading of schemas in same dir (load in parallel). | ||
## 5.6.2 - 2022-03-24 | ||
@@ -4,0 +9,0 @@ |
@@ -28,3 +28,3 @@ /*! | ||
// load all schemas | ||
// load all schemas in directory order | ||
const schemaDirs = bedrock.config.validation.schema.paths; | ||
@@ -40,3 +40,4 @@ const jsExt = '.js'; | ||
}); | ||
for(const file of files) { | ||
// load files in parallel | ||
await Promise.all(files.map(async file => { | ||
const name = PATH.basename(file, PATH.extname(file)); | ||
@@ -65,3 +66,3 @@ const module = await import(PATH.join(schemaDir, file)); | ||
} | ||
} | ||
})); | ||
} | ||
@@ -68,0 +69,0 @@ } |
{ | ||
"name": "bedrock-validation", | ||
"version": "5.6.2", | ||
"version": "5.6.3", | ||
"description": "Bedrock validation", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
91888
0.18%2169
0.05%