Skip to content

Commit

Permalink
chore: import from server-runtime/router
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Nov 8, 2022
1 parent 7b892ae commit 043833b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/remix-server-runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ export type {
UploadHandlerPart,
UploadHandler,
} from "./reexport";

export type { MemoryHistory } from "./router";
export { createMemoryHistory } from "./router";
6 changes: 3 additions & 3 deletions packages/remix-testing/create-remix-stub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
unstable_createStaticHandler as createStaticHandler,
matchRoutes,
} from "@remix-run/router";
import { createMemoryHistory } from "history";
import { RemixEntry } from "@remix-run/react";
import type {
AssetsManifest,
Expand All @@ -15,13 +14,13 @@ import type {
RouteModules,
ShouldReloadFunction,
} from "@remix-run/react";
import type { MemoryHistory, Update } from "history";
import type {
ErrorBoundaryComponent,
LinksFunction,
MetaFunction,
MemoryHistory,
} from "@remix-run/server-runtime";
import { json } from "@remix-run/server-runtime";
import { json, createMemoryHistory } from "@remix-run/server-runtime";
import type {
InitialEntry,
StaticHandler,
Expand All @@ -30,6 +29,7 @@ import type {
Location,
} from "@remix-run/router";
import type { AgnosticRouteMatch } from "@remix-run/router/dist/utils";
import type { Update } from "@remix-run/router/dist/history";

/**
* Base RouteObject with common props shared by all types of mock routes
Expand Down
1 change: 0 additions & 1 deletion packages/remix-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@remix-run/react": "1.7.4",
"@remix-run/router": "1.0.3",
"@remix-run/server-runtime": "1.7.4",
"history": "^5.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down

0 comments on commit 043833b

Please sign in to comment.