* fix: handle optional and non-null chaining in exhaustive-deps
Fixed a false positive in the exhaustive-deps rule when using optional chaining and non-null assertions in query keys and functions.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Add types for QueryFilters which flow down to Query<> and QueryKey/DataTag types
* ci: apply automated fixes
* Add a type test
* ci: apply automated fixes
* Fix linting
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix(QueriesObserver): fix improper sorting in QueriesObserver's #findMatchingObservers method
This commit fixes a bug in the QueriesObserver's #findMatchingObservers. The bug is present when there are duplicate unsorted queries, for example, ['A', 'B', 'A']. The bug results in #findMatchingObservers to return the queries in sorted order, or ['A', 'A', 'B'], which results in a mismatch between Array<QueryObserverOptions> and Array<QueryObserverMatch>. This bug was introduced in 54995777af
* ci: apply automated fixes
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* chore: typescript 5.7
and run tests against ts 5.0 - 5.7
* chore: make eslint happy
* chore: type import issue
* chore: the type assertion is necessary for ts 5.4 and lower
* fix: write code so that it narrows in all ts versions
* fix: import assertion
* fix: angular examples stay at typescript 5.4
* Add JSON import attribute, update vue-tsc
* angular fixes
* Fix vue-tsc compatibility
---------
Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
* fix: handle external variable in queryFn without failure
Adjusted tests to ensure that the rule does not fail when a queryFn inside queryOptions contains a reference to an external variable. Also updated other tests to wrap query calls in a function component for consistency.
fix#8326
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* refactor(*): use noop
* refactor: separate noop and returnUndefined functions with type refinement
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com>
* refactor: optimize bundle size with type re-assertion
* fix: Prevent type error by overloading noop function
* fix: remove jsdoc
* fix
* revert
* revert at react-query and angular-query-experimental
---------
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>