Canon - Pin Base UI version (#29782)

Canon is built on Base UI primitives, but Base UI is still in alpha and does not follow semantic versioning. This means that breaking changes can appear in non-major dependency versions. As Canon does not currently depend on a specific version of Base UI, any project that consumes Canon that also installs a later version of Base UI could end up using a version of Base UI that Canon does not support, resulting in unexpected behaviour or bugs. To try and avoid this scenario, this PR pins the version of Base UI to the one that Canon has been developed against, meaning that Canon will install that version of Base UI rather than inheriting another if it is also in use elsewhere, and ensuring that the components all work as expected

---------

Signed-off-by: James Brooks <jamesbrooks@spotify.com>
This commit is contained in:
James Brooks
2025-05-02 10:46:20 +01:00
committed by GitHub
parent ee613ecd90
commit 97b25a190e
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/canon': patch
---
Pin version of @base-ui-components/react.
+1 -1
View File
@@ -41,7 +41,7 @@
"test": "backstage-cli package test"
},
"dependencies": {
"@base-ui-components/react": "^1.0.0-alpha.7",
"@base-ui-components/react": "1.0.0-alpha.7",
"@remixicon/react": "^4.6.0",
"@tanstack/react-table": "^8.21.3",
"clsx": "^2.1.1"
+2 -2
View File
@@ -3802,7 +3802,7 @@ __metadata:
resolution: "@backstage/canon@workspace:packages/canon"
dependencies:
"@backstage/cli": "workspace:^"
"@base-ui-components/react": "npm:^1.0.0-alpha.7"
"@base-ui-components/react": "npm:1.0.0-alpha.7"
"@remixicon/react": "npm:^4.6.0"
"@storybook/addon-essentials": "npm:^8.6.12"
"@storybook/addon-interactions": "npm:^8.6.12"
@@ -9067,7 +9067,7 @@ __metadata:
languageName: node
linkType: hard
"@base-ui-components/react@npm:^1.0.0-alpha.7":
"@base-ui-components/react@npm:1.0.0-alpha.7":
version: 1.0.0-alpha.7
resolution: "@base-ui-components/react@npm:1.0.0-alpha.7"
dependencies: