All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.0.2 (2023-07-20)
3.0.1 (2023-06-22)
- Added explicit error if ts is patched and cached backup is removed (ac25743)
- ESM temp files not cleaned up (8802054)
- Lock file deletion check (#102) (cacf908)
3.0.0 (2023-06-13)
- Added Live Compiler (on-the-fly, in-memory patching), which allows ttypescript migration
- Added experimental ES Module support (closes #58)
- Added mutex locks (closes #75)
- Updated to support TS v5+ (closes #83 closes #93)
- Added caching
- Fixed patching for non-standard libraries (cannot guarantee they will work as expected in IDEs) (closes #85)
2.1.0 (2022-12-08)
- Updated to support TS 4.9 (26f6099)
2.0.2 (2022-08-10)
- Upgraded dependencies (a878131)
2.0.1 (2021-11-01)
- Corrected path error in previous release (7c56d56)
2.0.0 (2021-11-01)
This is not the planned rewrite, but the codebase was in desperate need of an update. The patch build system with rollup was failing with newer versions and was hacky under the best of circumstances, anyway. This new version has a proper custom build system that produces a much leaner patch. Additionally, I reorganized the codebase, improved tests, and dropped old TS support.
Note: If you absolutely need it, it will still work with older TS. Simply fork and remove the version check
- Soft deprecated
--basedir
(use--dir
) - Zero bundled dependencies in patch (much lighter)
⚠️ Hard deprecated--persist
option (usepackage.json
->prepare
script)⚠️ Requires TS >= 4.0
(
- Removed rollup and created light-weight custom build system
- Cleaned up file structure
- Improved test speed & methodology
- Changed patch detection signature
1.4.5 (2021-10-25)
1.4.4 (2021-08-27)
--basedir
flag fails if dir is not a subdir of a package (5912288)
1.4.3 (2021-08-23)
- Relative transform paths do not resolve from project root dir with compiler API (fixes #59) (e38655a)
- ts 3.6.5 does not patch properly (fixes #55) (1babac9)
1.4.2 (2021-08-01)
1.4.1 (2021-07-13)
1.4.0 (2021-07-13)
- Add tsserver.js to supported libraries (08262ed)
1.3.4 (2021-06-30)
1.3.3 (2021-04-23)
1.3.2 (2021-01-31)
1.3.1 (11-25-2020)
- Fixed #21 (Could not specify
--basedir
with dir name other thantypescript
- affected yarn aliasing)
1.3.0 (07-26-2020)
- Added ability to specify tsconfig.json file for transformer (
tsConfig
option) Note: This opens up the door to specify compilerOptions, which can be useful - Added path mapping support (requires tsconfig-paths)
1.2.2 (05-23-2020)
- Possible recursion issue with program transformer
- In some older TS versions, tsc wasn't passing diagnostics array
- Various CLI bugs
- Added 'library' to TspExtras
- install and patch actions now will proceed to run if already patched but current version is out-dated
- Substantial re-design of certain parts (see release commit message for more)
1.2.0 (05-20-2020)
The mechanism of action for Program
transformation has been moved from inside
program.emit()
to ts.createProgram()
.
In the new methodology, the Program
instance is transformed at the point of creation before it is returned from the
factory function, which is a far better approach.
While the option name has been updated to reflect the new behaviour, the old beforeEmit
can still function as an alias
to the new behaviour, so this is not a breaking change.
Using the program
type entry point, the extras
field has been revised.
property | status | description |
---|---|---|
diagnostics | new | Reference to Diagnostic[] created during ts.emitFilesAndReportErrors() (works with tsc also) |
addDiagnostic | changed | Directly add Diagnostic to diagnostics array |
removeDiagnostic | new | Directly remove Diagnostic from diagnostics array (uses splice, for safe removal) |
See README.md
for full detail.
1.1.0 (05-08-2020)
- Added
beforeEmit
option, which allows 'transforming'Program
instance beforeprogram.emit()
is called.
1.0 (2019 - 2020)
- Updated for Node v14 (Addresses #7, shelljs/shelljs#991)
- Adjusted ts-node compilerOptions to ES2018 (Fixes #7)
- Exposed & fixed
addDiagnostic
helper (Fixes #6) - Rolled
resolve
package into patch (Fixes #5) - Converted EOL to LF (MacOS support) (Fixes #3 #4)
- Edge cases occurred in which TypeScript based transformers using CommonJS were not being interpretted properly. (Should address issue #1)