@remix-run/router 1.19.2-pre.0 → 1.20.0-pre.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.
package/dist/utils.d.ts CHANGED
@@ -200,13 +200,12 @@ export interface DataStrategyResult {
200
200
  export interface DataStrategyFunction {
201
201
  (args: DataStrategyFunctionArgs): Promise<Record<string, DataStrategyResult>>;
202
202
  }
203
- export interface AgnosticPatchRoutesOnNavigationFunction<M extends AgnosticRouteMatch = AgnosticRouteMatch> {
204
- (opts: {
205
- path: string;
206
- matches: M[];
207
- patch: (routeId: string | null, children: AgnosticRouteObject[]) => void;
208
- }): void | Promise<void>;
209
- }
203
+ export type AgnosticPatchRoutesOnNavigationFunctionArgs<O extends AgnosticRouteObject = AgnosticRouteObject, M extends AgnosticRouteMatch = AgnosticRouteMatch> = {
204
+ path: string;
205
+ matches: M[];
206
+ patch: (routeId: string | null, children: O[]) => void;
207
+ };
208
+ export type AgnosticPatchRoutesOnNavigationFunction<O extends AgnosticRouteObject = AgnosticRouteObject, M extends AgnosticRouteMatch = AgnosticRouteMatch> = (opts: AgnosticPatchRoutesOnNavigationFunctionArgs<O, M>) => void | Promise<void>;
210
209
  /**
211
210
  * Function provided by the framework-aware layers to set any framework-specific
212
211
  * properties from framework-agnostic properties
package/index.ts CHANGED
@@ -7,12 +7,14 @@ export type {
7
7
  AgnosticDataRouteObject,
8
8
  AgnosticIndexRouteObject,
9
9
  AgnosticNonIndexRouteObject,
10
+ AgnosticPatchRoutesOnNavigationFunction,
11
+ AgnosticPatchRoutesOnNavigationFunctionArgs,
10
12
  AgnosticRouteMatch,
11
13
  AgnosticRouteObject,
12
- DataStrategyFunction as unstable_DataStrategyFunction,
13
- DataStrategyFunctionArgs as unstable_DataStrategyFunctionArgs,
14
- DataStrategyMatch as unstable_DataStrategyMatch,
15
- DataStrategyResult as unstable_DataStrategyResult,
14
+ DataStrategyFunction,
15
+ DataStrategyFunctionArgs,
16
+ DataStrategyMatch,
17
+ DataStrategyResult,
16
18
  ErrorResponse,
17
19
  FormEncType,
18
20
  FormMethod,
@@ -23,7 +25,6 @@ export type {
23
25
  LoaderFunctionArgs,
24
26
  ParamParseKey,
25
27
  Params,
26
- AgnosticPatchRoutesOnNavigationFunction as unstable_AgnosticPatchRoutesOnNavigationFunction,
27
28
  PathMatch,
28
29
  PathParam,
29
30
  PathPattern,
@@ -38,7 +39,7 @@ export type {
38
39
 
39
40
  export {
40
41
  AbortedDeferredError,
41
- data as unstable_data,
42
+ data,
42
43
  defer,
43
44
  generatePath,
44
45
  getToPathname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/router",
3
- "version": "1.19.2-pre.0",
3
+ "version": "1.20.0-pre.0",
4
4
  "description": "Nested/Data-driven/Framework-agnostic Routing",
5
5
  "keywords": [
6
6
  "remix",