Skip to content

v1.6.16: Fix module resolution and TTY handling

Choose a tag to compare

@thegalah thegalah released this 23 Aug 14:24
· 6 commits to master since this release

πŸ› Bug Fixes

  • Fixed CommonJS module resolution by separating CLI and library entry points
  • Fixed TTY detection to prevent crashes in CI/CD environments
  • Added proper handling for non-interactive terminals

πŸ”§ Improvements

  • Added skipLibCheck to TypeScript config for better compatibility
  • Created separate lib.ts entry point for programmatic usage
  • Enhanced README with JSDoc validation documentation and project comparisons

πŸ“¦ Changes

  • Main entry point changed from dist/index.js to dist/lib.js
  • CLI binary still available at dist/index.js
  • Fixed optional chaining for undefined schema entries

πŸ’” Breaking Changes

None - fully backward compatible

πŸ“š Documentation

  • Added comprehensive examples of JSDoc validation annotations
  • Added comparison table with alternative libraries (zod, io-ts, yup)
  • Improved installation and usage instructions