Lachlan Collins
ca6102b854
ci: Avoid uploading coverage files in Nx cache ( #6644 )
...
* ci: Avoid uploading coverage files in Nx cache
* Clean up config
2024-01-05 13:23:46 +11:00
Lachlan Collins
422cbed783
ci: Use publish function from @tanstack/config ( #6643 )
...
* ci: Use publish function from @tanstack/config
* Remove type-fest
2024-01-05 12:01:37 +11:00
Tanner Linsley
9028c7459b
release: v5.17.1
v5.17.1
2024-01-03 14:08:09 +00:00
Arnoud
07d40df1fa
fix(angular-query): add notifyManager to query and mutation ( #6633 )
2024-01-03 15:05:46 +01:00
Lachlan Collins
e6cb6df568
chore: Enable coverage and typecheck in vitest config ( #6624 )
...
* Better vitest config
* Update other packages
* Delete unused files
2024-01-01 09:49:17 +11:00
Tanner Linsley
ca6ad31c19
release: v5.17.0
v5.17.0
2023-12-31 12:31:29 +00:00
Nathan Huisman
3265ec3262
feat(notifyManager): setScheduler configuration ( #6600 )
...
* feat(notifyManager): add batch method configuration
add the method setBatchMethod on the notifyManager to configure the
batching method. Inspiration taken from redux[^redux]
[^redux]: https://redux-toolkit.js.org/api/autoBatchEnhancer#autobatchenhancer-1
* fix(notifyManager): remove scheduleMicrotask import for test:eslint
* fix(notifyManager): fix eslint (incorrectly) complaining
* feat(notifyManager): ability to add custom schedule function
* feat(examples/solid): demonstrate layout shift
* feat(notifyManager): add tests for setBatchMethod
* refactor(utils): remove unnecessary scheduleMicrotask
* feat(notifyManager): add docs
* fix(pnpm-lock.yaml): Revert accidentally updated lockfile
* fix: run prettier
* docs(notifyManager): add requestAnimationFrame mdn link
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix: revert pnpm-lock.yaml
* feat(notifyManager): simplify setBatchMethod interface, rename to setScheduler
* fix(solid-start-streaming): fix batch-methods example
* refactor: init scheduleFn when declaring it
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-31 13:25:02 +01:00
Lachlan Collins
50230c5626
chore: Update Nx caching inputs ( #6619 )
...
* chore: Update Nx caching inputs
* More descriptive CI task names
2023-12-31 09:42:33 +11:00
Lachlan Collins
a8d7bd2b85
chore: Update Node to latest v18 release for CI ( #6618 )
...
* Bump node to latest v18
* Only run CI on query repo
2023-12-31 09:22:38 +11:00
Jonghyeon Ko
4957e54d7b
chore(ci): update version of actions/setup-node ( #6616 )
2023-12-30 11:49:15 +01:00
Lachlan Collins
eb25c7b386
chore: Remove entries field from script config ( #6615 )
2023-12-30 14:20:14 +11:00
Tanner Linsley
d05817f64c
release: v5.16.1
v5.16.1
2023-12-30 02:55:10 +00:00
Michael Be
d6be91f0ad
refactor(angular-query): remove dependency to ngxtension ( #6558 )
...
* refactor(angular-query): remove dependency to ngxtension
* Update packages/angular-query-experimental/src/util/create-injection-token/create-injection-token.ts
Co-authored-by: Garrett Darnell <12160067+garrettld@users.noreply.github.com>
* attribution and remove unused code
* linting and formatting
* Knip fixes
---------
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
Co-authored-by: Garrett Darnell <12160067+garrettld@users.noreply.github.com>
2023-12-30 03:53:33 +01:00
Tanner Linsley
f6968e7d12
release: v5.16.0
v5.16.0
2023-12-30 00:09:44 +00:00
Arnoud
5e8c532752
feat(angular-query): split injectMutation signal ( #6598 )
...
Provides better development experience and finer grained reactivity
2023-12-30 01:03:59 +01:00
Tanner Linsley
9a240c5577
release: v5.15.5
v5.15.5
2023-12-29 23:10:59 +00:00
Dominik Dorfmeister
6ec6ee82b9
fix(queriesObserver): do not bail-out of calling setResult for empty queries ( #6614 )
...
* fix(core): make sure to call setResult before the early bail-out
The initial fix for #6369 (#6431 ) introduced a regression where we'd always call combine with an empty array initially.
Turns out it was actually on purpose that we didn't call combine in the constructor, but delayed that until the `setQueries` call - because there, we already have complete query result structures available
However, there is an optimization that bails out early without calling this.#setResult if "nothing changed"; however, if we call useQueries with an empty array, that means nothing every changes, and the #combinedResult is actually never set, leading to structural sharing never having anything to share with, thus yielding a new reference every time (this is the root issue for #6369 ).
This fix reverts those changes (to avoid calling combine with an empty array every time, thus fixing #6612 ) and makes sure #setResult is always invoked before bailing out, so that #combinedResult is set correctly even for this case
* fix: add a special length check to the bail-out case
we only want to stop bailing out if we have no queries; moving the #setResult call unconditionally before the bail-out leads to more re-renders for other useQueries calls
now, we only stop the bail-out when the special empty case sets in, which is what fixes #6612
2023-12-30 00:09:11 +01:00
Tanner Linsley
da38f64434
release: v5.15.4
v5.15.4
2023-12-29 21:43:28 +00:00
Dominik Dorfmeister
639c725bfd
fix(react): don't set options before suspending ( #6611 )
...
* fix(react): don't set options before suspending
setting options right before suspending is a side effect, and it has repercussions if used in transitions where the component stays mounted
to fix #6392 in a different way, we can't rely on `observer.getCurrentQuery()` when reading for error boundaries / suspense, because it can lag behind; instead, we can just read from the queryCache directly to get the latest values
* chore: fix prettier
* chore: test for 6486
2023-12-29 22:41:20 +01:00
Tanner Linsley
7f1f8e42b6
release: v5.15.3
v5.15.3
2023-12-29 10:27:23 +00:00
Lachlan Collins
2ed47791a8
fix(vue-query-devtools): Use vue-tsc to test types ( #6610 )
...
* Run vue-tsc for test:types
* Remove shims-vue
* Fix peerDependencies
2023-12-29 21:26:00 +11:00
이효범
9973e8d455
docs: Update QueryCache.md ( #6608 )
2023-12-29 11:05:20 +01:00
Alex Liu
a83c5a2b2b
docs: update examples for new version compatibility ( #6605 )
...
* docs: update examples for new version compatibility
* chore: format
2023-12-29 11:04:41 +01:00
Lachlan Collins
425aaf6680
chore: Ensure each package has Vite framework adapter ( #6609 )
...
* Add react plugin
* Add vue and solid plugins
* Add angular plugin
* Rename to vite.config.ts
* Angular can do whatever it wants
2023-12-29 20:49:16 +11:00
Lachlan Collins
ddf5539869
chore: Add type checking to integrations ( #6607 )
...
* Add TS to vue-vite integration
* Explicitly exclude examples
* Merge test:bundle into build
* Update gitignore
* Update codesandbox build step
* Wow npm is annoying
2023-12-29 08:29:31 +11:00
Tanner Linsley
9f2c1486c7
release: v5.15.2
v5.15.2
2023-12-26 23:24:28 +00:00
Arnoud
29770f8669
refactor(angular-query): generic signal proxy ( #6596 )
2023-12-27 00:22:58 +01:00
Lachlan Collins
f372cc1c27
docs: Run prettier on docs directory ( #6595 )
2023-12-27 08:04:23 +11:00
Tanner Linsley
747b392ff7
release: v5.15.1
v5.15.1
2023-12-26 14:52:51 +00:00
Arnoud
3b9e56360e
refactor(angular-query): kebab case file names per angular convention ( #6593 )
2023-12-26 15:48:08 +01:00
Tanner Linsley
bbe828c844
release: v5.15.0
v5.15.0
2023-12-26 09:36:35 +00:00
Lachlan Collins
45f61195b8
feat: Update to Vite v5 and Vitest v1 ( #6587 )
...
* Update angular dependencies
* Update to vite v5
* Update @sveltejs/vite-plugin-svelte
* Update vitest and vite-plugin-solid
* Fix vitest coverage config
* Fix react-query tests
* Update to solid-start 0.4.0
* Fix prettier
* Update solid and @solidjs/testing-library
* Fix solid start example name
* Add fix from #6590
* Fix vue-query test
* Fix second vue-query test
2023-12-26 20:29:56 +11:00
Lachlan Collins
3b6e37394a
chore(solid-query): Replace screen with rendered in tests ( #6589 )
...
* Replace screen with rendered
* Bump solid version
* Update @solidjs/testing-library
* Bumpto 0.8.5
2023-12-26 18:50:38 +11:00
Lachlan Collins
42362e48a8
chore: Fix coverage range and nested tests ( #6588 )
...
* Bump vite to 4.5.1
* Add coverage include field
* Fix nested tests
2023-12-26 17:55:27 +11:00
Tanner Linsley
b005d8c9b0
release: v5.14.7
v5.14.7
2023-12-25 13:30:04 +00:00
Lachlan Collins
499db1370d
fix: Update to tsup v8 ( #6585 )
...
* Update to tsup v8
* Update esbuild-plugin-file-path-extensions
2023-12-26 00:23:51 +11:00
Lachlan Collins
2d4637d937
chore: Enable prefer-workspace-packages ( #6584 )
2023-12-26 00:01:20 +11:00
Tanner Linsley
67f76b15b5
release: v5.14.6
v5.14.6
2023-12-23 16:04:39 +00:00
Arnoud
fdcdfdc68b
fix(angular-query): fix optimistic result ( #6575 )
2023-12-23 17:02:33 +01:00
Lachlan Collins
1340d590a2
chore: Update to Nx v17 ( #6581 )
...
* chore: Update to Nx v17
* Fix pnpm lockfile
2023-12-23 23:24:16 +11:00
Lachlan Collins
81cbf81f10
chore: Update dependencies ( #6580 )
...
* Update types and eslint
* Update more patch/minor deps
* Bump node and pnpm
* Undo next and node changes
* More updates
* Seems to work now
* Lock TS 5.2.2
* Bump ky
* Final bumps
* Remove duplicated type
* Update react-native example
* Remove @callstack/eslint-config
2023-12-23 23:07:58 +11:00
Lachlan Collins
50bf5ce366
chore: Update publint ( #6579 )
2023-12-23 19:24:30 +11:00
Tanner Linsley
fd330979c3
release: v5.14.5
v5.14.5
2023-12-21 15:06:16 +00:00
R. Dylan Walker
7579dc637e
fix(query-devtools): remove automatic inclusion of font cdn link ( #6573 )
2023-12-21 16:03:23 +01:00
Arnoud
1b4121a09f
chore(angular-query): add angular adapter to bug template ( #6572 )
2023-12-21 13:55:00 +01:00
Tanner Linsley
4c9fde9f69
release: v5.14.4
v5.14.4
2023-12-19 22:04:16 +00:00
Damian Osipiuk
723dfc71e5
fix(vue-query): fix select type inference ( #6562 )
2023-12-19 23:02:55 +01:00
Tanner Linsley
c3fab9337c
release: v5.14.3
v5.14.3
2023-12-19 21:42:16 +00:00
Damian Osipiuk
abb72baac3
fix(vue-query): ensure that invalidateQueries trigger queryFn with updated ref values ( #6561 )
2023-12-19 22:37:32 +01:00
Tanner Linsley
7a6173364b
release: v5.14.2
v5.14.2
2023-12-19 20:38:18 +00:00