@remix-run/router 1.0.2-pre.0 → 1.0.3-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/CHANGELOG.md CHANGED
@@ -1,13 +1,25 @@
1
1
  # `@remix-run/router`
2
2
 
3
- ## 1.0.2-pre.0
3
+ ## 1.0.3-pre.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - fix: throw error when receiving invalid path object ([#9375](https://github.com/remix-run/react-router/pull/9375))
8
- - fix: reset `actionData` after successful action redirect ([#9334](https://github.com/remix-run/react-router/pull/9334))
9
- - fix: update `matchPath` to avoid false positives on dash-separated segments ([#9300](https://github.com/remix-run/react-router/pull/9300))
10
- - fix: Strengthen `RouteObject`/`RouteProps` types and throw on `index` routes with `children` ([#9366](https://github.com/remix-run/react-router/pull/9366))
7
+ - properly support `index` routes with a path in `useResolvedPath` ([#9486](https://github.com/remix-run/react-router/pull/9486))
8
+ - Fix hrefs generated for `createHashRouter` ([#9409](https://github.com/remix-run/react-router/pull/9409))
9
+ - fix encoding/matching issues with special chars ([#9477](https://github.com/remix-run/react-router/pull/9477))
10
+ - Ignore pathless layout routes when looking for proper submission `action` function ([#9455](https://github.com/remix-run/react-router/pull/9455))
11
+ - Support `basename` and relative routing in `loader`/`action` redirects ([#9447](https://github.com/remix-run/react-router/pull/9447))
12
+ - Add UMD build for `@remix-run/router` ([#9446](https://github.com/remix-run/react-router/pull/9446))
13
+ - Clean up response APIs for `unstable_createStaticHandler` `queryRoute` ([#9465](https://github.com/remix-run/react-router/pull/9465))
14
+ - Changes to static handler for incorporating into Remix ([#9482](https://github.com/remix-run/react-router/pull/9482))
15
+
16
+ ## 1.0.2
17
+
18
+ ### Patch Changes
19
+
20
+ - Reset `actionData` after a successful action redirect ([#9334](https://github.com/remix-run/react-router/pull/9334))
21
+ - Update `matchPath` to avoid false positives on dash-separated segments ([#9300](https://github.com/remix-run/react-router/pull/9300))
22
+ - If an index route has children, it will result in a runtime error. We have strengthened our `RouteObject`/`RouteProps` types to surface the error in TypeScript. ([#9366](https://github.com/remix-run/react-router/pull/9366))
11
23
 
12
24
  ## 1.0.1
13
25
 
@@ -25,6 +37,6 @@ For an overview of the features provided by `react-router`, we recommend you go
25
37
  For an overview of the features provided by `@remix-run/router`, please check out the [`README`][remix-router-readme].
26
38
 
27
39
  [rr-docs]: https://reactrouter.com/
28
- [rr-feature-overview]: https://reactrouter.com/en/v6.4.0/start/overview
29
- [rr-tutorial]: https://reactrouter.com/en/v6.4.0/start/tutorial
40
+ [rr-feature-overview]: https://reactrouter.com/en/6.4.0/start/overview
41
+ [rr-tutorial]: https://reactrouter.com/en/6.4.0/start/tutorial
30
42
  [remix-router-readme]: https://github.com/remix-run/react-router/blob/main/packages/router/README.md
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { convertRoutesToDataRoutes } from "./utils";
1
+ import { convertRoutesToDataRoutes, getPathContributingMatches } from "./utils";
2
2
  export type { ActionFunction, ActionFunctionArgs, AgnosticDataIndexRouteObject, AgnosticDataNonIndexRouteObject, AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticIndexRouteObject, AgnosticNonIndexRouteObject, AgnosticRouteMatch, AgnosticRouteObject, TrackedPromise, FormEncType, FormMethod, JsonFunction, LoaderFunction, LoaderFunctionArgs, ParamParseKey, Params, PathMatch, PathPattern, RedirectFunction, ShouldRevalidateFunction, Submission, } from "./utils";
3
3
  export { AbortedDeferredError, ErrorResponse, defer, generatePath, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, redirect, resolvePath, resolveTo, stripBasename, warning, } from "./utils";
4
4
  export type { BrowserHistory, BrowserHistoryOptions, HashHistory, HashHistoryOptions, History, InitialEntry, Location, MemoryHistory, MemoryHistoryOptions, Path, To, } from "./history";
5
5
  export { Action, createBrowserHistory, createPath, createHashHistory, createMemoryHistory, parsePath, } from "./history";
6
6
  export * from "./router";
7
7
  /** @internal */
8
- export { convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes };
8
+ export { convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, getPathContributingMatches as UNSAFE_getPathContributingMatches, };