@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/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
+ }