Commit Graph

88 Commits

Author SHA1 Message Date
Lachlan Collins
69feefb5be ci: Add permissions for release workflow 2026-01-18 11:41:03 +11:00
Lachlan Collins
b42accaf7d ci: rename workflows 2026-01-17 09:35:26 +11:00
Lachlan Collins
a96402dd94 ci: fix v4 branch (#10048)
* Initial work

* Fix Nx

* Fix prettier and CSB

* Disable TUI
2026-01-17 09:31:12 +11:00
Gwansik Kim
06b6fb9093 feat(react-query): add react@19 as peerDeps (#9310)
* chore(react-query): update peer-deps for react19 in v4

* chore: update dependencies

* chore(react-query): add moduleNameMapper for React 18 compatibility in Jest config

* chore(react-query-devtools, react-query-persist-client): add moduleNameMapper

* chore: update jest config

* chore: update jest config

* chore: update jest

* test: update

* test: update

* test: update

* test: update

* test: update

* ci(test): update

* chore: update

* test(useQueries): enhance state assertions for React 18 and 19 compatibility

* test: useMutation test for any react version

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-10-17 01:06:53 +09:00
Kim YoungHoon
3ef06cfb83 fix(ci): resolve v4 CI timeout by disabling Nx Cloud distributed execution (#9623) 2025-09-06 11:10:45 +09:00
Jonghyeon Ko
eee4405f7f ci(v4): update test command in GitHub Actions workflow to use pnpm (#9524) 2025-08-24 16:12:55 +09:00
Jonghyeon Ko
b8868899c6 fix(react-query): correct type for onSuccess of useQuery (#9242)
* fix(react-query): correct type for `onSuccess` of `useQuery`

* chore: update

* chore: update

* ci: revert

* refactor(react-query): remove unused onSuccess, onError, and onSettled options from useSuspenseQuery

* chore: update

* refactor(react-query): reorganize tests for onSuccess and initialData in useQuery
2025-06-09 10:36:58 +02:00
Lachlan Collins
52f93a53d1 ci(v4): fix Nx commands 2025-05-31 22:59:51 +10:00
Lachlan Collins
4f93b86c6c fix(v4): ensure packages are built during CI (#9227)
* ci(v4): ensure packages are built during CI

* Fix prettier
2025-05-31 22:47:08 +10:00
GwanSik Kim
b7e50ad55d docs(suspensive-react-query): add content about queryOptions (#7678)
* docs(suspensive-react-query): add content about queryOptions

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>

* fix(ci): pnpm/action-setup@v4.0.0

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>

* fix(ci): update pnpm/action-setup version

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>

* fix(ci): update pnpm/action-setup version

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>

* docs(suspensive-react-query): update content about queryOptions

* docs(suspensive-react-query): update content about queryOptions

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>

---------

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>
2024-07-08 12:13:05 +10:00
Damian Osipiuk
77009ab276 chore: fix v4 publish script 2023-10-25 22:08:40 +02:00
Damian Osipiuk
01436d47cb chore: add v4 branch to ci.yaml 2023-10-25 15:23:13 +02:00
Dominik Dorfmeister
201735927f chore: prepare possibility to have rc releases 2023-09-03 10:56:32 +02:00
Jonghyeon Ko
792e0b2436 chore: update actions/setup-node@v3 in .github/workflows/* (#5744) 2023-07-31 12:46:57 +02:00
Lachlan Collins
14c7b1efdd chore: Merge more workspace changes from alpha (#5564) 2023-06-12 18:26:44 +10:00
Lachlan Collins
7226d5064a chore: Merge select workspace changes from alpha (#5563) 2023-06-12 17:55:04 +10:00
Lachlan Collins
6c3abf7cec chore: Update to pnpm v8 (#5476) 2023-05-27 13:54:37 +10:00
Zachary DeRose
373b5d5db5 chore: Adding DTE to the PR workflow (#5256)
* setting up pr workflow for dte

* fixing yml syntax error

* fixing more pr workflow errors

* fixing more pr workflow errors

* removing coverage upload step from agents

* starting the ci run

* making the test:build cacheable

* setting matrix down to 4 total agents

* rm NX_VERBOSE_LOGGING env var in workflow files

* rm option to skip nx cache

* testing with parallel option of 1

* adding affected base option

* busting cache

* adding root package.json as dep

* adding parallel=2 option and busting cache

* default parallel option and busting cache

* rm debris from cache-busting for time tests

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-28 11:06:38 +02:00
Zachary DeRose
55bdf7794b chore: switching to an affected strategy (#5215)
* switiching to an affected strategy

* updating base affected option for ci and ci-v3 workflows

* Update .github/workflows/ci-v3.yml

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* checking github context

* checking pnpm version

* fix?

* does not like main - let's use a sha then

* checking git head

* checking git in general

* fix????

* fix???????? pleeeease

* still in detatched head state

* try checking out the pr head sha?

* checking out pr branch

* checking githubref

* full gh ref

* dumping context again

* try to checkout head ref

* adding repo prop

* git logging

* trying with sha for base

* fixing other jobs

* fixing other jobs again

* reverting root specific projects to run many

* removing special stuff from build test

* testing affected

* reverting change

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 09:14:26 +02:00
Zachary DeRose
dbf452e99b chore: adding nx cloud access token to ci workflow files (#5213) 2023-04-01 10:50:07 +02:00
Zachary DeRose
2bab18520d chore: adding the nx-cloud task-runner (#5143)
* adding the nx-cloud task-runner

* empty commit to trigger ci with warm cache

* retrying after adding workspace to TanStack organization

* another empty commit...

* another empty commit...

* this is why I should never use the in-browser conflict resolver...

* another empty commit...

* another empty commit...

* Update packages/query-core/src/tests/hydration.test.tsx

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* rm console.log left in query core

* empty commit to trigger re-build

* updating nx cloud dependency

* empty commit to attempt to recreate unexpected cache miss

* gather hash data to check

* empty commit

* invalidating cache again

* removing old key and adding read-only key to source control

* empty commit

* updating build task

* adding rollup to cacheable operations

* fixing the project json file with better globs

* removing test:format and test:build as cacheable operations

* updating package scripts for better terminal logging

* removing comment left in

* bumping to latest cloud runner version

* updating pnpm-lock.yaml file

* adding skip-nx-cache to publish script

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-01 08:55:31 +02:00
Zachary DeRose
73e21ce7c3 chore: Add retries to cover flakiness in tests (#5140)
* adding in retries to cover flakiness in tests

* fixing workflow error

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-17 16:59:10 +01:00
Zachary DeRose
8e13afa259 chore: Local Task Caching for all Revelant tasks (#5134)
* caching added for eslint for packages

* project definition added for scripts project and test:eslint target

* adding task caching for test:types

* adding appropriate dependsOn and outputs to test:types

* updating test:react:17

* running many on test:ci for nx scripts

* adding output to test:types

* adding root project and format task

* adding caching for build and test:build

* fixing frozen lockfile error in ci

* fixing pnpm build to include the build of the eslin-plugin

* adding build for svelte-query as well

* parallelizing bundlewatch and validate pacakges script

* cleaning up a bit more

* moving build config to the root project
2023-03-17 08:49:50 +01:00
Zachary DeRose
fcb4170ec5 chore: turning off Nx daemon in CI (#5128) 2023-03-14 13:18:20 +01:00
Zachary DeRose
19a8e98bfe chore: test:lib task-caching w/ Nx (#5116)
* adding quick caching test

* reverting workflow change

* updating pr yml to test nx speed

* fixing yml on property

* fixing yml on property

* fixing target name

* upping to running4 in parallel

* upping to running 5 in parallel

* upping to running 6 in parallel

* upping to running 7 in parallel

* upping to running 8 in parallel

* upping to running 9 in parallel

* upping to running 10 in parallel

* opting for --parallel=5

* cleaning up nx.json

* revert touching of ci.yml file

* reverting on property of pr.yml file

* updating root pacakge.json test:lib command

* fixing frozen lockfile error in ci

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-14 09:03:20 +01:00
Damian Osipiuk
b974268bf2 docs: add adapter dropdown to issue template (#5108) 2023-03-10 16:22:14 +01:00
Dominik Dorfmeister
1ec2c14391 chore: extract package validation to an extra script (#5039)
* chore: extract package validation to an extra script

and run it during CI

* chore: add missing `build:types` script to solid-query
2023-02-26 17:37:04 +01:00
Dominik Dorfmeister
c807d91fe5 chore: releases should run on alpha/beta as well 2023-02-26 11:07:22 +01:00
Damian Osipiuk
02852dd6b3 chore: fix ci warnings (#4940) 2023-02-11 00:03:28 +01:00
Dominik Dorfmeister
7a62494628 chore: only run ci.yml on main branch
because we run a separate pr.yml for PRs and the previous check didn't really work
2023-01-30 09:11:47 +01:00
Dominik Dorfmeister
d37e64ec84 chore: upload code-coverage during build process
by decoupling test running from publishing; we now always run the tests when pushed to main
this should help us get a correct baseline
2023-01-30 08:52:22 +01:00
Dominik Dorfmeister
9c15b327df chore: fix ci-v3 2023-01-25 20:37:50 +01:00
Tanner Linsley
9a7f66f986 Update ci-v3.yml 2023-01-25 12:31:45 -07:00
Lachlan Collins
d5126828df chore: Restructure package scripts (#4779)
* Use rimraf for clean script

Supported on windows

* Restructure jest tests, types test, and building types

* Relative eslint and jest paths are not needed

Now works on windows too, and tested to make sure it doesn't break linux

* Run codemod tests from main jest.config.ts

--collectCoverage false breaks when passed in to the union of these

* Remove unused test:lib scripts

* Add prettier-plugin-svelte

* Call test:types in github workflow

* Add missing build:types to query-async-storage-persister

* Simplify build script

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-01-10 08:09:33 +01:00
Damian Osipiuk
46fae940e1 docs(vue-query): migrate vue-query docs (#4710)
* docs: vue guides

* docs: vue query docs part 2

* docs: vue-query docs part 3

* docs: vue-query docs part 4

* docs: vue-query api reference

* docs: vue-query examples

* docs: fix TanStack casing
2022-12-29 09:24:43 +01:00
henribru
e60e38ae0b docs: update some things referring to old react-query (#4557)
* docs: update some things referring to old react-query

* Update overview of other TanStack libraries

* Use query-core for downloads badge
2022-11-26 16:51:05 +01:00
Dominik Dorfmeister
52764b0d46 Update FUNDING.yml 2022-10-17 10:13:55 +02:00
Dominik Dorfmeister
4ae99561ca chore: improve CI (#4288)
* chore: get rit of rescript

* chore: solid-query doesn't need jscodeshift

* chore: move react dependencies to react packages

* chore: move react dependencies to react packages

* chore: add descriptions

* chore: remove special lint tsconfigs

we want to use the same tsconfigs for linting as for everything else

* chore: make all tests run in parallel with pnpm

* chore: chunk ci pipeline

* chore: move react specific test setup into react packages

* chore: remove jest configs from tsconfig.json

because they live outside of the root dir (src)

* chore: fix weird type errors in solid tests

* chore: fix running the lint task

* chore: run the typecheck task in parallel

* chore: add a clean task

* Revert "chore: run the typecheck task in parallel"

This reverts commit 53573f5b13.

* chore: no idea why this is errors

* chore: fix codecov upload

* chore: add runInBand

* Revert "chore: add runInBand"

This reverts commit 568e12c41b.

* chore: make jest tests temporarily exit with 0

so that we can test code-coverage

* chore: only run test jests

* Revert "chore: make jest tests temporarily exit with 0"

This reverts commit ad099006f8.

* chore: fix solid-query tests with a custom transform

* chore: use checkout v3

* chore: fix node-version for Test React 17 pipeline

* chore: fix watch mode

we cannot run jest:dev anymore because streaming watch mode to multiple packages is not a thing; you'd need to go into a separate package and watch those tests there
2022-10-12 13:34:01 +02:00
Dominik Dorfmeister
46ad29a571 feat(queryObserver): add isInitialLoading derived flag (#4244)
* feat(queryObserver): add isInitialLoading derived flag

this flag describes isLoading && isFetching and can be used to show a loading spinner for lazy or disabled queries

* chore(ci): fix caching

apparently, v3 has a fix: https://github.com/actions/setup-node/issues/543

* chore(ci): properly fix token issue

as described here: https://stackoverflow.com/questions/52015748/npm-failed-to-replace-env-in-config-npm-token

he extra warn output made the caching fail

* chore: fix bundlewatch glob

* docs: add a section about isInitialLoading to the migration guide
2022-09-30 08:32:10 +02:00
Dominik Dorfmeister
fec3daa381 chore(ci): fix yml syntax 2022-09-28 20:58:29 +02:00
Dominik Dorfmeister
c566c3c194 chore(ci): add quotes 2022-09-28 20:57:03 +02:00
Julius Marminge
d9478e000c chore(ci): filter out examples (#4239)
* filter out examples

* typo

* update docs and gitignore to account for pnpm switch
2022-09-28 20:53:23 +02:00
Dominik Dorfmeister
6c069660fc chore: remove cache folder
because postinstall errors with:

Error: Cache folder path is retrieved for pnpm but doesn't exist on disk
2022-09-28 20:50:53 +02:00
Dominik Dorfmeister
5a57af629b chore: fix release
okay but now for real
2022-09-28 18:34:57 +02:00
Dominik Dorfmeister
bba8a19bbf chore: fix release
by adding jsonfile as dependency and re-adding fetch-depth:0
2022-09-28 18:30:55 +02:00
Dominik Dorfmeister
6adaed533e chore: use pnpm to run cipublish 2022-09-28 18:15:56 +02:00
Dominik Dorfmeister
dce2815b95 refactor: switch from npm workspaces to pnpm
RELEASE_ALL

* chore(pnpm): update lockfile

* chore(pnpm): add pnpm

* chore(pnpm): get rid of private:true

which was only needed for yarn workspaces; also, remove the csb workaround, because it didn't work with private:true

* chore(pnpm): switch to workspace:* dependencies

because pnpm will replace them automatically during publish

* chore(pnpm): use ^ dependencies for examples

we will always get the latest version as there is no lockfile for them

* chore(pnpm): update publish script to use pnpm

this also means we don't need to update package.json at all because we use workspace dependencies now

* chore(pnpm): devtools need react-error-boundary

* chore(pnpm): replace lerna with pnpm

* chore(pnpm): use pnpm to install in CI

* chore(pnpm): fix install in ci

* chore(pnpm): fix yml syntax

* chore(pnpm): add jest-dom to react-query

* chore(pnpm): add jest-dom to types

* chore(pnpm): explicitly add jest-dom typings

* chore(pnpm): revert jest-com changes

* chore(pnpm): ok prettier, whatever

* chore(pnpm): go to pnpm v7

* chore(pnpm): use stricter node version

* chore(pnpm): oh boy

* chore(pnpm): remove engines

because codesandbox-ci has a different version

* chore(pnpm): restore updating version in publish script

* chore(pnpm): filter pnpm scripts and installs down to ./packages

so that we exclude examples

* chore(pnpm): remove filtering from installs

as it doesn't install top-level dependencies; also, --frozen-lockfile is the default for CI environments
2022-09-28 18:07:37 +02:00
Dominik Dorfmeister
213a85fec5 chore: fix release script (#4053)
* chore: remove testing from ci-publish pipeline

because the cipublish script does it internally, so we have been doing twice the tests now

* chore: fix release script

any change in package should result in a package release - not just the `src` directory

* fix: publish script

the Package that's defined in config does not have dependencies / peerDependencies, so we need to iterate over the object we find package.json
2022-08-18 21:42:33 +02:00
Damian Osipiuk
1d9c2120ce chore: allow to dispatch publish with tag override (#4014) 2022-08-10 08:58:37 +02:00
Dominik Dorfmeister
9537fe961c chore: speedup pr runs in ci (#3864)
only run compile, lint and prettier checks once; tests still run twice against react17
2022-07-19 16:26:43 +02:00