diff --git a/change/@microsoft-fast-router-86ba00b4-329b-480f-a226-77947ce80499.json b/change/@microsoft-fast-router-86ba00b4-329b-480f-a226-77947ce80499.json new file mode 100644 index 00000000000..3665bf9505d --- /dev/null +++ b/change/@microsoft-fast-router-86ba00b4-329b-480f-a226-77947ce80499.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Change the router to use peerDependency for fast-element", + "packageName": "@microsoft/fast-router", + "email": "7559015+janechu@users.noreply.github.com", + "dependentChangeType": "none" +} diff --git a/package-lock.json b/package-lock.json index 80ad2735e29..ab58faf22cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31017,12 +31017,10 @@ "name": "@microsoft/fast-router", "version": "1.0.0-alpha.28", "license": "MIT", - "dependencies": { - "@microsoft/fast-element": "^2.0.0" - }, "devDependencies": { "@jsdevtools/coverage-istanbul-loader": "^3.0.5", "@microsoft/api-extractor": "^7.47.0", + "@microsoft/fast-element": "^2.0.0", "@types/chai": "^4.2.11", "@types/karma": "^6.3.3", "@types/mocha": "^7.0.2", @@ -31054,6 +31052,9 @@ "typescript": "~4.7.0", "webpack": "^5.92.1", "webpack-cli": "^5.1.4" + }, + "peerDependencies": { + "@microsoft/fast-element": "^2.0.0" } }, "packages/web-components/fast-router/node_modules/acorn-walk": { diff --git a/packages/web-components/fast-router/package.json b/packages/web-components/fast-router/package.json index 74135a4402d..7c008115b71 100644 --- a/packages/web-components/fast-router/package.json +++ b/packages/web-components/fast-router/package.json @@ -48,6 +48,7 @@ "devDependencies": { "@jsdevtools/coverage-istanbul-loader": "^3.0.5", "@microsoft/api-extractor": "^7.47.0", + "@microsoft/fast-element": "^2.0.0", "@types/chai": "^4.2.11", "@types/karma": "^6.3.3", "@types/mocha": "^7.0.2", @@ -80,7 +81,7 @@ "webpack": "^5.92.1", "webpack-cli": "^5.1.4" }, - "dependencies": { + "peerDependencies": { "@microsoft/fast-element": "^2.0.0" }, "beachball": {