UNPKG

13.7 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/)
6and this project adheres to [Semantic Versioning](http://semver.org/).
7
8## [Unreleased]
9
10## [4.2.0] - 2023-03-29
11
12### Added
13
14- Add support for tsconfig extends as array of strings. #. See PR [#245](https://github.com/dividab/tsconfig-paths/pull/245). Thanks to [@DanielSidhion](https://github.com/DanielSidhion) for this PR!
15
16## [3.14.2] - 2023-02-25
17
18### Fixed
19
20- bump JSON5 from v1.0.1 to v1.0.2 in tsconfig-paths v3.14.1 to fix CVE-2022-46175 #234. See PR [#234](https://github.com/dividab/tsconfig-paths/pull/234). Thanks to [@mihaiplesa](https://github.com/mihaiplesa) for this PR!
21
22## [4.1.2] - 2023-01-02
23
24### Fixed
25
26- Bump JSON5 dependency to 2.2.2 to fix CVE-2022-46175. See PR [#232](https://github.com/dividab/tsconfig-paths/pull/232). Thanks to [@oparisblue](https://github.com/oparisblue) for this PR!
27
28## [4.1.1] - 2022-11-30
29
30### Fixed
31
32- Skip stat call / throwing an exception when source files don't exist. See PR [#225](https://github.com/dividab/tsconfig-paths/pull/225). Thanks to [@robstolarz](https://github.com/robstolarz) for this PR!
33
34## [4.1.0] - 2022-08-06
35
36- Add support for nested main field selectors #. See PR [#218](https://github.com/dividab/tsconfig-paths/pull/218). Thanks to [@aaronadamsCA](https://github.com/aaronadamsCA) for this PR!
37
38## [4.0.0] - 2022-05-02
39
40### Changed
41
42- Ignore `--project`/`-P` CLI flag when explicit options are passed to `register`. See PR [#206](https://github.com/dividab/tsconfig-paths/pull/206).
43- Tolerate an undefined `baseUrl` compiler option. See PR [#208](https://github.com/dividab/tsconfig-paths/pull/208).
44
45### Added
46
47- Add `cwd` option to `register` function that overrides where the `tsconfig.json` search begins. See PR [#205](https://github.com/dividab/tsconfig-paths/pull/205).
48- Add support for `jsconfig.json`. See PR [#199](https://github.com/dividab/tsconfig-paths/pull/199). Thanks to [@F3n67u](https://github.com/F3n67u) for this PR!
49- Let `paths` mappings be absolute paths. See PR [#184](https://github.com/dividab/tsconfig-paths/pull/184).
50- Allow `baseUrl` in `tsconfig.json` to be an absolute path. See PR [#174](https://github.com/dividab/tsconfig-paths/pull/174). Thanks to [@nwalters512](https://github.com/nwalters512) for this PR!
51
52## [3.14.1] - 2022-03-22
53
54### Fixed
55
56- Use minimist 1.2.6 for all depencencies becuase of pollution vulnerability. See PR [#197](https://github.com/dividab/tsconfig-paths/pull/197). Thanks to [@gopijaganthan](https://github.com/gopijaganthan) for this fix!
57
58## [3.14.0] - 2022-03-13
59
60### Added
61
62- Support for path mapping starting with `/`. See PR [#180](https://github.com/dividab/tsconfig-paths/pull/180), issue [#113](https://github.com/dividab/tsconfig-paths/issues/113), and issue [#128](https://github.com/dividab/tsconfig-paths/issues/128). Thanks to [@benevbright](https://github.com/benevbright) for this fix!
63
64## [3.13.0] - 2022-03-03
65
66### Added
67
68- Include file extension in paths resolved from package.json "main" field. See PR [#135](https://github.com/dividab/tsconfig-paths/pull/135) and issue [#133](https://github.com/dividab/tsconfig-paths/issues/133). Thanks to [@katywings](https://github.com/katywings) for this fix!
69
70## [3.12.0] - 2021-08-24
71
72- Add support for baseUrl override using TS_NODE_BASEURL env var #185 and #114. Thanks to @ejhayes and @information-security for these PRs!
73
74## [3.11.0] - 2021-08-24
75
76- Reverted upgrade of json5 due to being a breaking change. See PR #173.
77
78## [3.10.1] - 2021-07-06
79
80### Fixed
81
82- Add register.js to published files
83
84## [3.10.0] - 2021-07-06
85
86### Added
87
88- feat(tsconfig-loader): extends config from node_modules (#106). Thanks to @zorji for this PR!
89
90### Fixed
91
92- Update CHANGELOG.md (#96). Thanks to @OliverJAsh for this PR!
93- Fix "bootstraping" typo (#111). Thanks to @KRMisha for this PR!
94- Update Readme fixes #116 (#123). Thanks to @benwinding for this PR!
95- Fixed typo (#144). Thanks to @mprinc for this PR!
96- [TYPO] src/mapping-entry.ts (#145). Thanks to @mprinc for this PR!
97- docs(README): fix typos (#156). Thanks to @PiDelport for this PR!
98- deps: bump json5 to use type definition provided officially (#158). Thanks to @koba04 for this PR!
99- Update tsconfig-loader.ts (#161). Thanks to @fecqs for this PR!
100- fix typo (#165). Thanks to @wonda-tea-coffee for this PR!
101- Add file extenstion to typings property value (#151). Thanks to @dangrussell for this PR!
102
103## [3.9.0] - 2019-09-12
104
105### Added
106
107- Make extension config override instead of deep merge. See PR [#95](https://github.com/dividab/tsconfig-paths/pull/95) and issue [#94](https://github.com/dividab/tsconfig-paths/issues/94). Thanks to [@OliverJAsh](https://github.com/OliverJAsh) for this addition!
108
109## [3.8.0] - 2019-02-05
110
111### Added
112
113- Add option to avoid adding a match-all rule. See PR [#73](https://github.com/dividab/tsconfig-paths/pull/73) and issue [72](https://github.com/dividab/tsconfig-paths/issues/72). Thanks to [@Swatinem](https://github.com/Swatinem) for this addition!
114
115## [3.7.0] - 2018-11-11
116
117### Added
118
119- Allow cleanup of register(). See PR [#64](https://github.com/dividab/tsconfig-paths/pull/64) and issue [63](https://github.com/dividab/tsconfig-paths/issues/63). Thanks to [@TylorS](https://github.com/TylorS) for this addition!
120
121## [3.6.0] - 2018-09-10
122
123### Added
124
125- Prefer Node's core modules over file modules. See PR [#60](https://github.com/dividab/tsconfig-paths/pull/60) and issue [56](https://github.com/dividab/tsconfig-paths/issues/56). Thanks to @ljani for this addition!
126
127## [3.5.0] - 2018-07-28
128
129### Added
130
131- Add support for trailing commas in tsconfig.json (use JSON5 to parse). See issue [#48](https://github.com/dividab/tsconfig-paths/issues/48), and PR [#58](https://github.com/dividab/tsconfig-paths/pull/58). Thanks to [@jshado1](https://github.com/jshado1) for this addition!
132
133## [3.4.2] - 2018-06-30
134
135### Fixed
136
137- Do not resolve directories, only files, sse issue [#51](https://github.com/dividab/tsconfig-paths/issues/51).
138
139## [3.4.1] - 2018-06-24
140
141### Fixed
142
143- Ignore field name mappings in package.json files that are not paths of existing files [#46](https://github.com/dividab/tsconfig-paths/pull/45). Thanks to [@christoffer](https://github.com/christoffer) for this fix!
144
145## [3.4.0] - 2018-06-12
146
147### Added
148
149- Add support for providing a list of field names to try instead of just using "main", [#45](https://github.com/dividab/tsconfig-paths/pull/45). Thanks to [@christoffer-dropbox](https://github.com/christoffer-dropbox) for this addition!
150
151## [3.3.2] - 2018-05-07
152
153### Fixed
154
155- Adding json file extension to extends property, [#40](https://github.com/dividab/tsconfig-paths/pull/40). Thanks to [@cwhite-connectfirst](https://github.com/cwhite-connectfirst) for this fixing this!
156
157## [3.3.1] - 2018-04-17
158
159### Fixed
160
161- Fix project undefined error when calling register, [#37](https://github.com/dividab/tsconfig-paths/issues/37). Thanks to [@natedanner](https://github.com/natedanner) for this fixing this!
162
163## [3.3.0] - 2018-04-14
164
165### Added
166
167- Add possibility to indicate explicitly tsconfig location, [#35](https://github.com/dividab/tsconfig-paths/issues/35). Thanks to [@procopenco](https://github.com/procopenco) for this adding this!
168
169## [3.2.0] - 2018-03-31
170
171### Added
172
173- Added support for passing a filename as cwd, see issue [#31](https://github.com/dividab/tsconfig-paths/issues/31) and PR [#32](https://github.com/dividab/tsconfig-paths/pull/32). Thanks to [@amodm](https://github.com/amodm) for this adding this!
174
175## [3.1.3] - 2018-03-14
176
177### Fixed
178
179- Fix async recursion, see [#30](https://github.com/dividab/tsconfig-paths/pull/30). Thanks to [@Nayni](https://github.com/Nayni) for this fix!
180
181## [3.1.2] - 2018-03-13
182
183### Fixed
184
185- Fix a forgotten return when doneCallback is invoked, see [#29](https://github.com/dividab/tsconfig-paths/pull/29). Thanks to [@Nayni](https://github.com/Nayni) for this fix!
186
187## [3.1.1] - 2018-01-13
188
189### Fixed
190
191- Fix read json async when it does not exist
192
193## [3.1.0] - 2018-01-13
194
195### Added
196
197- Implement default async json reader function.
198
199## [3.0.0] - 2018-01-13
200
201### Changed
202
203- Remove parameter `absoluteSourceFileName` from the `MatchPath` and `matchFromAbsolutePaths` functions. It was not used internally.
204- `matchFromAbsolutePaths` now accepts a pre-sorted array of `MappingEntry`s instead of a dictionary. This was done so the sorting could be done once which should give better performance.
205
206### Added
207
208- `createMatchPathAsync`, creates an async version of the `MatchPath` function. Can be used for example by webpack plugins.
209- `matchFromAbsolutePathsAsync`, async version of `matchFromAbsolutePaths`.
210
211## [2.7.3]
212
213### Fixed
214
215- Only resolve path if tsconfig present [#25](https://github.com/dividab/tsconfig-paths/pull/25). Thanks to @nicoschoenmaker for the PR.
216
217## [2.7.2]
218
219### Fixed
220
221- Return absolute path to tsconfig.json.
222
223## [2.7.1]
224
225### Fixed
226
227- Remove left over console.log.
228
229## [2.7.0]
230
231### Added
232
233- Support `baseUrl` to exist in base tsconfig.json when using `extends`, see [#23](https://github.com/dividab/tsconfig-paths/issues/23).
234
235## [2.6.0]
236
237### Added
238
239- Add `baseUrl` and `configFileAbsolutePath` to the result of `loadConfig`.
240
241## [2.5.0]
242
243### Added
244
245- New function in Programmatic API `loadConfig`.
246
247## [2.4.3]
248
249### Fixed
250
251- Export MatchPth typing.
252
253## [2.4.2]
254
255### Fixed
256
257- Add missing types field in package.json.
258
259## [2.4.1]
260
261### Fixed
262
263- Include declaration files. Fixes [#22](https://github.com/dividab/tsconfig-paths/issues/22).
264
265## [2.4.0]
266
267### Changed
268
269- Removed dependency for package `tsconfig`.
270
271### Fixed
272
273- Support for config inheritance with `extends`. Fixes [#17](https://github.com/dividab/tsconfig-paths/issues/17).
274
275## [2.2.0]
276
277### Fixed
278
279- Fixed issue [#7](https://github.com/dividab/tsconfig-paths/issues/7).
280
281## [2.1.2]
282
283### Fixed
284
285- Fixed issue [#6](https://github.com/dividab/tsconfig-paths/issues/6).
286
287## [2.1.1]
288
289### Fixed
290
291- Fixed issue [#4](https://github.com/dividab/tsconfig-paths/issues/4)
292
293## [2.1.0]
294
295### Fixed
296
297- Fixed issue [#3](https://github.com/dividab/tsconfig-paths/issues/3)
298
299## [2.0.0]
300
301### Added
302
303- We now look at `process.env.TS_NODE_PROJECT`
304- Functionality to bootstrap tsconfig-paths. Documentation in [README](https://github.com/dividab/tsconfig-paths/blob/master/README.md)
305
306### Changed
307
308- Changed signature for `createMatchPath`. Now only takes absoluteUrl and paths.
309
310## [1.1.0]
311
312### Added
313
314- More explanation to readme.
315- Match all extensions in require.extensions.
316- Match longest pattern prefix first as typesript does.
317- Match file in main field of package.json.
318- Check for index files explicitly.
319
320## [1.0.0] - 2016-12-30
321
322- First stable release.
323
324## [0.4.0] - 2016-12-30
325
326### Changed
327
328- Renamed project to `tsocnfig-paths`.
329
330## [0.3.0] - 2016-12-30
331
332### Added
333
334- API documentation.
335- `createMatchPath` function.
336- `matchFromAbsolutePaths` function.
337
338### Removed
339
340- `findPath` function.
341
342## [0.2.1] - 2016-12-29
343
344### Fixed
345
346- `tsconfig-paths/register` was not available.
347
348## [0.2.0] - 2016-12-29
349
350### Fixed
351
352- Paths for files in sub-dirs.
353
354### Added
355
356- Programmatic use.
357
358## [0.1.2] - 2016-12-28
359
360### Fixed
361
362- Fixed wrong name of the package in README.
363- Add missing files on publish.
364
365## [0.1.1] - 2016-12-28
366
367### Added
368
369- Loading of tsconfig.
370- Example.
371- Publish scripts.
372
373## [0.1.0] - 2016-12-28
374
375- Initial version.
376
377[unreleased]: https://github.com/dividab/tsconfig-paths/compare/v3.9.0...master
378[3.9.0]: https://github.com/dividab/tsconfig-paths/compare/v3.8.0...v3.9.0
379[3.8.0]: https://github.com/dividab/tsconfig-paths/compare/3.7.0...3.8.0
380[3.7.0]: https://github.com/dividab/tsconfig-paths/compare/3.6.0...3.7.0
381[3.6.0]: https://github.com/dividab/tsconfig-paths/compare/3.5.0...3.6.0
382[3.5.0]: https://github.com/dividab/tsconfig-paths/compare/3.4.2...3.5.0
383[3.4.2]: https://github.com/dividab/tsconfig-paths/compare/3.4.1...3.4.2
384[3.4.1]: https://github.com/dividab/tsconfig-paths/compare/3.4.0...3.4.1
385[3.4.0]: https://github.com/dividab/tsconfig-paths/compare/3.3.2...3.4.0
386[3.3.2]: https://github.com/dividab/tsconfig-paths/compare/3.3.1...3.3.2
387[3.3.1]: https://github.com/dividab/tsconfig-paths/compare/3.3.0...3.3.1
388[3.3.0]: https://github.com/dividab/tsconfig-paths/compare/3.2.0...3.3.0
389[3.2.0]: https://github.com/dividab/tsconfig-paths/compare/3.1.3...3.2.0
390[3.1.3]: https://github.com/dividab/tsconfig-paths/compare/3.1.2...3.1.3
391[3.1.2]: https://github.com/dividab/tsconfig-paths/compare/3.1.1...3.1.2
392[3.1.1]: https://github.com/dividab/tsconfig-paths/compare/3.1.0...3.1.1
393[3.1.0]: https://github.com/dividab/tsconfig-paths/compare/3.0.0...3.1.0
394[3.0.0]: https://github.com/dividab/tsconfig-paths/compare/2.7.3...3.0.0
395[2.7.3]: https://github.com/dividab/tsconfig-paths/compare/2.7.2...2.7.3
396[2.7.2]: https://github.com/dividab/tsconfig-paths/compare/2.7.1...2.7.2
397[2.7.1]: https://github.com/dividab/tsconfig-paths/compare/2.7.0...2.7.1
398[2.7.0]: https://github.com/dividab/tsconfig-paths/compare/2.6.0...2.7.0
399[2.6.0]: https://github.com/dividab/tsconfig-paths/compare/2.5.0...2.6.0
400[2.5.0]: https://github.com/dividab/tsconfig-paths/compare/2.4.3...2.5.0
401[2.4.3]: https://github.com/dividab/tsconfig-paths/compare/2.4.2...2.4.3
402[2.4.2]: https://github.com/dividab/tsconfig-paths/compare/2.4.1...2.4.2
403[2.4.1]: https://github.com/dividab/tsconfig-paths/compare/2.4.0...2.4.1
404[2.4.0]: https://github.com/dividab/tsconfig-paths/compare/2.2.0...2.4.0
405[2.2.0]: https://github.com/dividab/tsconfig-paths/compare/2.1.2...2.2.0
406[2.1.2]: https://github.com/dividab/tsconfig-paths/compare/2.1.1...2.1.2
407[2.1.1]: https://github.com/dividab/tsconfig-paths/compare/2.1.0...2.1.1