1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 |
|
5 | ### [3.2.1](https://github.com/nonara/ts-patch/compare/v3.2.0...v3.2.1) (2024-06-26)
|
6 |
|
7 |
|
8 | ### Bug Fixes
|
9 |
|
10 | * Added TS 5.5.2 support ([31eb80f](https://github.com/nonara/ts-patch/commit/31eb80f1dcca45d15917e4b6621769f80e57ebe1))
|
11 |
|
12 | ## [3.2.0](https://github.com/nonara/ts-patch/compare/v3.1.2...v3.2.0) (2024-06-03)
|
13 |
|
14 |
|
15 | ### Features
|
16 |
|
17 | * Added support for TS 5.5 ([2c4954d](https://github.com/nonara/ts-patch/commit/2c4954d91def5f0654804bfbf64704720f605840))
|
18 |
|
19 | ### [3.1.2](https://github.com/nonara/ts-patch/compare/v3.1.1...v3.1.2) (2024-01-10)
|
20 |
|
21 |
|
22 | ### Bug Fixes
|
23 |
|
24 | * don't break if other plugin is added ([f2b591e](https://github.com/nonara/ts-patch/commit/f2b591e1a78636d009af048689f2ae1c0bb89bea))
|
25 |
|
26 | ### [3.1.1](https://github.com/nonara/ts-patch/compare/v3.1.0...v3.1.1) (2023-12-06)
|
27 |
|
28 |
|
29 | ### Bug Fixes
|
30 |
|
31 | * parseAllJsDoc breaking with < ts 5.3 ([d21e02e](https://github.com/nonara/ts-patch/commit/d21e02ef6401f04301972f8f107799b8c287275b))
|
32 |
|
33 | ## [3.1.0](https://github.com/nonara/ts-patch/compare/v3.0.2...v3.1.0) (2023-12-05)
|
34 |
|
35 |
|
36 | ### Features
|
37 |
|
38 | * Added Plugin Package Configuration + parseAllJsDoc (closes [#134](https://github.com/nonara/ts-patch/issues/134) closes [#133](https://github.com/nonara/ts-patch/issues/133)) ([15570d0](https://github.com/nonara/ts-patch/commit/15570d05e422dd02635eb3c63dc6b3a036cb543a))
|
39 | * Added support for chaining transformers in single factory (closes [#122](https://github.com/nonara/ts-patch/issues/122) closes [#120](https://github.com/nonara/ts-patch/issues/120)) ([aabf389](https://github.com/nonara/ts-patch/commit/aabf3894a610047fade6d2d9fb9949f17afe09df))
|
40 |
|
41 |
|
42 | ### Bug Fixes
|
43 |
|
44 | * TsExtras 'ts' type registering as 'any' (fixes [#127](https://github.com/nonara/ts-patch/issues/127)) ([069411e](https://github.com/nonara/ts-patch/commit/069411e49819aa87c880c7c5ff2ab04ecb68eea3))
|
45 | * tsp.currentLibrary was not set (detail) ([24d8031](https://github.com/nonara/ts-patch/commit/24d8031bafcd6483fa762ed9ad8437c4a4070093))
|
46 |
|
47 | ### [3.0.2](https://github.com/nonara/ts-patch/compare/v3.0.1...v3.0.2) (2023-07-20)
|
48 |
|
49 |
|
50 | ### Bug Fixes
|
51 |
|
52 | * Plugins returning TransformerBasePlugin not supported (fixes [#113](https://github.com/nonara/ts-patch/issues/113)) ([12ee3a2](https://github.com/nonara/ts-patch/commit/12ee3a23b9afebb6a42c046b33f257a2bde2467c))
|
53 |
|
54 | ### [3.0.1](https://github.com/nonara/ts-patch/compare/v3.0.0...v3.0.1) (2023-06-22)
|
55 |
|
56 |
|
57 | ### Bug Fixes
|
58 |
|
59 | * Added explicit error if ts is patched and cached backup is removed ([ac25743](https://github.com/nonara/ts-patch/commit/ac25743140f8f3954aceb8c0e43a731eeeab03a1))
|
60 | * ESM temp files not cleaned up ([8802054](https://github.com/nonara/ts-patch/commit/8802054481a9f2b4847001cb227db029e0475a72))
|
61 | * Lock file deletion check ([#102](https://github.com/nonara/ts-patch/issues/102)) ([cacf908](https://github.com/nonara/ts-patch/commit/cacf9084fd4e5a2a1263103f8dc52d2dd7062402))
|
62 |
|
63 | ## [3.0.0](https://github.com/nonara/ts-patch/compare/v2.1.0...v3.0.0) (2023-06-13)
|
64 |
|
65 |
|
66 | ### ⚠ BREAKING CHANGES
|
67 |
|
68 | * Rewrote for new major v3 (see detail) ([cd69c1c](https://github.com/nonara/ts-patch/commit/cd69c1c02b2e4674731178def7d217d5699bde25)), closes [#58](https://github.com/nonara/ts-patch/issues/58) [#75](https://github.com/nonara/ts-patch/issues/75) [#83](https://github.com/nonara/ts-patch/issues/83) [#93](https://github.com/nonara/ts-patch/issues/93) [#85](https://github.com/nonara/ts-patch/issues/85)
|
69 |
|
70 | ### Features
|
71 |
|
72 | * Added Live Compiler (on-the-fly, in-memory patching), which allows ttypescript migration
|
73 | * Added experimental ES Module support (closes #58)
|
74 | * Added mutex locks (closes #75)
|
75 | * Updated to support TS v5+ (closes #83 closes #93)
|
76 | * Added caching
|
77 |
|
78 | ### Bug Fixes
|
79 |
|
80 | * Fixed patching for non-standard libraries (cannot guarantee they will work as expected in IDEs) (closes #85)
|
81 |
|
82 | ## [2.1.0](https://github.com/nonara/ts-patch/compare/v2.0.2...v2.1.0) (2022-12-08)
|
83 |
|
84 |
|
85 | ### Features
|
86 |
|
87 | * Updated to support TS 4.9 ([26f6099](https://github.com/nonara/ts-patch/commit/26f6099543d258a2a430f8344b482aba85ac9b0e))
|
88 |
|
89 | ### [2.0.2](https://github.com/nonara/ts-patch/compare/v2.0.1...v2.0.2) (2022-08-10)
|
90 |
|
91 |
|
92 | ### Changes
|
93 |
|
94 | * Upgraded dependencies ([a878131](https://github.com/nonara/ts-patch/commit/a87813190eb31b918574509e4dfe4ef3b427b212))
|
95 |
|
96 | ### [2.0.1](https://github.com/nonara/ts-patch/compare/v1.4.5...v2.0.1) (2021-11-01)
|
97 |
|
98 | ### Bug Fixes
|
99 |
|
100 | * Corrected path error in previous release ([7c56d56](https://github.com/nonara/ts-patch/commit/7c56d56b5165affb9c58a3c65c2753391f3e967a))
|
101 |
|
102 | ## [2.0.0](https://github.com/nonara/ts-patch/compare/v1.4.5...v2.0.0) (2021-11-01)
|
103 |
|
104 |
|
105 | ### Summary
|
106 |
|
107 | 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.
|
108 |
|
109 | _Note: If you absolutely need it, it will still work with older TS. Simply fork and remove the version check_
|
110 |
|
111 | ### Changes
|
112 |
|
113 | - Soft deprecated `--basedir` (use `--dir`)
|
114 | - Zero bundled dependencies in patch (much lighter)
|
115 | - ⚠️ Hard deprecated `--persist` option (use `package.json` -> `prepare` script)
|
116 | - ⚠️ Requires TS >= 4.0
|
117 |
|
118 | _(⚠️ denotes potential "breaking" change)_
|
119 |
|
120 | ### Development Changes
|
121 |
|
122 | - Removed rollup and created light-weight custom build system
|
123 | - Cleaned up file structure
|
124 | - Improved test speed & methodology
|
125 | - Changed patch detection signature
|
126 |
|
127 | ### [1.4.5](https://github.com/nonara/ts-patch/compare/v1.4.4...v1.4.5) (2021-10-25)
|
128 |
|
129 |
|
130 | ### Bug Fixes
|
131 |
|
132 | * compilation fails if basedir resolves to cwd ([#65](https://github.com/nonara/ts-patch/issues/65)) ([9bac698](https://github.com/nonara/ts-patch/commit/9bac698993cd287de6d62caba48205bf53b4e52e))
|
133 |
|
134 | ### [1.4.4](https://github.com/nonara/ts-patch/compare/v1.4.3...v1.4.4) (2021-08-27)
|
135 |
|
136 |
|
137 | ### Bug Fixes
|
138 |
|
139 | * `--basedir` flag fails if dir is not a subdir of a package ([5912288](https://github.com/nonara/ts-patch/commit/5912288f36f98a1722252d150a456c139e3f8382))
|
140 |
|
141 | ### [1.4.3](https://github.com/nonara/ts-patch/compare/v1.4.2...v1.4.3) (2021-08-23)
|
142 |
|
143 |
|
144 | ### Bug Fixes
|
145 |
|
146 | * Relative transform paths do not resolve from project root dir with compiler API (fixes [#59](https://github.com/nonara/ts-patch/issues/59)) ([e38655a](https://github.com/nonara/ts-patch/commit/e38655ac20f3905e61bcf8bfc03b97a5386b76f8))
|
147 | * ts 3.6.5 does not patch properly (fixes [#55](https://github.com/nonara/ts-patch/issues/55)) ([1babac9](https://github.com/nonara/ts-patch/commit/1babac9284d330983a9658794680a5058e7c64c0))
|
148 |
|
149 | ### [1.4.2](https://github.com/nonara/ts-patch/compare/v1.4.1...v1.4.2) (2021-08-01)
|
150 |
|
151 |
|
152 | ### Bug Fixes
|
153 |
|
154 | * Patch fails on ts v3.1 - 3.5 (fixes [#54](https://github.com/nonara/ts-patch/issues/54)) ([0fabe3c](https://github.com/nonara/ts-patch/commit/0fabe3c85129357a6ad453e48739dd1759efe18d))
|
155 |
|
156 | ### [1.4.1](https://github.com/nonara/ts-patch/compare/v1.4.0...v1.4.1) (2021-07-13)
|
157 |
|
158 |
|
159 | ### Bug Fixes
|
160 |
|
161 | * Only patch 'tsc.js' and 'typescript.js' by default (closes [#52](https://github.com/nonara/ts-patch/issues/52)) ([4d029f6](https://github.com/nonara/ts-patch/commit/4d029f666abdf5e2862c773eeba97eeddbb80089))
|
162 |
|
163 | ## [1.4.0](https://github.com/nonara/ts-patch/compare/v1.3.4...v1.4.0) (2021-07-13)
|
164 |
|
165 |
|
166 | ### Features
|
167 |
|
168 | * Add tsserver.js to supported libraries ([08262ed](https://github.com/nonara/ts-patch/commit/08262ede07c6e69b178751013988da772661ef02))
|
169 |
|
170 |
|
171 | ### Bug Fixes
|
172 |
|
173 | * Require ts-node installation to be handled by user (fixes [#51](https://github.com/nonara/ts-patch/issues/51)) ([979338c](https://github.com/nonara/ts-patch/commit/979338ca5f0642b233de46dd6d293daa7f552ac4))
|
174 |
|
175 | ### [1.3.4](https://github.com/nonara/ts-patch/compare/v1.3.3...v1.3.4) (2021-06-30)
|
176 |
|
177 |
|
178 | ### Bug Fixes
|
179 |
|
180 | * Install adds ts-node to deps instead of devDeps (fixes [#38](https://github.com/nonara/ts-patch/issues/38)) ([a2d586b](https://github.com/nonara/ts-patch/commit/a2d586b286a4af0650faf69d3163115442aec8ab))
|
181 |
|
182 | ### [1.3.3](https://github.com/nonara/ts-patch/compare/v1.3.2...v1.3.3) (2021-04-23)
|
183 |
|
184 |
|
185 | ### Bug Fixes
|
186 |
|
187 | * **patch:** Patched emit does not pass all arguments (fixes [#36](https://github.com/nonara/ts-patch/issues/36)) ([9b130bc](https://github.com/nonara/ts-patch/commit/9b130bc8fd1a5bf3e7b33f796990ed7383aa5449))
|
188 |
|
189 | ### [1.3.2](https://github.com/nonara/ts-patch/compare/v1.3.1...v1.3.2) (2021-01-31)
|
190 |
|
191 | ## [1.3.1] (11-25-2020)
|
192 |
|
193 | ### Fixed
|
194 | - Fixed #21 (Could not specify `--basedir` with dir name other than `typescript` - affected yarn aliasing)
|
195 |
|
196 | ## [1.3.0] (07-26-2020)
|
197 |
|
198 | ### Added
|
199 | - Added ability to specify tsconfig.json file for transformer (`tsConfig` option)
|
200 | Note: This opens up the door to specify compilerOptions, which can be useful
|
201 | - Added path mapping support (requires [tsconfig-paths](https://npmjs.com/tsconfig-paths))
|
202 |
|
203 | ## [1.2.2] (05-23-2020)
|
204 |
|
205 | ### Fixed
|
206 | - Possible recursion issue with program transformer
|
207 | - In some older TS versions, tsc wasn't passing diagnostics array
|
208 | - Various CLI bugs
|
209 |
|
210 | ### Added
|
211 | - Added 'library' to TspExtras
|
212 | - install and patch actions now will proceed to run if already patched but current version is out-dated
|
213 |
|
214 | ### Code
|
215 | - Substantial re-design of certain parts (see release commit message for more)
|
216 |
|
217 | ## [1.2.0] (05-20-2020)
|
218 |
|
219 | ### Changed: `beforeEmit` -> `tranformProgram`
|
220 |
|
221 | The mechanism of action for `Program` transformation has been moved from inside
|
222 | `program.emit()` to `ts.createProgram()`.
|
223 |
|
224 | In the new methodology, the `Program` instance is transformed at the point of creation _before_ it is returned from the
|
225 | factory function, which is a far better approach.
|
226 |
|
227 | While the option name has been updated to reflect the new behaviour, the old `beforeEmit` can still function as an alias
|
228 | to the new behaviour, so this is not a breaking change.
|
229 |
|
230 | ### Added: Inspect or alter diagnostics
|
231 |
|
232 | Using the `program` type entry point, the `extras` field has been revised.
|
233 |
|
234 | | property | status | description |
|
235 | | -------- | ------ | ----------- |
|
236 | | diagnostics | _new_ | Reference to `Diagnostic[]` created during `ts.emitFilesAndReportErrors()` (works with tsc also)
|
237 | | addDiagnostic | _changed_ | Directly add `Diagnostic` to `diagnostics` array |
|
238 | | removeDiagnostic | _new_ | Directly remove `Diagnostic` from `diagnostics` array (uses splice, for safe removal)
|
239 |
|
240 | See `README.md` for full detail.
|
241 |
|
242 | ## [1.1.0] (05-08-2020)
|
243 |
|
244 | ### Added
|
245 | - Added `beforeEmit` option, which allows 'transforming' `Program` instance before `program.emit()` is called.
|
246 |
|
247 | ## [1.0] (2019 - 2020)
|
248 |
|
249 | ### Fixed
|
250 | - Updated for Node v14
|
251 | _(Addresses [#7](https://github.com/nonara/ts-patch/issues/8), [shelljs/shelljs#991](https://github.com/shelljs/shelljs/issues/991))_
|
252 | - Adjusted ts-node compilerOptions to ES2018
|
253 | _(Fixes [#7](https://github.com/nonara/ts-patch/issues/7))_
|
254 | - Exposed & fixed `addDiagnostic` helper
|
255 | _(Fixes [#6](https://github.com/nonara/ts-patch/issues/6))_
|
256 | - Rolled `resolve` package into patch
|
257 | _(Fixes [#5](https://github.com/nonara/ts-patch/issues/5))_
|
258 | - Converted EOL to LF (MacOS support)
|
259 | _(Fixes [#3](https://github.com/nonara/ts-patch/issues/3) [#4](https://github.com/nonara/ts-patch/issues/4))_
|
260 | - Edge cases occurred in which TypeScript based transformers using CommonJS were not being interpretted properly.
|
261 | _(Should address [issue #1](https://github.com/nonara/ts-patch/issues/1))_
|
262 |
|
263 | [1.3.1]: https://github.com/nonara/ts-patch/compare/v1.3.0...v1.3.1
|
264 | [1.3.0]: https://github.com/nonara/ts-patch/compare/v1.2.2...v1.3.0
|
265 | [1.2.2]: https://github.com/nonara/ts-patch/compare/v1.1.0...v1.2.2
|
266 | [1.2.0]: https://github.com/nonara/ts-patch/compare/v1.1.0...v1.2.0
|
267 | [1.1.0]: https://github.com/nonara/ts-patch/compare/v1.0.10...v1.1.0
|
268 | [1.0]: https://github.com/nonara/ts-patch/releases/tag/v1.0.0...v1.0.10
|