From 97b25a190e26e3ac1fe9a7f1f1e41954d93e81ce Mon Sep 17 00:00:00 2001 From: James Brooks <52410024+jabrks@users.noreply.github.com> Date: Fri, 2 May 2025 10:46:20 +0100 Subject: [PATCH] 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 --- .changeset/mean-parents-build.md | 5 +++++ packages/canon/package.json | 2 +- yarn.lock | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/mean-parents-build.md diff --git a/.changeset/mean-parents-build.md b/.changeset/mean-parents-build.md new file mode 100644 index 0000000000..d3bba29019 --- /dev/null +++ b/.changeset/mean-parents-build.md @@ -0,0 +1,5 @@ +--- +'@backstage/canon': patch +--- + +Pin version of @base-ui-components/react. diff --git a/packages/canon/package.json b/packages/canon/package.json index 04f9bbdb8f..610e7132f5 100644 --- a/packages/canon/package.json +++ b/packages/canon/package.json @@ -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" diff --git a/yarn.lock b/yarn.lock index 4d1c179744..c7f8e452f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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: