@tanstack/react-start 1.168.13 → 1.168.14

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.
@@ -1,5 +1,5 @@
1
1
  export { useServerFn } from './useServerFn.js';
2
2
  export * from '@tanstack/start-client-core';
3
3
  export { createClientOnlyFn, createCsrfMiddleware, createIsomorphicFn, createMiddleware, createServerFn, createServerOnlyFn, createStart, } from '@tanstack/start-client-core';
4
- export { Hydrate } from '@tanstack/react-start-client';
5
- export type { HydrateOptions, HydrateProps, HydrationInteractionEvent, HydrationInteractionEvents, HydrationPrefetchStrategy, HydrationStrategy, HydrationWhen, } from '@tanstack/react-start-client';
4
+ export { Hydrate } from '@tanstack/react-start-client/Hydrate';
5
+ export type { HydrateOptions, HydrateProps, HydrationInteractionEvent, HydrationInteractionEvents, HydrationPrefetchStrategy, HydrationStrategy, HydrationWhen, } from '@tanstack/react-start-client/Hydrate';
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useServerFn } from "./useServerFn.js";
2
2
  import { createClientOnlyFn, createCsrfMiddleware, createIsomorphicFn, createMiddleware, createServerFn, createServerOnlyFn, createStart } from "@tanstack/start-client-core";
3
- import { Hydrate } from "@tanstack/react-start-client";
3
+ import { Hydrate } from "@tanstack/react-start-client/Hydrate";
4
4
  export * from "@tanstack/start-client-core";
5
5
  export { Hydrate, createClientOnlyFn, createCsrfMiddleware, createIsomorphicFn, createMiddleware, createServerFn, createServerOnlyFn, createStart, useServerFn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-start",
3
- "version": "1.168.13",
3
+ "version": "1.168.14",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -156,11 +156,11 @@
156
156
  "dependencies": {
157
157
  "pathe": "^2.0.3",
158
158
  "@tanstack/react-router": "1.170.8",
159
- "@tanstack/react-start-client": "1.168.4",
159
+ "@tanstack/react-start-client": "1.168.5",
160
160
  "@tanstack/react-start-rsc": "0.1.13",
161
- "@tanstack/react-start-server": "1.167.9",
162
161
  "@tanstack/router-utils": "1.162.1",
163
162
  "@tanstack/start-client-core": "1.170.4",
163
+ "@tanstack/react-start-server": "1.167.9",
164
164
  "@tanstack/start-plugin-core": "1.171.6",
165
165
  "@tanstack/start-server-core": "1.169.4"
166
166
  },
package/src/index.ts CHANGED
@@ -15,7 +15,14 @@ export {
15
15
  createServerOnlyFn,
16
16
  createStart,
17
17
  } from '@tanstack/start-client-core'
18
- export { Hydrate } from '@tanstack/react-start-client'
18
+
19
+ // Keep root `@tanstack/react-start` imports from evaluating the client barrel.
20
+ // The barrel also exports `hydrateStart`, which imports the virtual client
21
+ // entry. That virtual entry imports the user's router module, so route modules
22
+ // that import the root package can be pulled back into the same graph and
23
+ // create circular HMR updates. Re-exporting from the Hydrate-only subpath
24
+ // preserves the public API without introducing that import edge.
25
+ export { Hydrate } from '@tanstack/react-start-client/Hydrate'
19
26
  export type {
20
27
  HydrateOptions,
21
28
  HydrateProps,
@@ -24,4 +31,4 @@ export type {
24
31
  HydrationPrefetchStrategy,
25
32
  HydrationStrategy,
26
33
  HydrationWhen,
27
- } from '@tanstack/react-start-client'
34
+ } from '@tanstack/react-start-client/Hydrate'