Skip to content

Latest commit

 

History

History
268 lines (149 loc) · 11.6 KB

CHANGELOG.md

File metadata and controls

268 lines (149 loc) · 11.6 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.2.1 (2024-06-26)

Bug Fixes

3.2.0 (2024-06-03)

Features

  • Added support for TS 5.5 (2c4954d)

3.1.2 (2024-01-10)

Bug Fixes

  • don't break if other plugin is added (f2b591e)

3.1.1 (2023-12-06)

Bug Fixes

  • parseAllJsDoc breaking with < ts 5.3 (d21e02e)

3.1.0 (2023-12-05)

Features

  • Added Plugin Package Configuration + parseAllJsDoc (closes #134 closes #133) (15570d0)
  • Added support for chaining transformers in single factory (closes #122 closes #120) (aabf389)

Bug Fixes

  • TsExtras 'ts' type registering as 'any' (fixes #127) (069411e)
  • tsp.currentLibrary was not set (detail) (24d8031)

3.0.2 (2023-07-20)

Bug Fixes

  • Plugins returning TransformerBasePlugin not supported (fixes #113) (12ee3a2)

3.0.1 (2023-06-22)

Bug Fixes

  • 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)

⚠ BREAKING CHANGES

Features

  • 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

Bug Fixes

  • Fixed patching for non-standard libraries (cannot guarantee they will work as expected in IDEs) (closes #85)

2.1.0 (2022-12-08)

Features

  • Updated to support TS 4.9 (26f6099)

2.0.2 (2022-08-10)

Changes

2.0.1 (2021-11-01)

Bug Fixes

  • Corrected path error in previous release (7c56d56)

2.0.0 (2021-11-01)

Summary

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

Changes

  • Soft deprecated --basedir (use --dir)
  • Zero bundled dependencies in patch (much lighter)
  • ⚠️ Hard deprecated --persist option (use package.json -> prepare script)
  • ⚠️ Requires TS >= 4.0

(⚠️ denotes potential "breaking" change)

Development Changes

  • 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)

Bug Fixes

  • compilation fails if basedir resolves to cwd (#65) (9bac698)

1.4.4 (2021-08-27)

Bug Fixes

  • --basedir flag fails if dir is not a subdir of a package (5912288)

1.4.3 (2021-08-23)

Bug Fixes

  • 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)

Bug Fixes

  • Patch fails on ts v3.1 - 3.5 (fixes #54) (0fabe3c)

1.4.1 (2021-07-13)

Bug Fixes

  • Only patch 'tsc.js' and 'typescript.js' by default (closes #52) (4d029f6)

1.4.0 (2021-07-13)

Features

  • Add tsserver.js to supported libraries (08262ed)

Bug Fixes

  • Require ts-node installation to be handled by user (fixes #51) (979338c)

1.3.4 (2021-06-30)

Bug Fixes

  • Install adds ts-node to deps instead of devDeps (fixes #38) (a2d586b)

1.3.3 (2021-04-23)

Bug Fixes

  • patch: Patched emit does not pass all arguments (fixes #36) (9b130bc)

1.3.2 (2021-01-31)

1.3.1 (11-25-2020)

Fixed

  • Fixed #21 (Could not specify --basedir with dir name other than typescript - affected yarn aliasing)

1.3.0 (07-26-2020)

Added

  • 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)

Fixed

  • Possible recursion issue with program transformer
  • In some older TS versions, tsc wasn't passing diagnostics array
  • Various CLI bugs

Added

  • Added 'library' to TspExtras
  • install and patch actions now will proceed to run if already patched but current version is out-dated

Code

  • Substantial re-design of certain parts (see release commit message for more)

1.2.0 (05-20-2020)

Changed: beforeEmit -> tranformProgram

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.

Added: Inspect or alter diagnostics

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

  • Added beforeEmit option, which allows 'transforming' Program instance before program.emit() is called.

1.0 (2019 - 2020)

Fixed

  • 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)