Skip to content

v1.2.1 - TypeScript Fixes & Enhanced Type Safety

Choose a tag to compare

@JeromeErasmus JeromeErasmus released this 22 Sep 12:56
· 61 commits to main since this release
6ad847e

🔧 TypeScript Improvements

This patch release resolves all TypeScript compilation errors and enhances type safety throughout the codebase.

Fixed Issues

  • MediaNode interface: Added missing alt property for media elements
  • ValidationError interface: Added line property for better error reporting
  • Metadata handling: Fixed mdast Data interface extension for ADF metadata
  • Validator typing: Improved AJV validator function types with proper ValidateFunction
  • Type assertions: Fixed type mismatches in metadata comment utilities

Enhanced Developer Experience

  • ✅ Zero TypeScript compilation errors
  • ✅ Complete type coverage
  • ✅ Better IDE support and autocomplete
  • ✅ Comprehensive CHANGELOG.md added
  • ✅ Updated troubleshooting documentation

Upgrade Instructions

If upgrading from versions prior to 1.2.1:

npm update extended-markdown-adf-parser
# Clear TypeScript cache if needed
rm -rf node_modules/.cache
npx tsc --build --clean

Full Compatibility

  • ✅ Node.js 20.11.1+
  • ✅ TypeScript 5.0+
  • ✅ CommonJS and ES Modules
  • ✅ All existing APIs unchanged