Skip to content

Latest commit

 

History

History
471 lines (262 loc) · 30.1 KB

CHANGELOG.md

File metadata and controls

471 lines (262 loc) · 30.1 KB

Changelog

4.2.2

Patch Changes

  • #397 14a7688 Thanks @JounQin! - chore: bump rspack-resolver for better P'n'P support

    Now rspack-resolver resolves pnpapi natively.

4.2.1

Patch Changes

4.2.0

Minor Changes

  • #391 c8121e5 Thanks @JounQin! - feat: make is-bun-module as optional peer dependency

    Technically this is a BREAKING CHANGE, but considering we just raise out v4 recently and this only affects bun users, bun --bun eslint even works without this dependency, so I'd consider this as a minor change.

    So for bun users, there are three options:

    1. install is-bun-module dependency manually and use bun: true option
    2. run eslint with bun --bun eslint w/o bun: true option
    3. enable run#bun in bunfig.toml w/o bun: true option

4.1.1

Patch Changes

  • #389 1b97d8a Thanks @JounQin! - fix: should prefer module.isBuiltin when process.versions.bun available

4.1.0

Minor Changes

  • #387 ef5cd10 Thanks @JounQin! - feat: add a new bun?: boolean option for bun users - close #386

    process.versions.bun is unavailable even with bun eslint due to its own design, but checking bun modules for non-bun users is incorrect behavior and just wasting time, so a new option is added for such case, you can still run with bun --bun eslint without this option enabled

4.0.0

Major Changes

  • #368 2fd7c2e Thanks @JounQin! - feat!: rewrite, speed up by using rspack-resolver which supports references natively under the hood

    BREAKING CHANGES:

    • drop Node 14 support, Node ^16.17.0 || >=18.6 is now required
    • alwaysTryTypes is enabled by default, you can set it as false to opt-out
    • array type of project is discouraged but still supported, single project with references are encouraged for better performance, you can enable noWarnOnMultipleProjects option to supress the warning message
    • root tsconfig.json or jsconfig.json will be used automatically if no project provided

3.9.1

Patch Changes

3.9.0

Minor Changes

3.8.7

Patch Changes

3.8.6

Patch Changes

  • #374 c9d5ab0 Thanks @JounQin! - fix: add support for importing with .js extension as tsx importee

3.8.5

Patch Changes

  • #372 366eeaf Thanks @carlocorradini! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.

3.8.4

Patch Changes

3.8.3

Patch Changes

3.8.2

Patch Changes

3.8.1

Patch Changes

3.8.0

Minor Changes

  • #345 fcc8883 Thanks @carlocorradini! - Enable the mapper function just for a set of allowed files. Improves project discovery using glob and POSIX separator.

  • #346 c124e87 Thanks @carlocorradini! - Update get-tsconfig to the the latest version. We now support the ${configDir} variable, introduced in TypeScript 5.5.

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)