Skip to content

Releases: LeDDGroup/typescript-transform-paths

v3.0.0

16 Jun 20:51
Compare
Choose a tag to compare

Notes

We did a total overhaul on the module resolution code. There should be no breaking changes, but since we're dealing with the compiler API and have integrated a few new pieces of that, we're bumping the major version to be safe.

The reason behind the rewrite is because there were several issues which could arise from implicit indexes. One rather complicated scenario arose when trying to point to a sub-package (outside of node-modules) which had a main entry in package.json. This entry could point to a sub-folder of the main, which made relative mapping and removing indexes difficult. Several other related bugs had been cropping up.

On top of this, the plugin originally resolved and rewrote every call to import, require, etc. We've managed to replicate the compiler's paths matching logic in order to only process and rewrite calls or statements which either match a paths entry or have an explicit tag. This should speed up the process, and it is better logic, overall.

If you experience any issues, let us know!

Changes

  • Several improvements were made for speed and efficiency.
  • Now accommodating for new TS empty baseURL provision (closes #109)
  • Pre-checking necessity before overwriting paths (closes #110)
  • Rewrote core resolution methodology to:
    • Properly handle implicit indexes (closes #106)
    • Properly handle implicit sub-package indexes set via package.json 'main' #108)
    • Not follow symlinks (#107)
    • Resolve from output path as opposed to SourceFile path (#103)

v1.1.15

16 Aug 00:56
Compare
Choose a tag to compare

Bug Fixes

v1.1.14

16 Aug 00:56
Compare
Choose a tag to compare

Bug Fixes

v1.1.13

16 Aug 00:55
Compare
Choose a tag to compare

Bug Fixes

  • another edge case for implicit * path (#43) (d0f4eb7), closes #42

v1.1.12

16 Aug 00:55
Compare
Choose a tag to compare

Bug Fixes

v1.1.11

16 Aug 00:55
Compare
Choose a tag to compare

Bug Fixes

  • not working with files with multiple extensions (#37) (97454c7)

v1.1.10

16 Aug 00:55
Compare
Choose a tag to compare

Bug Fixes

  • do not transform relative paths (dd57089), closes #30
  • resolve only if file exists (e6c51e0)

v1.1.4

16 Aug 00:56
Compare
Choose a tag to compare

Bug Fixes

  • some exports not working (cc2ba49)

v1.1.3

16 Aug 00:56
Compare
Choose a tag to compare

Bug Fixes

Tests

  • use release build for tests (6069d24)

v1.1.2

16 Aug 00:56
Compare
Choose a tag to compare
  • add some keywords to package.json
  • update license to MIT
  • add all contributor