UNPKG

8.73 kBMarkdownView Raw
1# Change Log
2All notable changes to this module will be documented in this file.
3This project adheres to [Semantic Versioning](https://semver.org/).
4This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com).
5
6## Unreleased
7
8## v2.12.0 - 2024-09-26
9
10### Added
11- `hash`: add support for hashing functions ([#3072], thanks [@michaelfaith])
12
13## v2.11.1 - 2024-09-23
14
15### Fixed
16- `parse`: remove unneeded extra backticks ([#3057], thanks [@G-Rath])
17- `parse`: espree parser isn't working with flat config ([#3061], thanks [@michaelfaith])
18- `parse`: add `ecmaVersion` and `sourceType` to `parserOptions` ([#3061], thanks [@michaelfaith])
19
20## v2.11.0 - 2024-09-05
21
22### New
23- `declaredScope`: take a `node` for modern eslint versions (thanks [@michaelfaith])
24
25## v2.10.0 - 2024-09-05
26
27### New
28- add context compatibility helpers ([#3049], thanks [@michaelfaith])
29
30## v2.9.0 - 2024-09-02
31
32### New
33- add support for Flat Config ([#3018], thanks [@michaelfaith])
34
35## v2.8.2 - 2024-08-25
36
37### Fixed
38- `parse`: also delete `parserOptions.projectService` ([#3039], thanks [@Mysak0CZ])
39
40### Changed
41- [types] use shared config (thanks [@ljharb])
42- [meta] add `exports`, `main`
43- [meta] add `repository.directory` field
44- [refactor] avoid hoisting
45
46## v2.8.1 - 2024-02-26
47
48### Fixed
49- `parse`: also delete `parserOptions.EXPERIMENTAL_useProjectService` ([#2963], thanks [@JoshuaKGoldberg])
50
51### Changed
52- add types (thanks [@ljharb])
53
54## v2.8.0 - 2023-04-14
55
56### New
57- `parse`: support flat config ([#2714], thanks [@DMartens])
58
59### Fixed
60- Improve performance of `fullResolve` for large projects ([#2755], thanks [@leipert])
61
62## v2.7.4 - 2022-08-11
63
64### Fixed
65- [Fix] Ignore hashbang and BOM while parsing ([#2431], thanks [@silverwind])
66
67### Changed
68- [patch] mark eslint as an optional peer dep ([#2523], thanks [@wmertens])
69
70## v2.7.3 - 2022-01-26
71
72### Fixed
73- `parse`: restore compatibility by making the return value `ast` again ([#2350], thanks [@ljharb])
74
75## v2.7.2 - 2022-01-01
76
77### Fixed
78- [patch] Fix `@babel/eslint-parser` 8 compatibility ([#2343], thanks [@nicolo-ribaudo])
79
80### Changed
81- [Refactor] inline `pkgDir` implementation; remove `pkg-dir`
82
83## v2.7.1 - 2021-10-13
84
85### Fixed
86- fixed SyntaxError in node <= 6: Unexpected token ) in parse.js ([#2261], thanks [@VitusFW])
87
88## v2.7.0 - 2021-10-11
89
90### Added
91- `fileExistsWithCaseSync`: add `strict` argument ([#1262], thanks [@sergei-startsev])
92- add `visit`, to support dynamic imports ([#1660], [#2212], thanks [@maxkomarychev], [@aladdin-add], [@Hypnosphi])
93- create internal replacement for `pkg-up` and `read-pkg-up` ([#2047], [@mgwalker])
94
95## v2.6.2 - 2021-08-08
96
97### Fixed
98- Use `context.getPhysicalFilename()` when available (ESLint 7.28+) ([#2160], thanks [@pmcelhaney])
99
100## v2.6.1 - 2021-05-13
101
102### Fixed
103- `no-unresolved`: check `import()` ([#2026], thanks [@aladdin-add])
104- Add fix for Windows Subsystem for Linux ([#1786], thanks [@manuth])
105
106### Changed
107- [deps] update `debug`
108- [Refactor] use `Array.isArray` instead of `instanceof Array`
109
110## v2.6.0 - 2020-03-28
111
112### Added
113- Print more helpful info if parsing fails ([#1671], thanks [@kaiyoma])
114
115## v2.5.2 - 2020-01-12
116
117### Fixed
118- Makes the loader resolution more tolerant ([#1606], thanks [@arcanis])
119- Use `createRequire` instead of `createRequireFromPath` if available ([#1602], thanks [@iamnapo])
120
121## v2.5.1 - 2020-01-11
122
123### Fixed
124- Uses createRequireFromPath to resolve loaders ([#1591], thanks [@arcanis])
125- report the error stack on a resolution error ([#599], thanks [@sompylasar])
126
127## v2.5.0 - 2019-12-07
128
129### Added
130- support `parseForESLint` from custom parser ([#1435], thanks [@JounQin])
131
132### Changed
133 - Avoid superfluous calls and code ([#1551], thanks [@brettz9])
134
135## v2.4.1 - 2019-07-19
136
137### Fixed
138 - Improve parse perf when using `@typescript-eslint/parser` ([#1409], thanks [@bradzacher])
139 - Improve support for TypeScript declare structures ([#1356], thanks [@christophercurrie])
140
141## v2.4.0 - 2019-04-13
142
143### Added
144 - no-useless-path-segments: Add noUselessIndex option ([#1290], thanks [@timkraut])
145
146### Fixed
147 - Fix overwriting of dynamic import() CallExpression ([`no-cycle`], [`no-relative-parent-import`], [`no-unresolved`], [`no-useless-path-segments`]) ([#1218], [#1166], [#1035], thanks [@vikr01])
148
149
150## v2.3.0 - 2019-01-22
151### Fixed
152- use `process.hrtime()` for cache dates ([#1160], thanks [@hulkish])
153
154## v2.2.0 - 2018-03-29
155### Changed
156- `parse`: attach node locations by default.
157- `moduleVisitor`: visitor now gets the full `import` statement node as a second
158 argument, so rules may report against the full statement / `require` call instead
159 of only the string literal node.
160
161## v2.1.1 - 2017-06-22
162
163Re-releasing v2.1.0 after vetting (again) and unable to reproduce issue.
164
165
166## v2.1.0 - 2017-06-02 [YANKED]
167
168Yanked due to critical issue with cache key resulting from #839.
169
170### Added
171- `parse` now additionally passes `filePath` to `parser` in `parserOptions` like `eslint` core does
172
173## v2.0.0 - 2016-11-07
174### Changed
175- `unambiguous` no longer exposes fast test regex
176
177### Fixed
178- `unambiguous.test()` regex is now properly in multiline mode
179
180[#3072]: https://github.com/import-js/eslint-plugin-import/pull/3072
181[#3061]: https://github.com/import-js/eslint-plugin-import/pull/3061
182[#3057]: https://github.com/import-js/eslint-plugin-import/pull/3057
183[#3049]: https://github.com/import-js/eslint-plugin-import/pull/3049
184[#3039]: https://github.com/import-js/eslint-plugin-import/pull/3039
185[#3018]: https://github.com/import-js/eslint-plugin-import/pull/3018
186[#2963]: https://github.com/import-js/eslint-plugin-import/pull/2963
187[#2755]: https://github.com/import-js/eslint-plugin-import/pull/2755
188[#2714]: https://github.com/import-js/eslint-plugin-import/pull/2714
189[#2523]: https://github.com/import-js/eslint-plugin-import/pull/2523
190[#2431]: https://github.com/import-js/eslint-plugin-import/pull/2431
191[#2350]: https://github.com/import-js/eslint-plugin-import/issues/2350
192[#2343]: https://github.com/import-js/eslint-plugin-import/pull/2343
193[#2261]: https://github.com/import-js/eslint-plugin-import/pull/2261
194[#2212]: https://github.com/import-js/eslint-plugin-import/pull/2212
195[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160
196[#2047]: https://github.com/import-js/eslint-plugin-import/pull/2047
197[#2026]: https://github.com/import-js/eslint-plugin-import/pull/2026
198[#1786]: https://github.com/import-js/eslint-plugin-import/pull/1786
199[#1671]: https://github.com/import-js/eslint-plugin-import/pull/1671
200[#1660]: https://github.com/import-js/eslint-plugin-import/pull/1660
201[#1606]: https://github.com/import-js/eslint-plugin-import/pull/1606
202[#1602]: https://github.com/import-js/eslint-plugin-import/pull/1602
203[#1591]: https://github.com/import-js/eslint-plugin-import/pull/1591
204[#1551]: https://github.com/import-js/eslint-plugin-import/pull/1551
205[#1435]: https://github.com/import-js/eslint-plugin-import/pull/1435
206[#1409]: https://github.com/import-js/eslint-plugin-import/pull/1409
207[#1356]: https://github.com/import-js/eslint-plugin-import/pull/1356
208[#1290]: https://github.com/import-js/eslint-plugin-import/pull/1290
209[#1262]: https://github.com/import-js/eslint-plugin-import/pull/1262
210[#1218]: https://github.com/import-js/eslint-plugin-import/pull/1218
211[#1166]: https://github.com/import-js/eslint-plugin-import/issues/1166
212[#1160]: https://github.com/import-js/eslint-plugin-import/pull/1160
213[#1035]: https://github.com/import-js/eslint-plugin-import/issues/1035
214[#599]: https://github.com/import-js/eslint-plugin-import/pull/599
215
216[@aladdin-add]: https://github.com/aladdin-add
217[@arcanis]: https://github.com/arcanis
218[@bradzacher]: https://github.com/bradzacher
219[@brettz9]: https://github.com/brettz9
220[@christophercurrie]: https://github.com/christophercurrie
221[@DMartens]: https://github.com/DMartens
222[@G-Rath]: https://github.com/G-Rath
223[@hulkish]: https://github.com/hulkish
224[@Hypnosphi]: https://github.com/Hypnosphi
225[@iamnapo]: https://github.com/iamnapo
226[@JoshuaKGoldberg]: https://github.com/JoshuaKGoldberg
227[@JounQin]: https://github.com/JounQin
228[@kaiyoma]: https://github.com/kaiyoma
229[@leipert]: https://github.com/leipert
230[@manuth]: https://github.com/manuth
231[@maxkomarychev]: https://github.com/maxkomarychev
232[@mgwalker]: https://github.com/mgwalker
233[@michaelfaith]: https://github.com/michaelfaith
234[@Mysak0CZ]: https://github.com/Mysak0CZ
235[@nicolo-ribaudo]: https://github.com/nicolo-ribaudo
236[@pmcelhaney]: https://github.com/pmcelhaney
237[@sergei-startsev]: https://github.com/sergei-startsev
238[@sompylasar]: https://github.com/sompylasar
239[@timkraut]: https://github.com/timkraut
240[@vikr01]: https://github.com/vikr01
241[@VitusFW]: https://github.com/VitusFW
242[@wmertens]: https://github.com/wmertens
243
\No newline at end of file