v8r 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +10 -2
- package/package.json +8 -7
- package/src/index.js +3 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -154,6 +154,14 @@ The config file format is specified more formally in a JSON Schema:
|
|
|
154
154
|
- [machine-readable JSON](config-schema.json)
|
|
155
155
|
- [human-readable HTML](https://json-schema-viewer.vercel.app/view?url=https%3A%2F%2Fraw.githubusercontent.com%2Fchris48s%2Fv8r%2Fmain%2Fconfig-schema.json&show_breadcrumbs=on&template_name=flat)
|
|
156
156
|
|
|
157
|
+
## Configuring a Proxy
|
|
158
|
+
|
|
159
|
+
It is possible to configure a proxy via [global-agent](https://www.npmjs.com/package/global-agent) using the `GLOBAL_AGENT_HTTP_PROXY` environment variable:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
export GLOBAL_AGENT_HTTP_PROXY=http://myproxy:8888
|
|
163
|
+
```
|
|
164
|
+
|
|
157
165
|
## Exit codes
|
|
158
166
|
|
|
159
167
|
* v8r always exits with code `0` when:
|
|
@@ -191,7 +199,7 @@ v8r follows [semantic versioning](https://semver.org/). For this project, the "A
|
|
|
191
199
|
A "breaking change" also includes:
|
|
192
200
|
|
|
193
201
|
- Dropping compatibility with a major Node JS version
|
|
194
|
-
- Dropping
|
|
202
|
+
- Dropping compatibility with a JSON Schema draft
|
|
195
203
|
|
|
196
204
|
## FAQ
|
|
197
205
|
|
|
@@ -206,7 +214,7 @@ A "breaking change" also includes:
|
|
|
206
214
|
* Schema store issue tracker: https://github.com/SchemaStore/schemastore/issues
|
|
207
215
|
* Ajv issue tracker: https://github.com/ajv-validator/ajv/issues
|
|
208
216
|
|
|
209
|
-
### ❓ What JSON schema versions are
|
|
217
|
+
### ❓ What JSON schema versions are compatible?
|
|
210
218
|
|
|
211
219
|
💡 `v8r` works with JSON schema drafts:
|
|
212
220
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v8r",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "A command-line JSON and YAML validator that's on your wavelength",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "V8R_CACHE_NAME=v8r-test c8 --reporter=text mocha \"src/**/*.spec.js\"",
|
|
7
|
-
"lint": "eslint \"
|
|
7
|
+
"lint": "eslint \"**/*.{js,cjs}\"",
|
|
8
8
|
"coverage": "c8 report --reporter=cobertura",
|
|
9
|
-
"prettier": "prettier --write \"**/*.js\"",
|
|
10
|
-
"prettier:check": "prettier --check \"**/*.js\"",
|
|
9
|
+
"prettier": "prettier --write \"**/*.{js,cjs}\"",
|
|
10
|
+
"prettier:check": "prettier --check \"**/*.{js,cjs}\"",
|
|
11
11
|
"v8r": "src/index.js"
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"ajv": "^8.8.2",
|
|
32
32
|
"ajv-draft-04": "^1.0.0",
|
|
33
|
-
"ajv-formats": "^
|
|
33
|
+
"ajv-formats": "^3.0.1",
|
|
34
34
|
"chalk": "^5.0.0",
|
|
35
35
|
"cosmiconfig": "^9.0.0",
|
|
36
36
|
"decamelize": "^6.0.0",
|
|
37
|
-
"flat-cache": "^
|
|
37
|
+
"flat-cache": "^5.0.0",
|
|
38
38
|
"glob": "^10.1.0",
|
|
39
|
+
"global-agent": "^3.0.0",
|
|
39
40
|
"got": "^13.0.0",
|
|
40
41
|
"is-url": "^1.2.4",
|
|
41
42
|
"js-yaml": "^4.0.0",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"c8": "^9.1.0",
|
|
49
|
-
"eslint": "^
|
|
50
|
+
"eslint": "^9.2.0",
|
|
50
51
|
"eslint-config-prettier": "^9.0.0",
|
|
51
52
|
"eslint-plugin-mocha": "^10.0.3",
|
|
52
53
|
"eslint-plugin-prettier": "^5.0.0",
|