@rozenite/tanstack-query-plugin 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/devtools/assets/{CXEL7IU7-BtfXID7a.js → CXEL7IU7-BR2RGu8x.js} +1 -1
  3. package/dist/devtools/assets/{tanstack-query-OfMbjvWS.js → tanstack-query-D-RXoFGF.js} +9 -9
  4. package/dist/devtools/tanstack-query.html +1 -1
  5. package/dist/react-native/chunks/useTanStackQueryDevTools.require.cjs +1 -1
  6. package/dist/react-native/chunks/useTanStackQueryDevTools.require.js +48 -94
  7. package/dist/rozenite.json +1 -1
  8. package/dist/sdk/index.js +17 -21
  9. package/package.json +28 -28
  10. package/src/react-native/agent/__tests__/tanstack-query-agent.test.ts +15 -38
  11. package/src/react-native/agent/tanstack-query-agent.ts +29 -96
  12. package/src/react-native/agent/useTanStackQueryAgentTools.ts +1 -4
  13. package/src/react-native/devtools-actions.ts +3 -10
  14. package/src/react-native/useHandleDevToolsMessages.ts +12 -16
  15. package/src/react-native/useHandleInitialData.ts +7 -0
  16. package/src/react-native/useSyncTanStackCache.ts +6 -21
  17. package/src/shared/agent-tools.ts +34 -66
  18. package/src/shared/dehydrate.ts +1 -3
  19. package/src/shared/hydrate.ts +11 -21
  20. package/src/shared/messaging.ts +8 -2
  21. package/src/shared/query-data-sync.test.ts +1 -5
  22. package/src/shared/query-data-sync.ts +8 -35
  23. package/src/shared/useSyncOnlineStatus.ts +4 -9
  24. package/src/ui/useHandleSyncMessages.ts +27 -35
  25. package/src/ui/useSyncDevToolsEvents.ts +4 -13
  26. package/src/ui/useSyncInitialData.test.tsx +76 -0
  27. package/src/ui/useSyncInitialData.ts +17 -4
  28. package/tsconfig.json +1 -3
  29. package/vite.config.ts +1 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @rozenite/tanstack-query-plugin
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`dffeda5`](https://github.com/callstackincubator/rozenite/commit/dffeda53c57f491a303108937d4b4ce68054226f), [`4f5fe74`](https://github.com/callstackincubator/rozenite/commit/4f5fe747ca0c6e93d0bf05076c7e2e2ad25fd744)]:
8
+ - @rozenite/agent-bridge@2.2.0
9
+ - @rozenite/plugin-bridge@2.2.0
10
+ - @rozenite/agent-shared@2.2.0
11
+
12
+ ## 2.1.0
13
+
14
+ ### Patch Changes
15
+
16
+ - [#392](https://github.com/callstackincubator/rozenite/pull/392) [`55e47d0`](https://github.com/callstackincubator/rozenite/commit/55e47d09f69e5c188ad1b864c5688242a4725d8e) Thanks [@V3RON](https://github.com/V3RON)! - Fix the TanStack Query panel staying empty after an app reload. The device now
17
+ announces itself once it is listening, so the panel pulls the cache again
18
+ instead of waiting forever on a request that was sent before the app finished
19
+ mounting.
20
+ - Updated dependencies []:
21
+ - @rozenite/agent-bridge@2.1.0
22
+ - @rozenite/agent-shared@2.1.0
23
+ - @rozenite/plugin-bridge@2.1.0
24
+
3
25
  ## 2.0.0
4
26
 
5
27
  ### Patch Changes