-
#397
14a7688
Thanks @JounQin! - chore: bumprspack-resolver
for better P'n'P supportNow
rspack-resolver
resolvespnpapi
natively.
-
#394
9f11f6b
Thanks @JounQin! - fix: don't set emptyconfigFile
when notsconfig
found -
#394
9f11f6b
Thanks @JounQin! - chore: bumprspack-resolver
to v1.2.0
-
#391
c8121e5
Thanks @JounQin! - feat: makeis-bun-module
as optional peer dependencyTechnically 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:- install
is-bun-module
dependency manually and usebun: true
option - run
eslint
withbun --bun eslint
w/obun: true
option - enable
run#bun
inbunfig.toml
w/obun: true
option
- install
- #389
1b97d8a
Thanks @JounQin! - fix: should prefermodule.isBuiltin
whenprocess.versions.bun
available
-
#387
ef5cd10
Thanks @JounQin! - feat: add a newbun?: boolean
option forbun
users - close #386process.versions.bun
is unavailable even withbun eslint
due to its own design, but checkingbun
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 withbun --bun eslint
without this option enabled
-
#368
2fd7c2e
Thanks @JounQin! - feat!: rewrite, speed up by usingrspack-resolver
which supportsreferences
natively under the hoodBREAKING CHANGES:
- drop Node 14 support, Node
^16.17.0 || >=18.6
is now required alwaysTryTypes
is enabled by default, you can set it asfalse
to opt-out- array type of
project
is discouraged but still supported, singleproject
withreferences
are encouraged for better performance, you can enablenoWarnOnMultipleProjects
option to supress the warning message - root
tsconfig.json
orjsconfig.json
will be used automatically if noproject
provided
- drop Node 14 support, Node
- #382
4a9176e
Thanks @JounQin! - fix: userspack-resolver
fork for pnp support
- #377
a14fdd9
Thanks @carlocorradini! - fix: include mapper with no files and force non-dynamic projects to use absolute paths
- #372
366eeaf
Thanks @carlocorradini! - fix: if file has no corresponding mapper function, apply all of them, starting with the nearest one.
-
#360
8192976
Thanks @carlocorradini! - Force tiniglobby to expand dot directories -
#360
8192976
Thanks @carlocorradini! - Update tinyglobby to latest version
- #357
5fd349e
Thanks @carlocorradini! - Update thetinyglobby
to the latest version to solve performance regressions.
- #352
0c6303d
Thanks @carlocorradini! - Set cwd while resolving tsconfig include
-
#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.
-
#326
93ea130
Thanks @SukkaW! - This version has implemented theeslint-plugin-import-x
's v3 resolver interface. This allows you to use import/require to referenceeslint-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 usecreateTypeScriptImportResolver
with the older versions ofeslint-plugin-import-x
or any existing versions ofeslint-plugin-import
.
-
#305
f8d7b82
Thanks @SukkaW! - Fix resolve fornode:test
,node:sea
, andnode:sqlite
without sacrificing installation size -
#288
a4c6c78
Thanks @SunsetTechuila! - fix: ignore bun built-in modules
-
#294
10f9b17
Thanks @RobinTail! - Allow either eslint-plugin-import-x or eslint-plugin-import plugin as a peer dependency. -
#295
ff3d3c6
Thanks @wojtekmaj! - chore(deps): removeis-core-module
dependency
-
25f3920
Thanks @JounQin! - fix: enhanced-resolve is commonjs only - close #213 -
#219
0bf6ffb
Thanks @lsmurray! - fix: check if cwd changed to bust mapper cache
- #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.
-
#193
8756a26
Thanks @Rialgar! - chore(package): remove node 12 from engines field -
#187
7a91daf
Thanks @scott-ut! - fix: resolve modules if folder contains a package.json file
- #182
afeb928
Thanks @chenxinyanc! - perf: disablethrowIfNoEntry
on Node 14+
594df9c
Thanks @HanSeo0507! - chore(deps): update dependency synckit to ^0.8.3 for yarn PnP (#169)
- #166
8892a8c
Thanks @thatsmydoing! - perf: add filesystem caching support
-
#154
42f2dd6
Thanks @JounQin! - feat: addexternsionAlias
option support,.d.([cm]?ts|tsx)
are always preferred than.([cm]?js|jsx)
typescript
resolvestypescript/lib/typescript.d.ts
instead oftypescript/lib/typescript.js
by default -
#154
42f2dd6
Thanks @JounQin! - feat: exportsglobSync
,defaultExtensions
,defaultMainFields
,defaultConditionNames
anddefaultExtensionAlias
for reusing
-
#154
42f2dd6
Thanks @JounQin! - perf: cacheoptions
andresolver
-
#154
42f2dd6
Thanks @JounQin! - chore: align with Angular Package Format correctly -
#156
4bd60c3
Thanks @JounQin! - docs: document options fromenhanced-resolve
-
#128
56775b3
Thanks @JounQin! - refactor: support custom extensions on resolving -
#128
56775b3
Thanks @JounQin! - feat: try extensionless file by default
3.1.1 (2022-06-27)
3.1.0 (2022-06-25)
- use enhanced-resolve instead
- support angular-package-format out of box (7e0cd04)
- use enhanced-resolve instead (39ab8b1), closes #85 #107
3.0.0 (2022-06-25)
- 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)
-
bump globby, use synckit for sync fn (322cb29)
-
ignore
node_modules
folder inprojects
option glob (#105) (1e1b5a6) -
remove depracated directory option (67c8d59)
-
use get-tsconfig to replace tsconfig-paths (78a08e0)
2.7.1 (2022-04-03)
2.7.0 (2022-03-23)
2.6.0 (2022-03-23)
2.5.0 (2021-09-13)
2.4.0 (2021-02-16)
- remove .tsbuildinfo and d.ts.map files from package (#57) (15f2849)
- remove redundant condition (#69) (ba62e65)
2.3.0 (2020-09-01)
2.2.1 (2020-08-14)
2.2.0 (2020-07-30)
2.1.0 (2020-07-30)
- options could be null - close #42 (81db8eb)
- typo (#40) (585509e)
- wrong path resolution in multiple eslintrc configurations (#51) (d563eeb), closes #50
2.0.0 (2019-10-17)
- 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)