From 3fae6f2510813a9de36b0a8a2431995a96eba30f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 14 Jun 2024 19:22:29 +0200 Subject: [PATCH] Switch from JSON Schema draft-07 to draft-2020-12 --- source/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/index.ts b/source/index.ts index 33e390f..7b5b62c 100644 --- a/source/index.ts +++ b/source/index.ts @@ -13,7 +13,7 @@ import { } from 'dot-prop'; import envPaths from 'env-paths'; import {writeFileSync as atomicWriteFileSync} from 'atomically'; -import AjvModule, {type ValidateFunction as AjvValidateFunction} from 'ajv'; +import {Ajv2020 as Ajv, type ValidateFunction as AjvValidateFunction} from 'ajv/dist/2020.js'; import ajvFormatsModule from 'ajv-formats'; import debounceFn from 'debounce-fn'; import semver from 'semver'; @@ -35,7 +35,6 @@ import { } from './types.js'; // FIXME: https://github.com/ajv-validator/ajv/issues/2047 -const Ajv = AjvModule.default; const ajvFormats = ajvFormatsModule.default; const encryptionAlgorithm = 'aes-256-cbc';