All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Fixed:
- Added back support for Node.js-style resolution of the tsconfig
extends
field which had been accidentally dropped in v6.2.0 (#73) - closes #72
Fixed:
- Fixed jest plugin omitting
<rootDir>
for aliases involving parent directories (#57) - closes #45
Changed:
- Updated packages - closes #52
Changed:
- Replace TypeScript dependency with JSON5 (#65) - closes #41
Added:
- Add Babel support (#60) - closes #56
Changed:
- Improve plugin utils callback signature (#59) - closes #58
Added:
- Added support to initialize Alias HQ with a Node require flag (#48) - closes #46
Added:
- Added support for tsconfig extends (#37) - closes #28, #30
Added:
- Added initial TypeScript type definitions (#33) - closes #29
Fixed:
- Fixed empty defaults for Rollup plugin generating incorrect array config
Modified plugin formats:
- Jest now has string and array format options
- Jest now outputs strings by default
- Rollup now outputs objects by default
- Fixed test:plugins script
Fixed:
- Fixed issue where CLI does not recognise existing config.json without existing paths node
Fixed:
- Fixed CLI link to docs
Fixed:
- Minor fix to transformer quote detection
Fixed:
- Major bug fix where config.json was being overwritten, not updated
- Minor bug where changed settings would load as undefined
Added:
- Helpful error message if config or settings cannot be loaded
Added:
- Node support via module-alias package
Changed:
- Simplified CLI menus
- Optimised stats output
- Minor change to prefer shorter local paths to aliased paths
Breaking changes:
- Plugin
toArray
/toObject
{ name, path }
format
Fixed:
- Major bug with config loading
- Bug with transforms not being properly updated for imports
Fixed (backfixes):
- Major bug fix where config.json was being overwritten, not updated
- Minor fix to transformer quote detection
Added:
- Improved path formatting for added paths
Changed:
- Refactored passing of plugin parameters to separate config and user options
- Refactored plugin helper functions to do the same, plus de-duplicate paths
Added:
- CLI support for "make paths json" to generate file aliases
Changed:
- Refactored plugin architecture to provide both tests and options
- CLI now provides output for all available plugin options
- Simplified utils structure
Added:
- Support for directly accessing CLI as .bin
Added:
- Tests for CLI paths
Fixed:
- Fix CLI "make paths json" incorrectly converting relative paths
Fixed:
- Fix CLI "make paths json" not recognising paths with spaces
Fixed:
- Fix broken Rollup plugin
Added:
- CLI tool to generate paths config
Changed:
- Changed
hq.log()
tohq.json()
Changed:
- Change Rollup format default to array
- Change CLI tool from listing plugin names to showing plugin output
Fixed:
- Fix issue with wrong root folder being found
Added:
- Explicit support for Create React App with tsconfig.base.json fallback
- Interactive CLI tool
- Rollup format options
Removed:
- Ability to load raw object data (update hq.config directly if needed)
- Ability to load simplified config version
Added:
- Support for multiple paths per alias
Added:
- Support for baseUrl
Initial release