Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Move react strict dependencies #49

Merged
merged 3 commits into from
Dec 10, 2023
Merged

Conversation

t1agob
Copy link
Contributor

@t1agob t1agob commented Dec 10, 2023

Description

packages.json defines react dependencies as strict dependencies instead of peerDependencies and devDependencies. This prevents the plugin to use the version of React define by the installation and instead forced the one used in the project.

This causes the plugin installation to fail in configurations where the React version doesn't match the one defined in the plugin.

This PR moves React dependencies into peerDependencies to allow the plugin to use the version defined in the Backstage configuration and devDependencies to allow tests to run successfully.

It also upgrades Backstage packages to the latest version.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented
  • Changes generate no new warnings
  • PR title follows conventional commit semantics

If this is a breaking change 👇

  • I have documented the migration process
  • I have implemented necessary warnings (if it can live side by side)

Acknowledgement

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

t1agob and others added 3 commits December 10, 2023 15:18
Strict dependencies caused installation react version doesn't match

Signed-off-by: Tiago Barbosa <[email protected]>
regenerating yarn.lock

Signed-off-by: Tiago Barbosa <[email protected]>
@t1agob t1agob merged commit 31bc0bc into next Dec 10, 2023
1 check passed
@t1agob t1agob deleted the fix/move-react-dependencies branch December 10, 2023 15:39
t1agob added a commit that referenced this pull request Dec 10, 2023
* chore(dependencies): ⬆️ add support for react 18+ (#43)
* chore(dependencies): Bump up backstage versions (#44)
* chore(dependencies): 📌 upgrade backstage dependencies
* docs(docs): 📝 simplify readme file and point to full documentation (#47)
* chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 (#48)
* fix: Move react strict dependencies (#49)

Signed-off-by: Tiago Barbosa <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant