Comparing version 1.0.0 to 2.0.0
# Changelog | ||
## 📦 [2.0.0](https://www.npmjs.com/package/v8r/v/2.0.0) - 2023-05-02 | ||
* Drop compatibility with node 14 | ||
* Upgrade glob and minimatch to latest versions | ||
* Tested on node 20 | ||
## 📦 [1.0.0](https://www.npmjs.com/package/v8r/v/1.0.0) - 2023-03-12 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "v8r", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A command-line JSON and YAML validator that's on your wavelength", | ||
@@ -38,3 +38,3 @@ "scripts": { | ||
"flat-cache": "^3.0.4", | ||
"glob": "^8.0.1", | ||
"glob": "^10.1.0", | ||
"got": "^12.0.1", | ||
@@ -44,3 +44,3 @@ "is-url": "^1.2.4", | ||
"json5": "^2.2.0", | ||
"minimatch": "^6.1.6", | ||
"minimatch": "^9.0.0", | ||
"yargs": "^17.0.1" | ||
@@ -62,3 +62,3 @@ }, | ||
"engines": { | ||
"node": ">=14.13.1" | ||
"node": ">=16" | ||
}, | ||
@@ -65,0 +65,0 @@ "type": "module", |
@@ -1,2 +0,2 @@ | ||
import minimatch from "minimatch"; | ||
import { minimatch } from "minimatch"; | ||
import path from "path"; | ||
@@ -3,0 +3,0 @@ import { validate } from "./ajv.js"; |
@@ -1,15 +0,7 @@ | ||
import glob from "glob"; | ||
import { glob } from "glob"; | ||
import logger from "./logger.js"; | ||
const globPromise = function (pattern, options) { | ||
return new Promise((resolve, reject) => { | ||
glob(pattern, options, (err, files) => | ||
err === null ? resolve(files) : reject(err) | ||
); | ||
}); | ||
}; | ||
async function getFiles(pattern) { | ||
try { | ||
return await globPromise(pattern, { dot: true }); | ||
return await glob(pattern, { dot: true, dotRelative: true }); | ||
} catch (e) { | ||
@@ -16,0 +8,0 @@ logger.error(e.message); |
41611
838
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
- Removedglob@8.1.0(transitive)
- Removedminimatch@5.1.66.2.0(transitive)
Updatedglob@^10.1.0
Updatedminimatch@^9.0.0