From c8d496792a9425c2c09224e858bbf3794d45d17a Mon Sep 17 00:00:00 2001 From: Kevin Partington Date: Wed, 17 Jan 2018 22:06:20 -0600 Subject: [PATCH 1/3] Upgrade: ajv@^6.0.1, still using json schema draft 04 --- lib/util/ajv.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/util/ajv.js b/lib/util/ajv.js index f9e8b985356..e8b496c2844 100644 --- a/lib/util/ajv.js +++ b/lib/util/ajv.js @@ -19,7 +19,8 @@ const ajv = new Ajv({ meta: false, validateSchema: false, missingRefs: "ignore", - verbose: true + verbose: true, + schemaId: "id" }); ajv.addMetaSchema(metaSchema); diff --git a/package.json b/package.json index 5b88af0c1a8..2982fc55d38 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "homepage": "https://eslint.org", "bugs": "https://github.com/eslint/eslint/issues/", "dependencies": { - "ajv": "^5.3.0", + "ajv": "^6.0.1", "babel-code-frame": "^6.26.0", "chalk": "^2.1.0", "concat-stream": "^1.6.2", From 9d30bfe65d0e1fa66e3e5bca9f3d3747f4182714 Mon Sep 17 00:00:00 2001 From: Kevin Partington Date: Sat, 10 Mar 2018 09:50:33 -0600 Subject: [PATCH 2/3] Upgrade: table@^4.0.3 (resolves peer dep warning) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2982fc55d38..643e047a10e 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "semver": "^5.5.0", "strip-ansi": "^4.0.0", "strip-json-comments": "^2.0.1", - "table": "4.0.2", + "table": "^4.0.3", "text-table": "^0.2.0" }, "devDependencies": { From 46133c9c36109ebf4976c1cc6741762639326b9a Mon Sep 17 00:00:00 2001 From: Kevin Partington Date: Sat, 31 Mar 2018 09:36:25 -0500 Subject: [PATCH 3/3] Chore: Using schemaId: "auto" instead of "id" This retains compatibility with json schema draft-04 as well as draft-06 and draft-07. Previous setting unintentionally restricted compatibility to draft-04. --- lib/util/ajv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/ajv.js b/lib/util/ajv.js index e8b496c2844..285176da87d 100644 --- a/lib/util/ajv.js +++ b/lib/util/ajv.js @@ -20,7 +20,7 @@ const ajv = new Ajv({ validateSchema: false, missingRefs: "ignore", verbose: true, - schemaId: "id" + schemaId: "auto" }); ajv.addMetaSchema(metaSchema);