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

Satisfy new yarn peer behavior #6767

Merged
merged 13 commits into from
Aug 13, 2024
Merged

Satisfy new yarn peer behavior #6767

merged 13 commits into from
Aug 13, 2024

Conversation

snowystinger
Copy link
Member

@snowystinger snowystinger commented Jul 25, 2024

Closes

Followup from yarn 4 PR. This reduces the warnings we get about unmet peers.
There are still a handful outstanding, but they rely on external packages to update

Not hopeful about this one
GoogleChromeLabs/quicklink#421

Need to update to newest storybook
storybookjs/storybook#26960

The one about webpack peer is misleading but only because we're using that module in a non-documented way
https://github.com/hipstersmoothie/react-docgen-typescript-plugin
Either we could contribute to the project to see if it can be separated or we can just live with the peer warning. Oddly and thankfully it does not appear to install the peer.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger snowystinger changed the title Satisfy new yarn peer behavior [WIP] - Satisfy new yarn peer behavior Jul 25, 2024
@@ -0,0 +1,40 @@

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are all versions which can't be easily changed through the yarn cli like we do with react, react-dom at the root level, but it's just helping to tie down certain versions so we don't have duplicates installed and they are all versions which work with the react version we've installed

@snowystinger snowystinger changed the title [WIP] - Satisfy new yarn peer behavior Satisfy new yarn peer behavior Jul 25, 2024
@rspbot
Copy link

rspbot commented Jul 25, 2024

@rspbot
Copy link

rspbot commented Jul 25, 2024

@rspbot
Copy link

rspbot commented Jul 25, 2024

1 similar comment
@rspbot
Copy link

rspbot commented Jul 25, 2024

@rspbot
Copy link

rspbot commented Jul 26, 2024

@rspbot
Copy link

rspbot commented Jul 26, 2024

@rspbot
Copy link

rspbot commented Jul 30, 2024

# Conflicts:
#	package.json
#	yarn.lock
@rspbot
Copy link

rspbot commented Aug 3, 2024

@@ -52,7 +52,8 @@
},
"devDependencies": {
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",
"@react-spectrum/test-utils-internal": "3.0.0-alpha.1"
"@react-spectrum/test-utils-internal": "3.0.0-alpha.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why only react-dom and not react?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react is already in the peerDeps, so something else will supply it
nothing is 'technically' supplying react-dom, which the test-utils-internal are requesting, so had to add react-dom here just for dev work

@rspbot
Copy link

rspbot commented Aug 8, 2024

@rspbot
Copy link

rspbot commented Aug 13, 2024

@snowystinger snowystinger merged commit 6bbb8c1 into main Aug 13, 2024
29 checks passed
@snowystinger snowystinger deleted the fix-new-yarn-peer-behavior branch August 13, 2024 20:59
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.

4 participants