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

CHANGELOG.md

213 lines5.9 KB

1# @tanstack/eslint-plugin-query
2​
3## 5.104.4
4​
5### Patch Changes
6​
7- [#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
8​
9- [#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`.
10​
11## 5.104.3
12​
13No changes in this release.
14​
15## 5.104.2
16​
17No changes in this release.
18​
19## 5.104.1
20​
21No changes in this release.
22​
23## 5.104.0
24​
25### Minor Changes
26​
27- [#11650](https://github.com/TanStack/query/pull/11650) [`5279b05`](https://github.com/TanStack/query/commit/5279b05211223dd719803ca22a9d1fa46c98638e) - Build projects with Vite 8
28​
29## 5.103.3
30​
31No changes in this release.
32​
33## 5.103.2
34​
35## 5.103.1
36​
37## 5.103.0
38​
39## 5.102.8
40​
41## 5.102.7
42​
43## 5.102.6
44​
45## 5.102.5
46​
47## 5.102.4
48​
49## 5.102.3
50​
51## 5.102.2
52​
53## 5.102.1
54​
55## 5.102.0
56​
57### Patch Changes
58​
59- [#11212](https://github.com/TanStack/query/pull/11212) [`279bb55`](https://github.com/TanStack/query/commit/279bb5508b81ce0d88b8f0f72441d96abf7ca03c) - TypeScript 7 compatibility
60​
61- [#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.).
62​
63- [#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.
64​
65## 5.101.4
66​
67### Patch Changes
68​
69- [#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.
70​
71## 5.101.3
72​
73## 5.101.2
74​
75## 5.101.1
76​
77## 5.101.0
78​
79### Minor Changes
80​
81- [#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).
82​
83## 5.100.14
84​
85## 5.100.13
86​
87## 5.100.12
88​
89### Patch Changes
90​
91- fix(no-unstable-deps): handle array-destructured useQueries and useSuspenseQueries results ([#10747](https://github.com/TanStack/query/pull/10747))
92​
93- Fix `no-unstable-deps` false positives for `useSuspenseQueries` results returned from `combine`. ([#10642](https://github.com/TanStack/query/pull/10642))
94​
95## 5.100.11
96​
97## 5.100.10
98​
99## 5.100.9
100​
101## 5.100.8
102​
103## 5.100.7
104​
105## 5.100.6
106​
107## 5.100.5
108​
109## 5.100.4
110​
111## 5.100.3
112​
113## 5.100.2
114​
115## 5.100.1
116​
117## 5.100.0
118​
119## 5.99.2
120​
121## 5.99.1
122​
123### Patch Changes
124​
125- 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))
126​
127## 5.99.0
128​
129## 5.98.0
130​
131## 5.97.0
132​
133### Minor Changes
134​
135- feat(eslint): support eslint v10 and typescript v6 ([#10182](https://github.com/TanStack/query/pull/10182))
136​
137## 5.96.2
138​
139### Patch Changes
140​
141- fix(eslint-plugin): normalize whitespace in allowList variable matching for multiline expressions ([#10337](https://github.com/TanStack/query/pull/10337))
142​
143## 5.96.1
144​
145## 5.96.0
146​
147### Minor Changes
148​
149- Add `prefer-query-options` rule and `recommendedStrict` config ([#10359](https://github.com/TanStack/query/pull/10359))
150​
151## 5.95.2
152​
153## 5.95.1
154​
155## 5.95.0
156​
157### Minor Changes
158​
159- 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))
160​
161## 5.94.5
162​
163### Patch Changes
164​
165- fix(\*): resolve issue about excluded build directory ([#10312](https://github.com/TanStack/query/pull/10312))
166​
167## 5.94.4
168​
169### Patch Changes
170​
171- chore: fixed version ([#10064](https://github.com/TanStack/query/pull/10064))
172​
173## 5.91.5
174​
175### Patch Changes
176​
177- 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))
178​
179## 5.91.4
180​
181### Patch Changes
182​
183- fix(eslint-plugin-query): declare typescript as optional peer dependency ([#10007](https://github.com/TanStack/query/pull/10007))
184​
185## 5.91.3
186​
187### Patch Changes
188​
189- exhaustive-deps rule fixed for vue files ([#10011](https://github.com/TanStack/query/pull/10011))
190​
191## 5.91.2
192​
193### Patch Changes
194​
195- fix: allow useQueries with combine property in no-unstable-deps rule ([#9720](https://github.com/TanStack/query/pull/9720))
196​
197## 5.91.1
198​
199### Patch Changes
200​
201- avoid typescript import in no-void-query-fn rule ([#9759](https://github.com/TanStack/query/pull/9759))
202​
203## 5.91.0
204​
205### Minor Changes
206​
207- feat: improve type of exported plugin ([#9700](https://github.com/TanStack/query/pull/9700))
208​
209## 5.90.2
210​
211### Patch Changes
212​
213- fix: exhaustive-deps with variables and type assertions ([#9687](https://github.com/TanStack/query/pull/9687))