| [9af201e] | 1 | # Change Log
|
|---|
| 2 |
|
|---|
| 3 | All notable changes to this project will be documented in this file.
|
|---|
| 4 |
|
|---|
| 5 | The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|---|
| 6 | and this project adheres to [Semantic Versioning](http://semver.org/).
|
|---|
| 7 |
|
|---|
| 8 | ## [Unreleased]
|
|---|
| 9 |
|
|---|
| 10 | ## [3.15.0] - 2023-12-14
|
|---|
| 11 |
|
|---|
| 12 | ### Added
|
|---|
| 13 |
|
|---|
| 14 | - Add support for extends as array of strings to v3 (backport of #245). See PR #260. Thanks to [@domdomegg](https://github.com/domdomegg) for this PR!
|
|---|
| 15 |
|
|---|
| 16 | ## [3.14.1] - 2022-03-22
|
|---|
| 17 |
|
|---|
| 18 | ### Fixed
|
|---|
| 19 |
|
|---|
| 20 | - 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!
|
|---|
| 21 |
|
|---|
| 22 | ## [3.14.0] - 2022-03-13
|
|---|
| 23 |
|
|---|
| 24 | ### Added
|
|---|
| 25 |
|
|---|
| 26 | - 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!
|
|---|
| 27 |
|
|---|
| 28 | ## [3.13.0] - 2022-03-03
|
|---|
| 29 |
|
|---|
| 30 | ### Added
|
|---|
| 31 |
|
|---|
| 32 | - 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!
|
|---|
| 33 |
|
|---|
| 34 | ## [3.12.0] - 2021-08-24
|
|---|
| 35 |
|
|---|
| 36 | - Add support for baseUrl override using TS_NODE_BASEURL env var #185 and #114. Thanks to @ejhayes and @information-security for these PRs!
|
|---|
| 37 |
|
|---|
| 38 | ## [3.11.0] - 2021-08-24
|
|---|
| 39 |
|
|---|
| 40 | - Reverted upgrade of json5 due to being a breaking change. See PR #173.
|
|---|
| 41 |
|
|---|
| 42 | ## [3.10.1] - 2021-07-06
|
|---|
| 43 |
|
|---|
| 44 | ### Fixed
|
|---|
| 45 |
|
|---|
| 46 | - Add register.js to published files
|
|---|
| 47 |
|
|---|
| 48 | ## [3.10.0] - 2021-07-06
|
|---|
| 49 |
|
|---|
| 50 | ### Added
|
|---|
| 51 |
|
|---|
| 52 | - feat(tsconfig-loader): extends config from node_modules (#106). Thanks to @zorji for this PR!
|
|---|
| 53 |
|
|---|
| 54 | ### Fixed
|
|---|
| 55 |
|
|---|
| 56 | - Update CHANGELOG.md (#96). Thanks to @OliverJAsh for this PR!
|
|---|
| 57 | - Fix "bootstraping" typo (#111). Thanks to @KRMisha for this PR!
|
|---|
| 58 | - Update Readme fixes #116 (#123). Thanks to @benwinding for this PR!
|
|---|
| 59 | - Fixed typo (#144). Thanks to @mprinc for this PR!
|
|---|
| 60 | - [TYPO] src/mapping-entry.ts (#145). Thanks to @mprinc for this PR!
|
|---|
| 61 | - docs(README): fix typos (#156). Thanks to @PiDelport for this PR!
|
|---|
| 62 | - deps: bump json5 to use type definition provided officially (#158). Thanks to @koba04 for this PR!
|
|---|
| 63 | - Update tsconfig-loader.ts (#161). Thanks to @fecqs for this PR!
|
|---|
| 64 | - fix typo (#165). Thanks to @wonda-tea-coffee for this PR!
|
|---|
| 65 | - Add file extenstion to typings property value (#151). Thanks to @dangrussell for this PR!
|
|---|
| 66 |
|
|---|
| 67 | ## [3.9.0] - 2019-09-12
|
|---|
| 68 |
|
|---|
| 69 | ### Added
|
|---|
| 70 |
|
|---|
| 71 | - 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!
|
|---|
| 72 |
|
|---|
| 73 | ## [3.8.0] - 2019-02-05
|
|---|
| 74 |
|
|---|
| 75 | ### Added
|
|---|
| 76 |
|
|---|
| 77 | - 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!
|
|---|
| 78 |
|
|---|
| 79 | ## [3.7.0] - 2018-11-11
|
|---|
| 80 |
|
|---|
| 81 | ### Added
|
|---|
| 82 |
|
|---|
| 83 | - 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!
|
|---|
| 84 |
|
|---|
| 85 | ## [3.6.0] - 2018-09-10
|
|---|
| 86 |
|
|---|
| 87 | ### Added
|
|---|
| 88 |
|
|---|
| 89 | - 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!
|
|---|
| 90 |
|
|---|
| 91 | ## [3.5.0] - 2018-07-28
|
|---|
| 92 |
|
|---|
| 93 | ### Added
|
|---|
| 94 |
|
|---|
| 95 | - 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!
|
|---|
| 96 |
|
|---|
| 97 | ## [3.4.2] - 2018-06-30
|
|---|
| 98 |
|
|---|
| 99 | ### Fixed
|
|---|
| 100 |
|
|---|
| 101 | - Do not resolve directories, only files, sse issue [#51](https://github.com/dividab/tsconfig-paths/issues/51).
|
|---|
| 102 |
|
|---|
| 103 | ## [3.4.1] - 2018-06-24
|
|---|
| 104 |
|
|---|
| 105 | ### Fixed
|
|---|
| 106 |
|
|---|
| 107 | - 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!
|
|---|
| 108 |
|
|---|
| 109 | ## [3.4.0] - 2018-06-12
|
|---|
| 110 |
|
|---|
| 111 | ### Added
|
|---|
| 112 |
|
|---|
| 113 | - 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!
|
|---|
| 114 |
|
|---|
| 115 | ## [3.3.2] - 2018-05-07
|
|---|
| 116 |
|
|---|
| 117 | ### Fixed
|
|---|
| 118 |
|
|---|
| 119 | - 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!
|
|---|
| 120 |
|
|---|
| 121 | ## [3.3.1] - 2018-04-17
|
|---|
| 122 |
|
|---|
| 123 | ### Fixed
|
|---|
| 124 |
|
|---|
| 125 | - 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!
|
|---|
| 126 |
|
|---|
| 127 | ## [3.3.0] - 2018-04-14
|
|---|
| 128 |
|
|---|
| 129 | ### Added
|
|---|
| 130 |
|
|---|
| 131 | - 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!
|
|---|
| 132 |
|
|---|
| 133 | ## [3.2.0] - 2018-03-31
|
|---|
| 134 |
|
|---|
| 135 | ### Added
|
|---|
| 136 |
|
|---|
| 137 | - 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!
|
|---|
| 138 |
|
|---|
| 139 | ## [3.1.3] - 2018-03-14
|
|---|
| 140 |
|
|---|
| 141 | ### Fixed
|
|---|
| 142 |
|
|---|
| 143 | - Fix async recursion, see [#30](https://github.com/dividab/tsconfig-paths/pull/30). Thanks to [@Nayni](https://github.com/Nayni) for this fix!
|
|---|
| 144 |
|
|---|
| 145 | ## [3.1.2] - 2018-03-13
|
|---|
| 146 |
|
|---|
| 147 | ### Fixed
|
|---|
| 148 |
|
|---|
| 149 | - 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!
|
|---|
| 150 |
|
|---|
| 151 | ## [3.1.1] - 2018-01-13
|
|---|
| 152 |
|
|---|
| 153 | ### Fixed
|
|---|
| 154 |
|
|---|
| 155 | - Fix read json async when it does not exist
|
|---|
| 156 |
|
|---|
| 157 | ## [3.1.0] - 2018-01-13
|
|---|
| 158 |
|
|---|
| 159 | ### Added
|
|---|
| 160 |
|
|---|
| 161 | - Implement default async json reader function.
|
|---|
| 162 |
|
|---|
| 163 | ## [3.0.0] - 2018-01-13
|
|---|
| 164 |
|
|---|
| 165 | ### Changed
|
|---|
| 166 |
|
|---|
| 167 | - Remove parameter `absoluteSourceFileName` from the `MatchPath` and `matchFromAbsolutePaths` functions. It was not used internally.
|
|---|
| 168 | - `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.
|
|---|
| 169 |
|
|---|
| 170 | ### Added
|
|---|
| 171 |
|
|---|
| 172 | - `createMatchPathAsync`, creates an async version of the `MatchPath` function. Can be used for example by webpack plugins.
|
|---|
| 173 | - `matchFromAbsolutePathsAsync`, async version of `matchFromAbsolutePaths`.
|
|---|
| 174 |
|
|---|
| 175 | ## [2.7.3]
|
|---|
| 176 |
|
|---|
| 177 | ### Fixed
|
|---|
| 178 |
|
|---|
| 179 | - Only resolve path if tsconfig present [#25](https://github.com/dividab/tsconfig-paths/pull/25). Thanks to @nicoschoenmaker for the PR.
|
|---|
| 180 |
|
|---|
| 181 | ## [2.7.2]
|
|---|
| 182 |
|
|---|
| 183 | ### Fixed
|
|---|
| 184 |
|
|---|
| 185 | - Return absolute path to tsconfig.json.
|
|---|
| 186 |
|
|---|
| 187 | ## [2.7.1]
|
|---|
| 188 |
|
|---|
| 189 | ### Fixed
|
|---|
| 190 |
|
|---|
| 191 | - Remove left over console.log.
|
|---|
| 192 |
|
|---|
| 193 | ## [2.7.0]
|
|---|
| 194 |
|
|---|
| 195 | ### Added
|
|---|
| 196 |
|
|---|
| 197 | - Support `baseUrl` to exist in base tsconfig.json when using `extends`, see [#23](https://github.com/dividab/tsconfig-paths/issues/23).
|
|---|
| 198 |
|
|---|
| 199 | ## [2.6.0]
|
|---|
| 200 |
|
|---|
| 201 | ### Added
|
|---|
| 202 |
|
|---|
| 203 | - Add `baseUrl` and `configFileAbsolutePath` to the result of `loadConfig`.
|
|---|
| 204 |
|
|---|
| 205 | ## [2.5.0]
|
|---|
| 206 |
|
|---|
| 207 | ### Added
|
|---|
| 208 |
|
|---|
| 209 | - New function in Programmatic API `loadConfig`.
|
|---|
| 210 |
|
|---|
| 211 | ## [2.4.3]
|
|---|
| 212 |
|
|---|
| 213 | ### Fixed
|
|---|
| 214 |
|
|---|
| 215 | - Export MatchPth typing.
|
|---|
| 216 |
|
|---|
| 217 | ## [2.4.2]
|
|---|
| 218 |
|
|---|
| 219 | ### Fixed
|
|---|
| 220 |
|
|---|
| 221 | - Add missing types field in package.json.
|
|---|
| 222 |
|
|---|
| 223 | ## [2.4.1]
|
|---|
| 224 |
|
|---|
| 225 | ### Fixed
|
|---|
| 226 |
|
|---|
| 227 | - Include declaration files. Fixes [#22](https://github.com/dividab/tsconfig-paths/issues/22).
|
|---|
| 228 |
|
|---|
| 229 | ## [2.4.0]
|
|---|
| 230 |
|
|---|
| 231 | ### Changed
|
|---|
| 232 |
|
|---|
| 233 | - Removed dependency for package `tsconfig`.
|
|---|
| 234 |
|
|---|
| 235 | ### Fixed
|
|---|
| 236 |
|
|---|
| 237 | - Support for config inheritance with `extends`. Fixes [#17](https://github.com/dividab/tsconfig-paths/issues/17).
|
|---|
| 238 |
|
|---|
| 239 | ## [2.2.0]
|
|---|
| 240 |
|
|---|
| 241 | ### Fixed
|
|---|
| 242 |
|
|---|
| 243 | - Fixed issue [#7](https://github.com/dividab/tsconfig-paths/issues/7).
|
|---|
| 244 |
|
|---|
| 245 | ## [2.1.2]
|
|---|
| 246 |
|
|---|
| 247 | ### Fixed
|
|---|
| 248 |
|
|---|
| 249 | - Fixed issue [#6](https://github.com/dividab/tsconfig-paths/issues/6).
|
|---|
| 250 |
|
|---|
| 251 | ## [2.1.1]
|
|---|
| 252 |
|
|---|
| 253 | ### Fixed
|
|---|
| 254 |
|
|---|
| 255 | - Fixed issue [#4](https://github.com/dividab/tsconfig-paths/issues/4)
|
|---|
| 256 |
|
|---|
| 257 | ## [2.1.0]
|
|---|
| 258 |
|
|---|
| 259 | ### Fixed
|
|---|
| 260 |
|
|---|
| 261 | - Fixed issue [#3](https://github.com/dividab/tsconfig-paths/issues/3)
|
|---|
| 262 |
|
|---|
| 263 | ## [2.0.0]
|
|---|
| 264 |
|
|---|
| 265 | ### Added
|
|---|
| 266 |
|
|---|
| 267 | - We now look at `process.env.TS_NODE_PROJECT`
|
|---|
| 268 | - Functionality to bootstrap tsconfig-paths. Documentation in [README](https://github.com/dividab/tsconfig-paths/blob/master/README.md)
|
|---|
| 269 |
|
|---|
| 270 | ### Changed
|
|---|
| 271 |
|
|---|
| 272 | - Changed signature for `createMatchPath`. Now only takes absoluteUrl and paths.
|
|---|
| 273 |
|
|---|
| 274 | ## [1.1.0]
|
|---|
| 275 |
|
|---|
| 276 | ### Added
|
|---|
| 277 |
|
|---|
| 278 | - More explanation to readme.
|
|---|
| 279 | - Match all extensions in require.extensions.
|
|---|
| 280 | - Match longest pattern prefix first as typesript does.
|
|---|
| 281 | - Match file in main field of package.json.
|
|---|
| 282 | - Check for index files explicitly.
|
|---|
| 283 |
|
|---|
| 284 | ## [1.0.0] - 2016-12-30
|
|---|
| 285 |
|
|---|
| 286 | - First stable release.
|
|---|
| 287 |
|
|---|
| 288 | ## [0.4.0] - 2016-12-30
|
|---|
| 289 |
|
|---|
| 290 | ### Changed
|
|---|
| 291 |
|
|---|
| 292 | - Renamed project to `tsocnfig-paths`.
|
|---|
| 293 |
|
|---|
| 294 | ## [0.3.0] - 2016-12-30
|
|---|
| 295 |
|
|---|
| 296 | ### Added
|
|---|
| 297 |
|
|---|
| 298 | - API documentation.
|
|---|
| 299 | - `createMatchPath` function.
|
|---|
| 300 | - `matchFromAbsolutePaths` function.
|
|---|
| 301 |
|
|---|
| 302 | ### Removed
|
|---|
| 303 |
|
|---|
| 304 | - `findPath` function.
|
|---|
| 305 |
|
|---|
| 306 | ## [0.2.1] - 2016-12-29
|
|---|
| 307 |
|
|---|
| 308 | ### Fixed
|
|---|
| 309 |
|
|---|
| 310 | - `tsconfig-paths/register` was not available.
|
|---|
| 311 |
|
|---|
| 312 | ## [0.2.0] - 2016-12-29
|
|---|
| 313 |
|
|---|
| 314 | ### Fixed
|
|---|
| 315 |
|
|---|
| 316 | - Paths for files in sub-dirs.
|
|---|
| 317 |
|
|---|
| 318 | ### Added
|
|---|
| 319 |
|
|---|
| 320 | - Programmatic use.
|
|---|
| 321 |
|
|---|
| 322 | ## [0.1.2] - 2016-12-28
|
|---|
| 323 |
|
|---|
| 324 | ### Fixed
|
|---|
| 325 |
|
|---|
| 326 | - Fixed wrong name of the package in README.
|
|---|
| 327 | - Add missing files on publish.
|
|---|
| 328 |
|
|---|
| 329 | ## [0.1.1] - 2016-12-28
|
|---|
| 330 |
|
|---|
| 331 | ### Added
|
|---|
| 332 |
|
|---|
| 333 | - Loading of tsconfig.
|
|---|
| 334 | - Example.
|
|---|
| 335 | - Publish scripts.
|
|---|
| 336 |
|
|---|
| 337 | ## [0.1.0] - 2016-12-28
|
|---|
| 338 |
|
|---|
| 339 | - Initial version.
|
|---|
| 340 |
|
|---|
| 341 | [unreleased]: https://github.com/dividab/tsconfig-paths/compare/v3.9.0...master
|
|---|
| 342 | [3.9.0]: https://github.com/dividab/tsconfig-paths/compare/v3.8.0...v3.9.0
|
|---|
| 343 | [3.8.0]: https://github.com/dividab/tsconfig-paths/compare/3.7.0...3.8.0
|
|---|
| 344 | [3.7.0]: https://github.com/dividab/tsconfig-paths/compare/3.6.0...3.7.0
|
|---|
| 345 | [3.6.0]: https://github.com/dividab/tsconfig-paths/compare/3.5.0...3.6.0
|
|---|
| 346 | [3.5.0]: https://github.com/dividab/tsconfig-paths/compare/3.4.2...3.5.0
|
|---|
| 347 | [3.4.2]: https://github.com/dividab/tsconfig-paths/compare/3.4.1...3.4.2
|
|---|
| 348 | [3.4.1]: https://github.com/dividab/tsconfig-paths/compare/3.4.0...3.4.1
|
|---|
| 349 | [3.4.0]: https://github.com/dividab/tsconfig-paths/compare/3.3.2...3.4.0
|
|---|
| 350 | [3.3.2]: https://github.com/dividab/tsconfig-paths/compare/3.3.1...3.3.2
|
|---|
| 351 | [3.3.1]: https://github.com/dividab/tsconfig-paths/compare/3.3.0...3.3.1
|
|---|
| 352 | [3.3.0]: https://github.com/dividab/tsconfig-paths/compare/3.2.0...3.3.0
|
|---|
| 353 | [3.2.0]: https://github.com/dividab/tsconfig-paths/compare/3.1.3...3.2.0
|
|---|
| 354 | [3.1.3]: https://github.com/dividab/tsconfig-paths/compare/3.1.2...3.1.3
|
|---|
| 355 | [3.1.2]: https://github.com/dividab/tsconfig-paths/compare/3.1.1...3.1.2
|
|---|
| 356 | [3.1.1]: https://github.com/dividab/tsconfig-paths/compare/3.1.0...3.1.1
|
|---|
| 357 | [3.1.0]: https://github.com/dividab/tsconfig-paths/compare/3.0.0...3.1.0
|
|---|
| 358 | [3.0.0]: https://github.com/dividab/tsconfig-paths/compare/2.7.3...3.0.0
|
|---|
| 359 | [2.7.3]: https://github.com/dividab/tsconfig-paths/compare/2.7.2...2.7.3
|
|---|
| 360 | [2.7.2]: https://github.com/dividab/tsconfig-paths/compare/2.7.1...2.7.2
|
|---|
| 361 | [2.7.1]: https://github.com/dividab/tsconfig-paths/compare/2.7.0...2.7.1
|
|---|
| 362 | [2.7.0]: https://github.com/dividab/tsconfig-paths/compare/2.6.0...2.7.0
|
|---|
| 363 | [2.6.0]: https://github.com/dividab/tsconfig-paths/compare/2.5.0...2.6.0
|
|---|
| 364 | [2.5.0]: https://github.com/dividab/tsconfig-paths/compare/2.4.3...2.5.0
|
|---|
| 365 | [2.4.3]: https://github.com/dividab/tsconfig-paths/compare/2.4.2...2.4.3
|
|---|
| 366 | [2.4.2]: https://github.com/dividab/tsconfig-paths/compare/2.4.1...2.4.2
|
|---|
| 367 | [2.4.1]: https://github.com/dividab/tsconfig-paths/compare/2.4.0...2.4.1
|
|---|
| 368 | [2.4.0]: https://github.com/dividab/tsconfig-paths/compare/2.2.0...2.4.0
|
|---|
| 369 | [2.2.0]: https://github.com/dividab/tsconfig-paths/compare/2.1.2...2.2.0
|
|---|
| 370 | [2.1.2]: https://github.com/dividab/tsconfig-paths/compare/2.1.1...2.1.2
|
|---|
| 371 | [2.1.1]: https://github.com/dividab/tsconfig-paths/compare/2.1.0...2.1.1
|
|---|