Repository: remix-run/remix
Pull request #4757 (2022-12-02 23:27:34)

fix(remix-testing): fix deps
The feature branch for the `remix-testing` got a bit stale once we released 1.8.0 and deleted the dup router code

changeset-bot[bot]: ###  ⚠️  No Changeset found

Latest commit: a3cb1c626365d715e755f7c47dcc79e3ce87adfa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. **If these changes should result in a version bump, you need to add a changeset.**

<details><summary>This PR includes no changesets</summary>

  When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

</details>

[Click here to learn what changesets are, and how to add one](https://github.com/changesets/changesets/blob/master/docs/adding-a-changeset.md).

[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/remix-run/remix/new/brophdawg11/fix-deps?filename=.changeset/kind-timers-wash.md&value=---%0A%22remix%22%3A%20patch%0A%22%40remix-run%2Fserve%22%3A%20patch%0A%22%40remix-run%2Fserver-runtime%22%3A%20patch%0A%22%40remix-run%2Ftesting%22%3A%20patch%0A---%0A%0AFix%20deps%20for%20new%20remix-testing%20package%0A)



Patch:
diff --git a/packages/remix-server-runtime/index.ts b/packages/remix-server-runtime/index.ts
index b3bc9206e..ab11dc4f6 100644
--- a/packages/remix-server-runtime/index.ts
+++ b/packages/remix-server-runtime/index.ts
@@ -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";


Test patch:
diff --git a/packages/remix-testing/create-remix-stub.tsx b/packages/remix-testing/create-remix-stub.tsx
index cd65ff9e2..7a99d26d5 100644
--- a/packages/remix-testing/create-remix-stub.tsx
+++ b/packages/remix-testing/create-remix-stub.tsx
@@ -9,6 +9,7 @@ import type {
 } from "@remix-run/react";
 import { RemixEntry } from "@remix-run/react";
 import type {
+  Action,
   AgnosticDataRouteObject,
   AgnosticIndexRouteObject,
   AgnosticNonIndexRouteObject,
@@ -17,14 +18,18 @@ import type {
   Location,
   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";
+import { json } from "@remix-run/server-runtime";
+
+type Update = {
+  action: Action;
+  location: Location;
+};
 
 type RemixStubOptions = {
   /**
diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json
index 09db357bf..215e6f186 100644
--- a/packages/remix-testing/package.json
+++ b/packages/remix-testing/package.json
@@ -18,6 +18,7 @@
   "dependencies": {
     "@remix-run/node": "1.8.0",
     "@remix-run/react": "1.8.0",
+    "@remix-run/router": "1.0.4",
     "@remix-run/server-runtime": "1.8.0",
     "react": "^18.2.0",
     "react-dom": "^18.2.0"