Fix Ajv import compatibility issue by downgrading to v6#517
Conversation
Downgrade Ajv from v8.17.1 to v6.12.6 to resolve ESM/CJS module compatibility issues that were causing "does not provide an export named 'Ajv'" errors in projects using this SDK. This ensures consistent import patterns across different module systems. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Should we just upgrade eslint as well to make sure we have only one version of Ajv? |
Sadly it looks like the latest eslint is still using the old version of ajv |
make auth token configurable via env var
|
@bhosmer-ant @ihrpr @alexander-zuev Since And as for the issue in #512 , I believe that was due to Vitest having issues with AJV v8 and Cloudflare workers as seen in this Cloudflare bug which sounds like it has a workaround. So it is an uncommon case due to a bug in other libraries, not due to having So is there any reason we can't revert this revert? |
Downgrade Ajv from v8.17.1 to v6.12.6 to resolve ESM/CJS module compatibility issues that were causing "does not provide an export named 'Ajv'" errors in projects using this SDK. This ensures consistent import patterns across different module systems.
🤖 Generated with Claude Code
Motivation and Context
Original PR built successfully, tracking down where the build error was subsequently introduced. Meanwhile this simplifies things by using the same version of ajv as
eslintand builds successfully.How Has This Been Tested?
SDK tests pass
Breaking Changes
No
Types of changes
Checklist
Additional context
May fix #512