Skip to content

Latest commit

 

History

History
348 lines (197 loc) · 22.1 KB

CHANGELOG.md

File metadata and controls

348 lines (197 loc) · 22.1 KB

Changelog

3.7.0

Minor Changes

  • #326 93ea130 Thanks @SukkaW! - This version has implemented the eslint-plugin-import-x's v3 resolver interface. This allows you to use import/require to reference eslint-import-resolver-typescript directly in your ESLint flat config:

    Previously

    // eslint.config.js
    module.exports = {
      settings: {
        'import-x/resolver': {
          typescript: {
            alwaysTryTypes: true,
          },
          // or
          require.resolve('eslint-import-resolver-typescript'):
            alwaysTryTypes: true,
          }
        }
      }
    }

    Now

    // eslint.config.js
    const {
      createTypeScriptImportResolver,
    } = require('eslint-import-resolver-typescript')
    
    module.exports = {
      settings: {
        'import-x/resolver-next': [
          createTypeScriptImportResolver({
            alwaysTryTypes: true,
          }),
        ],
      },
    }

    Note that this only works with eslint-plugin-import-x@>=4.5.0. You can't use createTypeScriptImportResolver with the older versions of eslint-plugin-import-x or any existing versions of eslint-plugin-import.

3.6.3

Patch Changes

3.6.2

Patch Changes

3.6.1

Patch Changes

3.6.0

Minor Changes

3.5.5

Patch Changes

3.5.4

Patch Changes

3.5.3

Patch Changes

  • #206 6531bad Thanks @marvinhagemeister! - Only try to resolve a module directory when we know that the path is a directory. This can lead to a 15% speedup on projects with many files.

3.5.2

Patch Changes

3.5.1

Patch Changes

3.5.0

Minor Changes

Patch Changes

3.4.2

Patch Changes

3.4.1

Patch Changes

3.4.0

Minor Changes

3.3.0

Minor Changes

  • #154 42f2dd6 Thanks @JounQin! - feat: add externsionAlias option support, .d.([cm]?ts|tsx) are always preferred than .([cm]?js|jsx)

    typescript resolves typescript/lib/typescript.d.ts instead of typescript/lib/typescript.js by default

  • #154 42f2dd6 Thanks @JounQin! - feat: exports globSync, defaultExtensions, defaultMainFields, defaultConditionNames and defaultExtensionAlias for reusing

Patch Changes

3.2.7

Patch Changes

3.2.6

Patch Changes

3.2.5

Patch Changes

3.2.4

Patch Changes

3.2.3

Patch Changes

3.2.2

Patch Changes

3.2.1

Patch Changes

3.2.0

Minor Changes

3.1.5

Patch Changes

3.1.4

Patch Changes

3.1.3

Patch Changes

3.1.2

Patch Changes

3.1.1 (2022-06-27)

Bug Fixes

3.1.0 (2022-06-25)

⚠ BREAKING CHANGES

  • use enhanced-resolve instead

Features

  • support angular-package-format out of box (7e0cd04)
  • use enhanced-resolve instead (39ab8b1), closes #85 #107

3.0.0 (2022-06-25)

⚠ BREAKING CHANGES

  • remove depracated directory option
  • use get-tsconfig to replace tsconfig-paths
  • bump globby, use synckit for sync fn
  • deps: bump tsconfig-paths to ^4.0.0 (#104)

Features

  • bump globby, use synckit for sync fn (322cb29)

  • ignore node_modules folder in projects option glob (#105) (1e1b5a6)

  • remove depracated directory option (67c8d59)

  • use get-tsconfig to replace tsconfig-paths (78a08e0)

  • deps: bump tsconfig-paths to ^4.0.0 (#104) (b2edbc8)

2.7.1 (2022-04-03)

Bug Fixes

2.7.0 (2022-03-23)

Features

  • support .cjs .mjs .cts .mts extensions (#84) (1e39028)

2.6.0 (2022-03-23)

Bug Fixes

2.5.0 (2021-09-13)

Features

  • allow passing through custom options to resolve (#79) (34c94c8)

Bug Fixes

  • bump (dev)Dependencies, apply stricter rules (#75) (866f32f)

2.4.0 (2021-02-16)

Features

  • remove any querystring from imports (#67) (82ef357)

Bug Fixes

  • remove .tsbuildinfo and d.ts.map files from package (#57) (15f2849)
  • remove redundant condition (#69) (ba62e65)

2.3.0 (2020-09-01)

Features

  • import with .js and .jsx file extensions (#56) (5340f96)

2.2.1 (2020-08-14)

Bug Fixes

  • replace postintall with prepare - fix #54 (f3ffd16)

2.2.0 (2020-07-30)

Features

  • rename option directory to project - close #23 (a662fc1)

2.1.0 (2020-07-30)

Bug Fixes

2.0.0 (2019-10-17)

Features

  • add alwaysTryTypes option, add tests (fe0aa6f)
  • replace glob with tiny-glob for faster speed, close #12 (f436627)
  • replace glob with tiny-glob for faster speed, close #12 (#13) (5f87698)
  • resolve .ts/.tsx/.d.ts first, and then fallback to @types/* (b11ede3)
  • support scoped packages from DefinitelyTyped (b4e72a5)
  • use types/typings/module first to use .d.ts whenever possible (74de3d9)

Bug Fixes

  • add pretest script which is required (1ffcd83)
  • deps: bump configurations, use resolutions to simplify tests (5eb4874)
  • only check alwaysTryTypes if foundNodePath is null (23e2e8c)