Releases: 2BAD/tsfix
Releases · 2BAD/tsfix
v1.1.1
v1.1.0
Added
- Path alias resolution for TypeScript path mappings defined in tsconfig.json
- Automatically transforms imports using path aliases to proper relative paths with extensions
- Works with any path mapping configuration in your tsconfig.json
- Supports nested aliases with correct resolution of the longest matching pattern
Fixed
- Improved handling of directory imports to properly resolve to index.js files
- Better error handling when files can't be found or accessed
Changed
- More accurate detection of quote types (single vs double) when transforming imports
- Enhanced error messages for better debugging of transformation issues
Full Changelog: v1.0.0...v1.1.0
v1.0.0
What's Changed
Added
- AST-based import extraction using TypeScript's compiler API
- More accurate parsing of complex TypeScript syntax
- Better handling of edge cases and unusual formatting
- Integration tests with real-world codebases
Changed
- Updated CLI to support specifying extraction mode (
--mode ast
or--mode regex
) - Default mode remains regex-based for backward compatibility
- Replaced Prettier with Biome
- Refactored integration tests to use CLI
- Improved integration tests by using beforeAll/afterAll hooks and parallel test environments
Fixed
- Fixed CJS module import issues with glob package
- Resolved TypeScript mocking in tsconfig tests
- Various import path corrections
Dependencies
- Added
execa
package for process execution - Added types for
debug
package - Updated dependencies to latest versions
Full Changelog: v0.1.0...v1.0.0
v0.1.0
Full Changelog: https://github.com/2BAD/tsfix/commits/v0.1.0