@uniflowed/router 0.14.1 → 0.16.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.
@@ -48,6 +48,8 @@
48
48
  // a URL, so it cannot be pointed at somebody else's server. Nothing leaves the
49
49
  // machine.
50
50
 
51
+ import { basePath } from "./base-path.js";
52
+
51
53
  /**
52
54
  * The path `uf dev` serves the diagnostic channel on.
53
55
  *
@@ -145,7 +147,7 @@ export function reportDiagnostic(diagnostic: BrowserDiagnostic, endpoint?: strin
145
147
  // about development tooling. Losing the report is the right outcome when
146
148
  // there is nothing listening; reporting the loss as an application error is
147
149
  // not.
148
- post(endpoint ?? DIAGNOSTIC_ENDPOINT, {
150
+ post(endpoint ?? `${basePath()}${DIAGNOSTIC_ENDPOINT}`, {
149
151
  method: "POST",
150
152
  body,
151
153
  keepalive: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniflowed/router",
3
- "version": "0.14.1",
3
+ "version": "0.16.0",
4
4
  "description": "The file-system router for Flow React applications: matching, layouts, loaders, navigation, server rendering and hydration.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -73,8 +73,8 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "@uniflowed/hooks": "0.14.1",
77
- "@uniflowed/server": "0.14.1",
78
- "@uniflowed/validator": "0.14.1"
76
+ "@uniflowed/hooks": "0.16.0",
77
+ "@uniflowed/server": "0.16.0",
78
+ "@uniflowed/validator": "0.16.0"
79
79
  }
80
80
  }
package/rsc-client.js CHANGED
@@ -47,7 +47,7 @@ import { readFormState } from "./internal/form-action.js";
47
47
 
48
48
  // What `virtual:uf/client` calls in development when a server component
49
49
  // changed; see "Hot updates" in `./internal/runtime.js`.
50
- export { refreshForHotUpdate } from "./internal/runtime.js";
50
+ export { acceptHotRouteModules, refreshForHotUpdate } from "./internal/runtime.js";
51
51
 
52
52
  /**
53
53
  * Hydrate a document React Server Components rendered.