From cc97b003f59db096171263a9ca6cf58936b3bc07 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2020 08:07:05 +0000 Subject: [PATCH 1/6] chore(package): update nyc to version 15.0.0 (#1139) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f15e2dd0f..109e476635 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "karma-mocha": "^1.1.1", "karma-sauce-launcher": "^2.0.0", "mocha": "^6.0.0", - "nyc": "^14.0.0", + "nyc": "^15.0.0", "pre-commit": "^1.1.1", "require-globify": "^1.3.0", "typescript": "^2.8.3", From f38f2e4136c790b409b12528dd6acd51283654ab Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sat, 18 Jan 2020 08:53:51 +0000 Subject: [PATCH 2/6] test: remove failing typescript test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 109e476635..43479a6e8b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "build": "del-cli lib/dotjs/*.js \"!lib/dotjs/index.js\" && node scripts/compile-dots.js", "test-karma": "karma start", "test-browser": "del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma", - "test-all": "npm run test-ts && npm run test-cov && if-node-version 10 npm run test-browser", + "test-all": "npm run test-cov && if-node-version 10 npm run test-browser", "test": "npm run lint && npm run build && npm run test-all", "prepublish": "npm run build && npm run bundle", "watch": "watch \"npm run build\" ./lib/dot" From 03198c2b6d52ec5eb7ffbf7623f05db5372689a1 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sat, 18 Jan 2020 09:00:24 +0000 Subject: [PATCH 3/6] 6.11.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 43479a6e8b..da9218a83f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ajv", - "version": "6.10.2", + "version": "6.11.0", "description": "Another JSON Schema Validator", "main": "lib/ajv.js", "typings": "lib/ajv.d.ts", From 23ebb55c1ae8ef69bc464fd6a8e142e9b6ad813c Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Tue, 11 Feb 2020 09:58:45 +0200 Subject: [PATCH 4/6] fix(types) added undefined to getSchema() --- lib/ajv.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ajv.d.ts b/lib/ajv.d.ts index ba75f8d2da..c946096adc 100644 --- a/lib/ajv.d.ts +++ b/lib/ajv.d.ts @@ -80,9 +80,9 @@ declare namespace ajv { /** * Get compiled schema from the instance by `key` or `ref`. * @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id). - * @return {Function} schema validating function (with property `schema`). + * @return {Function} schema validating function (with property `schema`). Returns undefined if keyRef can't be resolved to an existing schema. */ - getSchema(keyRef: string): ValidateFunction; + getSchema(keyRef: string): ValidateFunction | undefined; /** * Remove cached schema(s). * If no parameter is passed all schemas but meta-schemas are removed. From 10f6cba4c561fdea1b762156b4823d0826db818e Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2020 08:27:54 +0000 Subject: [PATCH 5/6] chore(package): update mocha to version 7.0.1 (#1156) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index da9218a83f..5cfec97d2b 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-mocha": "^1.1.1", "karma-sauce-launcher": "^2.0.0", - "mocha": "^6.0.0", + "mocha": "^7.0.1", "nyc": "^15.0.0", "pre-commit": "^1.1.1", "require-globify": "^1.3.0", From d601e4856421f87c08c68abf45bc1d8397c5c47b Mon Sep 17 00:00:00 2001 From: Matti Manninen Date: Wed, 12 Feb 2020 16:27:07 +0200 Subject: [PATCH 6/6] Fixed the TypeScript type definition for Options' "format" --- lib/ajv.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ajv.d.ts b/lib/ajv.d.ts index c946096adc..29cdee59a1 100644 --- a/lib/ajv.d.ts +++ b/lib/ajv.d.ts @@ -169,7 +169,7 @@ declare namespace ajv { jsonPointers?: boolean; uniqueItems?: boolean; unicode?: boolean; - format?: string; + format?: false | string; formats?: object; unknownFormats?: true | string[] | 'ignore'; schemas?: Array | object;