Repository navigation
v1.2.1 - TypeScript Fixes & Enhanced Type Safety
🔧 TypeScript Improvements
This patch release resolves all TypeScript compilation errors and enhances type safety throughout the codebase.
Fixed Issues
- MediaNode interface: Added missing
altproperty for media elements - ValidationError interface: Added
lineproperty 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 --cleanFull Compatibility
- ✅ Node.js 20.11.1+
- ✅ TypeScript 5.0+
- ✅ CommonJS and ES Modules
- ✅ All existing APIs unchanged