Skip to content

Commit

Permalink
chore(remix-testing): use @remix-run/router directly
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Dec 2, 2022
1 parent 8495bad commit 6a77a96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
18 changes: 0 additions & 18 deletions packages/remix-server-runtime/index.ts
Expand Up @@ -74,21 +74,3 @@ export type {
UploadHandler,
UploadHandlerPart,
} from "./reexport";

export type {
AgnosticDataRouteObject,
AgnosticIndexRouteObject,
AgnosticNonIndexRouteObject,
AgnosticRouteObject,
InitialEntry,
Location,
MemoryHistory,
StaticHandler,
} from "./router";
export {
createMemoryHistory,
matchRoutes,
unstable_createStaticHandler,
} from "./router";
export type { Update } from "./router/history";
export type { AgnosticRouteMatch } from "./router/utils";
4 changes: 2 additions & 2 deletions packages/remix-testing/create-remix-stub.tsx
Expand Up @@ -18,13 +18,13 @@ import type {
MemoryHistory,
StaticHandler,
Update,
} from "@remix-run/server-runtime";
} from "@remix-run/router";
import {
createMemoryHistory,
json,
matchRoutes,
unstable_createStaticHandler as createStaticHandler,
} from "@remix-run/server-runtime";
} from "@remix-run/router";

type RemixStubOptions = {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-testing/package.json
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@remix-run/node": "1.7.6",
"@remix-run/react": "1.7.6",
"@remix-run/server-runtime": "1.7.6",
"@remix-run/router": "1.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down

0 comments on commit 6a77a96

Please sign in to comment.