Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

CHANGELOG.md

243 lines6.5 KB

1# @tanstack/eslint-plugin-query
2​
3## 5.106.1
4​
5No changes in this release.
6​
7## 5.106.0
8​
9No changes in this release.
10​
11## 5.105.3
12​
13No changes in this release.
14​
15## 5.105.2
16​
17No changes in this release.
18​
19## 5.105.1
20​
21### Patch Changes
22​
23- [#12409](https://github.com/TanStack/query/pull/12409) [`ec19101`](https://github.com/TanStack/query/commit/ec1910188588b182394a589313678714bc6a1798) - Fix stable-query-client detection for arrow functions, function expressions, and clients created directly in JSX. Keep state initializers and nested helper functions valid.
24​
25## 5.105.0
26​
27No changes in this release.
28​
29## 5.104.5
30​
31No changes in this release.
32​
33## 5.104.4
34​
35### Patch Changes
36​
37- [#12044](https://github.com/TanStack/query/pull/12044) [`a5f1b09`](https://github.com/TanStack/query/commit/a5f1b092bb7b733b85f50575b93e2e3b1db3d09c) - refactor(eslint-plugin-query/exhaustive-deps): remove the unused `fixable` from the rule metadata, as the rule only provides suggestions
38​
39- [#11889](https://github.com/TanStack/query/pull/11889) [`1cf6eb4`](https://github.com/TanStack/query/commit/1cf6eb4e9e3f5ce8937d6f0313c8b822812c7a00) - Detect unstable query dependencies in aliased React hooks imported from `react`.
40​
41## 5.104.3
42​
43No changes in this release.
44​
45## 5.104.2
46​
47No changes in this release.
48​
49## 5.104.1
50​
51No changes in this release.
52​
53## 5.104.0
54​
55### Minor Changes
56​
57- [#11650](https://github.com/TanStack/query/pull/11650) [`5279b05`](https://github.com/TanStack/query/commit/5279b05211223dd719803ca22a9d1fa46c98638e) - Build projects with Vite 8
58​
59## 5.103.3
60​
61No changes in this release.
62​
63## 5.103.2
64​
65## 5.103.1
66​
67## 5.103.0
68​
69## 5.102.8
70​
71## 5.102.7
72​
73## 5.102.6
74​
75## 5.102.5
76​
77## 5.102.4
78​
79## 5.102.3
80​
81## 5.102.2
82​
83## 5.102.1
84​
85## 5.102.0
86​
87### Patch Changes
88​
89- [#11212](https://github.com/TanStack/query/pull/11212) [`279bb55`](https://github.com/TanStack/query/commit/279bb5508b81ce0d88b8f0f72441d96abf7ca03c) - TypeScript 7 compatibility
90​
91- [#11188](https://github.com/TanStack/query/pull/11188) [`3bc8edf`](https://github.com/TanStack/query/commit/3bc8edfa0199e6467458084e8802a99bce11b958) - Fix false-positive warnings in `no-unstable-deps` rule caused by `Object.prototype` property lookups (`toString`, `valueOf`, etc.).
92​
93- [#11115](https://github.com/TanStack/query/pull/11115) [`8582702`](https://github.com/TanStack/query/commit/858270215247d1dbdbe9d9a00068b4ffa5218da6) - Remove unused helper functions from the internal `ASTUtils` object (`getNestedIdentifiers`, `getNestedReturnStatements`, `getClosestVariableDeclarator`, `mapKeyNodeToText`, and `mapKeyNodeToBaseText`). They were not referenced by any rule and are not part of the public API.
94​
95## 5.101.4
96​
97### Patch Changes
98​
99- [#11067](https://github.com/TanStack/query/pull/11067) [`7ac45ed`](https://github.com/TanStack/query/commit/7ac45ed45cbc28a54ac2fcfb1faccfcd87fb7b75) - Relax `exhaustive-deps` so function call targets are not required in query keys while values referenced in nested callbacks are still checked.
100​
101## 5.101.3
102​
103## 5.101.2
104​
105## 5.101.1
106​
107## 5.101.0
108​
109### Minor Changes
110​
111- [#10775](https://github.com/TanStack/query/pull/10775) [`dc54932`](https://github.com/TanStack/query/commit/dc549328642e3d5b7417c0ad070d9fbf38c195a4) - `no-rest-destructuring` now also flags rest destructuring on custom hooks that return a TanStack Query result. Detection uses the TypeScript type checker and runs only when typed linting is enabled, so untyped projects are unaffected. Closes [#8951](https://github.com/TanStack/query/issues/8951).
112​
113## 5.100.14
114​
115## 5.100.13
116​
117## 5.100.12
118​
119### Patch Changes
120​
121- fix(no-unstable-deps): handle array-destructured useQueries and useSuspenseQueries results ([#10747](https://github.com/TanStack/query/pull/10747))
122​
123- Fix `no-unstable-deps` false positives for `useSuspenseQueries` results returned from `combine`. ([#10642](https://github.com/TanStack/query/pull/10642))
124​
125## 5.100.11
126​
127## 5.100.10
128​
129## 5.100.9
130​
131## 5.100.8
132​
133## 5.100.7
134​
135## 5.100.6
136​
137## 5.100.5
138​
139## 5.100.4
140​
141## 5.100.3
142​
143## 5.100.2
144​
145## 5.100.1
146​
147## 5.100.0
148​
149## 5.99.2
150​
151## 5.99.1
152​
153### Patch Changes
154​
155- fix(eslint-plugin-query): fix `no-void-query-fn` false positive on enum returns for typescript 6. ([#10460](https://github.com/TanStack/query/pull/10460))
156​
157## 5.99.0
158​
159## 5.98.0
160​
161## 5.97.0
162​
163### Minor Changes
164​
165- feat(eslint): support eslint v10 and typescript v6 ([#10182](https://github.com/TanStack/query/pull/10182))
166​
167## 5.96.2
168​
169### Patch Changes
170​
171- fix(eslint-plugin): normalize whitespace in allowList variable matching for multiline expressions ([#10337](https://github.com/TanStack/query/pull/10337))
172​
173## 5.96.1
174​
175## 5.96.0
176​
177### Minor Changes
178​
179- Add `prefer-query-options` rule and `recommendedStrict` config ([#10359](https://github.com/TanStack/query/pull/10359))
180​
181## 5.95.2
182​
183## 5.95.1
184​
185## 5.95.0
186​
187### Minor Changes
188​
189- BREAKING (eslint-plugin): The `exhaustive-deps` rule now reports member expression dependencies more granularly for call expressions (e.g. `a.b.foo()` suggests `a.b`), which may cause existing code that previously passed the rule to now report missing dependencies. To accommodate stable variables and types, the rule now accepts an `allowlist` option with `variables` and `types` arrays to exclude specific dependencies from enforcement. ([#10295](https://github.com/TanStack/query/pull/10295))
190​
191## 5.94.5
192​
193### Patch Changes
194​
195- fix(\*): resolve issue about excluded build directory ([#10312](https://github.com/TanStack/query/pull/10312))
196​
197## 5.94.4
198​
199### Patch Changes
200​
201- chore: fixed version ([#10064](https://github.com/TanStack/query/pull/10064))
202​
203## 5.91.5
204​
205### Patch Changes
206​
207- Fix `exhaustive-deps` to detect dependencies used inside nested `queryFn` callbacks/control flow, and avoid false positives when those dependencies are already present in complex `queryKey` expressions. ([#10258](https://github.com/TanStack/query/pull/10258))
208​
209## 5.91.4
210​
211### Patch Changes
212​
213- fix(eslint-plugin-query): declare typescript as optional peer dependency ([#10007](https://github.com/TanStack/query/pull/10007))
214​
215## 5.91.3
216​
217### Patch Changes
218​
219- exhaustive-deps rule fixed for vue files ([#10011](https://github.com/TanStack/query/pull/10011))
220​
221## 5.91.2
222​
223### Patch Changes
224​
225- fix: allow useQueries with combine property in no-unstable-deps rule ([#9720](https://github.com/TanStack/query/pull/9720))
226​
227## 5.91.1
228​
229### Patch Changes
230​
231- avoid typescript import in no-void-query-fn rule ([#9759](https://github.com/TanStack/query/pull/9759))
232​
233## 5.91.0
234​
235### Minor Changes
236​
237- feat: improve type of exported plugin ([#9700](https://github.com/TanStack/query/pull/9700))
238​
239## 5.90.2
240​
241### Patch Changes
242​
243- fix: exhaustive-deps with variables and type assertions ([#9687](https://github.com/TanStack/query/pull/9687))