Comparing version 2.1.0 to 3.0.0
# Changelog | ||
## 📦 [3.0.0](https://www.npmjs.com/package/v8r/v/3.0.0) - 2024-01-25 | ||
* Drop compatibility with node 16 | ||
* Add ability to validate Toml documents | ||
## 📦 [2.1.0](https://www.npmjs.com/package/v8r/v/2.1.0) - 2023-10-23 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "v8r", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "A command-line JSON and YAML validator that's on your wavelength", | ||
@@ -35,5 +35,5 @@ "scripts": { | ||
"chalk": "^5.0.0", | ||
"cosmiconfig": "^8.0.0", | ||
"cosmiconfig": "^9.0.0", | ||
"decamelize": "^6.0.0", | ||
"flat-cache": "^3.0.4", | ||
"flat-cache": "^4.0.0", | ||
"glob": "^10.1.0", | ||
@@ -45,8 +45,7 @@ "got": "^13.0.0", | ||
"minimatch": "^9.0.0", | ||
"smol-toml": "^1.0.1", | ||
"yargs": "^17.0.1" | ||
}, | ||
"devDependencies": { | ||
"c8": "^8.0.0", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"c8": "^9.1.0", | ||
"eslint": "^8.0.1", | ||
@@ -62,3 +61,3 @@ "eslint-config-prettier": "^9.0.0", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
}, | ||
@@ -65,0 +64,0 @@ "type": "module", |
@@ -5,5 +5,3 @@ #!/usr/bin/env node | ||
(async () => { | ||
const exitCode = await cli(); | ||
process.exit(exitCode); | ||
})(); | ||
const exitCode = await cli(); | ||
process.exit(exitCode); |
import JSON5 from "json5"; | ||
import yaml from "js-yaml"; | ||
import { parse } from "smol-toml"; | ||
@@ -16,2 +17,4 @@ function parseDocument(contents, format) { | ||
return yaml.load(contents); | ||
case ".toml": | ||
return parse(contents); | ||
default: | ||
@@ -18,0 +21,0 @@ throw new Error(`Unsupported format ${format}`); |
@@ -1,8 +0,4 @@ | ||
import chai from "chai"; | ||
import chaiAsPromised from "chai-as-promised"; | ||
import flatCache from "flat-cache"; | ||
import logger from "./logger.js"; | ||
chai.use(chaiAsPromised); | ||
const origWriteOut = logger.writeOut; | ||
@@ -51,3 +47,2 @@ const origWriteErr = logger.writeErr; | ||
export { | ||
chai, | ||
testCacheName, | ||
@@ -54,0 +49,0 @@ setUp, |
42346
9
15
849
+ Addedsmol-toml@^1.0.1
+ Addedcosmiconfig@9.0.0(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addedflat-cache@4.0.1(transitive)
+ Addedsmol-toml@1.3.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcosmiconfig@8.3.6(transitive)
- Removedflat-cache@3.2.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedcosmiconfig@^9.0.0
Updatedflat-cache@^4.0.0