@remix-run/router 0.2.0-pre.3 → 0.2.0-pre.4
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 +10 -0
- package/dist/history.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{router.development.js → router.cjs.js} +794 -310
- package/dist/router.cjs.js.map +1 -0
- package/dist/router.d.ts +7 -41
- package/dist/{index.js → router.js} +432 -142
- package/dist/router.js.map +1 -0
- package/dist/utils.d.ts +71 -1
- package/history.ts +619 -0
- package/index.ts +101 -0
- package/package.json +5 -7
- package/router.ts +2275 -0
- package/utils.ts +967 -0
- package/dist/index.js.map +0 -1
- package/dist/main.js +0 -19
- package/dist/router.development.js.map +0 -1
- package/dist/router.production.min.js +0 -12
- package/dist/router.production.min.js.map +0 -1
- package/dist/umd/router.development.js +0 -2505
- package/dist/umd/router.development.js.map +0 -1
- package/dist/umd/router.production.min.js +0 -12
- package/dist/umd/router.production.min.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @remix-run/router
|
|
2
2
|
|
|
3
|
+
## 0.2.0-pre.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: Handle fetcher 404s as normal boundary errors (#9015)
|
|
8
|
+
- feat: adds `deferred` support to data routers (#9002)
|
|
9
|
+
- feat: add basename support for data routers (#9026)
|
|
10
|
+
- ci: simplify dist/ directory for CJS/ESM only (#9017)
|
|
11
|
+
- fix: Fix trailing slash behavior on pathless routing when using a basename (#9045)
|
|
12
|
+
|
|
3
13
|
## 0.2.0-pre.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/history.d.ts
CHANGED
|
@@ -209,7 +209,7 @@ export declare function createHashHistory(options?: HashHistoryOptions): HashHis
|
|
|
209
209
|
/**
|
|
210
210
|
* Creates a Location object with a unique key from the given Path
|
|
211
211
|
*/
|
|
212
|
-
export declare function createLocation(current: string | Location, to: To, state?: any, key?: string): Location
|
|
212
|
+
export declare function createLocation(current: string | Location, to: To, state?: any, key?: string): Readonly<Location>;
|
|
213
213
|
/**
|
|
214
214
|
* Creates a string URL path from the given pathname, search, and hash components.
|
|
215
215
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ declare function createMemoryRouter({ initialEntries, initialIndex, ...routerIni
|
|
|
4
4
|
declare function createBrowserRouter({ window, ...routerInit }: BrowserHistoryOptions & Omit<RouterInit, "history">): Router;
|
|
5
5
|
declare function createHashRouter({ window, ...routerInit }: HashHistoryOptions & Omit<RouterInit, "history">): Router;
|
|
6
6
|
export * from "./router";
|
|
7
|
-
export type { ActionFunction, ActionFunctionArgs, DataRouteObject, FormEncType, FormMethod, JsonFunction, LoaderFunction, LoaderFunctionArgs, ParamParseKey, Params, PathMatch, PathPattern, RedirectFunction, RouteMatch, RouteObject, ShouldRevalidateFunction, Submission, } from "./utils";
|
|
8
|
-
export { generatePath, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, redirect, resolvePath, resolveTo, stripBasename, warning, } from "./utils";
|
|
7
|
+
export type { ActionFunction, ActionFunctionArgs, DataRouteMatch, DataRouteObject, FormEncType, FormMethod, JsonFunction, LoaderFunction, LoaderFunctionArgs, ParamParseKey, Params, PathMatch, PathPattern, RedirectFunction, RouteMatch, RouteObject, ShouldRevalidateFunction, Submission, } from "./utils";
|
|
8
|
+
export { deferred, generatePath, getToPathname, invariant, isDeferredError, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, redirect, resolvePath, resolveTo, stripBasename, warning, } from "./utils";
|
|
9
9
|
export type { BrowserHistory, HashHistory, History, InitialEntry, Location, MemoryHistory, Path, To, } from "./history";
|
|
10
10
|
export { Action, createBrowserHistory, createPath, createHashHistory, createMemoryHistory, parsePath, } from "./history";
|
|
11
11
|
export { createBrowserRouter, createHashRouter, createMemoryRouter };
|