Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Aug 19, 2024
1 parent 781aa3d commit e3f23b4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
39 changes: 37 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# Changelog

## 📦 [4.0.0](https://www.npmjs.com/package/v8r/v/4.0.0) - 2024-08-19

* **Breaking:** Change to the JSON output format. The `results` key is now an array instead of an object.
In v8r <4, `results` was an object mapping filename to result object. For example:
```json
{
"results": {
"./package.json": {
"fileLocation": "./package.json",
"schemaLocation": "https://json.schemastore.org/package.json",
"valid": true,
"errors": [],
"code": 0
}
}
}
```

In v8r >=4 `results` is now an array of result objects. For example:
```json
{
"results": [
{
"fileLocation": "./package.json",
"schemaLocation": "https://json.schemastore.org/package.json",
"valid": true,
"errors": [],
"code": 0
}
]
}
```
* Plugin system: It is now possible to extend the functionality of v8r by using or writing plugins. See https://chris48s.github.io/v8r/category/plugins/ for further information
* Documentation improvements

## 📦 [3.1.1](https://www.npmjs.com/package/v8r/v/3.1.1) - 2024-08-03

* Allow 'toml' as an allowed value for parser in custom catalog
Expand All @@ -10,7 +45,7 @@

## 📦 [3.0.0](https://www.npmjs.com/package/v8r/v/3.0.0) - 2024-01-25

* Drop compatibility with node 16
* **Breaking:** 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
Expand All @@ -19,7 +54,7 @@

## 📦 [2.0.0](https://www.npmjs.com/package/v8r/v/2.0.0) - 2023-05-02

* Drop compatibility with node 14
* **Breaking:** Drop compatibility with node 14
* Upgrade glob and minimatch to latest versions
* Tested on node 20

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v8r",
"version": "3.1.1",
"version": "4.0.0",
"description": "A command-line JSON, YAML and TOML validator that's on your wavelength",
"scripts": {
"test": "V8R_CACHE_NAME=v8r-test c8 --reporter=text mocha \"src/**/*.spec.js\"",
Expand Down

0 comments on commit e3f23b4

Please sign in to comment.