@remix-run/router 0.0.0-experimental-48058118
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/CHANGELOG.md +170 -0
- package/LICENSE.md +22 -0
- package/README.md +107 -0
- package/dist/history.d.ts +249 -0
- package/dist/index.d.ts +7 -0
- package/dist/router.cjs.js +4204 -0
- package/dist/router.cjs.js.map +1 -0
- package/dist/router.d.ts +437 -0
- package/dist/router.js +4117 -0
- package/dist/router.js.map +1 -0
- package/dist/router.umd.js +4210 -0
- package/dist/router.umd.js.map +1 -0
- package/dist/router.umd.min.js +12 -0
- package/dist/router.umd.min.js.map +1 -0
- package/dist/utils.d.ts +481 -0
- package/history.ts +721 -0
- package/index.ts +93 -0
- package/package.json +33 -0
- package/router.ts +3851 -0
- package/utils.ts +1559 -0
package/index.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
ActionFunction,
|
|
3
|
+
ActionFunctionArgs,
|
|
4
|
+
ActionFunctionWithMiddleware,
|
|
5
|
+
ActionFunctionArgsWithMiddleware,
|
|
6
|
+
AgnosticDataIndexRouteObject,
|
|
7
|
+
AgnosticDataNonIndexRouteObject,
|
|
8
|
+
AgnosticDataRouteMatch,
|
|
9
|
+
AgnosticDataRouteObject,
|
|
10
|
+
AgnosticIndexRouteObject,
|
|
11
|
+
AgnosticNonIndexRouteObject,
|
|
12
|
+
AgnosticRouteMatch,
|
|
13
|
+
AgnosticRouteObject,
|
|
14
|
+
TrackedPromise,
|
|
15
|
+
FormEncType,
|
|
16
|
+
FormMethod,
|
|
17
|
+
JsonFunction,
|
|
18
|
+
LoaderFunction,
|
|
19
|
+
LoaderFunctionArgs,
|
|
20
|
+
LoaderFunctionWithMiddleware,
|
|
21
|
+
LoaderFunctionArgsWithMiddleware,
|
|
22
|
+
MiddlewareContext,
|
|
23
|
+
MiddlewareFunction,
|
|
24
|
+
MiddlewareFunctionArgs,
|
|
25
|
+
ParamParseKey,
|
|
26
|
+
Params,
|
|
27
|
+
PathMatch,
|
|
28
|
+
PathPattern,
|
|
29
|
+
RedirectFunction,
|
|
30
|
+
ShouldRevalidateFunction,
|
|
31
|
+
Submission,
|
|
32
|
+
} from "./utils";
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
AbortedDeferredError,
|
|
36
|
+
ErrorResponse,
|
|
37
|
+
createMiddlewareContext,
|
|
38
|
+
defer,
|
|
39
|
+
generatePath,
|
|
40
|
+
getToPathname,
|
|
41
|
+
isRouteErrorResponse,
|
|
42
|
+
joinPaths,
|
|
43
|
+
json,
|
|
44
|
+
matchPath,
|
|
45
|
+
matchRoutes,
|
|
46
|
+
normalizePathname,
|
|
47
|
+
redirect,
|
|
48
|
+
resolvePath,
|
|
49
|
+
resolveTo,
|
|
50
|
+
stripBasename,
|
|
51
|
+
warning,
|
|
52
|
+
} from "./utils";
|
|
53
|
+
|
|
54
|
+
export type {
|
|
55
|
+
BrowserHistory,
|
|
56
|
+
BrowserHistoryOptions,
|
|
57
|
+
HashHistory,
|
|
58
|
+
HashHistoryOptions,
|
|
59
|
+
History,
|
|
60
|
+
InitialEntry,
|
|
61
|
+
Location,
|
|
62
|
+
MemoryHistory,
|
|
63
|
+
MemoryHistoryOptions,
|
|
64
|
+
Path,
|
|
65
|
+
To,
|
|
66
|
+
} from "./history";
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
Action,
|
|
70
|
+
createBrowserHistory,
|
|
71
|
+
createPath,
|
|
72
|
+
createHashHistory,
|
|
73
|
+
createMemoryHistory,
|
|
74
|
+
invariant,
|
|
75
|
+
parsePath,
|
|
76
|
+
} from "./history";
|
|
77
|
+
|
|
78
|
+
export * from "./router";
|
|
79
|
+
|
|
80
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
81
|
+
// DANGER! PLEASE READ ME!
|
|
82
|
+
// We consider these exports an implementation detail and do not guarantee
|
|
83
|
+
// against any breaking changes, regardless of the semver release. Use with
|
|
84
|
+
// extreme caution and only if you understand the consequences. Godspeed.
|
|
85
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export {
|
|
89
|
+
DeferredData as UNSAFE_DeferredData,
|
|
90
|
+
convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes,
|
|
91
|
+
getPathContributingMatches as UNSAFE_getPathContributingMatches,
|
|
92
|
+
createMiddlewareStore as UNSAFE_createMiddlewareStore,
|
|
93
|
+
} from "./utils";
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@remix-run/router",
|
|
3
|
+
"version": "0.0.0-experimental-48058118",
|
|
4
|
+
"description": "Nested/Data-driven/Framework-agnostic Routing",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"remix",
|
|
7
|
+
"router",
|
|
8
|
+
"location"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/remix-run/react-router",
|
|
13
|
+
"directory": "packages/router"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "Remix Software <hello@remix.run>",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"main": "./dist/router.cjs.js",
|
|
19
|
+
"unpkg": "./dist/router.umd.min.js",
|
|
20
|
+
"module": "./dist/router.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist/",
|
|
24
|
+
"*.ts",
|
|
25
|
+
"CHANGELOG.md"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=14"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|