@uniflowed/router 0.8.0 → 0.10.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.
@@ -99,6 +99,9 @@ export function installBrowserModules(): void {
99
99
  ),
100
100
  );
101
101
  }
102
+ // A chunk the payload names, known only at run time and checked to be on
103
+ // this origin above; Flow types only a literal specifier.
104
+ // $FlowFixMe[unsupported-syntax]
102
105
  return import(target.href).then((namespace: ModuleNamespace) => {
103
106
  loaded.set(url, namespace);
104
107
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniflowed/router",
3
- "version": "0.8.0",
3
+ "version": "0.10.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.8.0",
77
- "@uniflowed/server": "0.8.0",
78
- "@uniflowed/validator": "0.8.0"
76
+ "@uniflowed/hooks": "0.10.0",
77
+ "@uniflowed/server": "0.10.0",
78
+ "@uniflowed/validator": "0.10.0"
79
79
  }
80
80
  }
package/rsc.js CHANGED
@@ -113,7 +113,9 @@ export function registerServerFunction<T>(fn: T, id: string, name: string): T {
113
113
  if (typeof fn !== "function") {
114
114
  return fn;
115
115
  }
116
- registerServerReference(fn, id, name);
116
+ // Registration attaches metadata without invoking this unknown signature.
117
+ // Keep typed calls checked; reflection is for this runtime-narrowed value.
118
+ Reflect.apply(registerServerReference, undefined, [fn, id, name]);
117
119
  return fn;
118
120
  }
119
121