From f7907c2dce962258cd048bf30ada2cde4415f819 Mon Sep 17 00:00:00 2001 From: Albina Blazhko Date: Fri, 27 Mar 2026 10:32:14 +0200 Subject: [PATCH 1/3] chore: remove named export overriding --- lib/2020.ts | 1 - lib/draft4.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/2020.ts b/lib/2020.ts index 6145c2acb..debfb577a 100644 --- a/lib/2020.ts +++ b/lib/2020.ts @@ -37,7 +37,6 @@ export class Ajv2020 extends AjvCore { } } -module.exports = exports = Ajv2020 module.exports.Ajv2020 = Ajv2020 Object.defineProperty(exports, "__esModule", {value: true}) diff --git a/lib/draft4.ts b/lib/draft4.ts index 477723db8..4c7dd06b8 100644 --- a/lib/draft4.ts +++ b/lib/draft4.ts @@ -40,7 +40,6 @@ export class Ajv extends AjvCore { } } -module.exports = exports = Ajv Object.defineProperty(exports, "__esModule", {value: true}) export default Ajv From 65cf561c24404f2bc324df63013db2708964a3c7 Mon Sep 17 00:00:00 2001 From: Albina Blazhko Date: Fri, 27 Mar 2026 10:32:54 +0200 Subject: [PATCH 2/3] chore: change version of package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 80bd7dc0b..a475088b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@redocly/ajv", - "version": "8.18.1", + "version": "8.18.2", "description": "Another JSON Schema Validator", "main": "dist/ajv.js", "types": "dist/ajv.d.ts", From b6a9b0bdde31321d0120b953cab6d84c6613eb0a Mon Sep 17 00:00:00 2001 From: Albina Blazhko Date: Fri, 27 Mar 2026 10:49:52 +0200 Subject: [PATCH 3/3] fix: test by fixing an import --- spec/ajv2020.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ajv2020.ts b/spec/ajv2020.ts index e231c4345..259b43eb6 100644 --- a/spec/ajv2020.ts +++ b/spec/ajv2020.ts @@ -1,6 +1,6 @@ import type Ajv2020 from "../dist/2019" const AjvClass: typeof Ajv2020 = - typeof window == "object" ? (window as any).ajv2020 : require("" + "../dist/2020") + typeof window == "object" ? (window as any).ajv2020 : require("" + "../dist/2020").Ajv2020 export default AjvClass module.exports = AjvClass