Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

react-router-dom as main dep (#311)

Govinda Vashishthac5223ada0b91
diff --git a/.changeset/20260817184000-trueforge-ui-react-dom-router-deps.md b/.changeset/20260817184000-trueforge-ui-react-dom-router-deps.md
new file mode 100644
index 000000000..12ceca789
--- /dev/null
+++ b/.changeset/20260817184000-trueforge-ui-react-dom-router-deps.md
@@ -0,0 +1,5 @@
+---
+'@truefoundry/trueforge-ui': patch
+---
+
+Ship `react-dom` and `react-router-dom` as package dependencies instead of peers so consumers no longer need to install them separately.
diff --git a/packages/trueforge-ui/package.json b/packages/trueforge-ui/package.json
index 4e210bfea..bd5723cc6 100644
--- a/packages/trueforge-ui/package.json
+++ b/packages/trueforge-ui/package.json
@@ -78,8 +78,7 @@
"@assistant-ui/react": "^0.14.24",
"@types/react": "*",
"react": "^18 || ^19",
- "react-dom": "^18 || ^19",
- "react-router-dom": "^6 || ^7"
+ "react-dom": "^18 || ^19"
},
"peerDependenciesMeta": {
"@assistant-ui/core": {
@@ -90,9 +89,6 @@
},
"@types/react": {
"optional": true
- },
- "react-router-dom": {
- "optional": true
}
},
"dependencies": {
@@ -108,6 +104,7 @@
"monaco-editor": "^0.56.0",
"partial-json": "^0.1.7",
"react-markdown": "^10.1.0",
+ "react-router-dom": "^6 || ^7",
"react-syntax-highlighter": "^16.1.1",
"remark-gfm": "^4.0.1",
"tailwind-merge": "^3.6.0",
@@ -133,8 +130,6 @@
"jsdom": "^24.1.3",
"prettier": "^3.6.2",
"react": "^19.2.4",
- "react-dom": "^19.2.4",
- "react-router-dom": "^7.18.2",
"tailwindcss": "^4.3.2",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 56b55690d..30f653c47 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -388,9 +388,15 @@ importers:
partial-json:
specifier: ^0.1.7
version: 0.1.7
+ react-dom:
+ specifier: ^18 || ^19
+ version: 19.2.8([email protected])
react-markdown:
specifier: ^10.1.0
+ react-router-dom:
+ specifier: ^6 || ^7
react-syntax-highlighter:
specifier: ^16.1.1
version: 16.1.1([email protected])
@@ -461,12 +467,6 @@ importers:
react:
specifier: ^19.2.4
version: 19.2.8
- react-dom:
- specifier: ^19.2.4
- version: 19.2.8([email protected])
- react-router-dom:
- specifier: ^7.18.2
tailwindcss:
specifier: ^4.3.2
version: 4.3.3