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

chore: allow React 18 in peerDependencies #263

Merged
merged 1 commit into from Oct 26, 2022

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Oct 26, 2022

Fixes #262.

This PR:

  • Allows React in peerDependencies of @griffel/react
  • Cleanups dependencies in @griffel/devtools (check comments for more context)

@github-actions
Copy link

github-actions bot commented Oct 26, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react
__css + mergeClasses (build time)
1.879 kB
874 B
react
__styles + mergeClasses (build time)
3.581 kB
1.614 kB
react
makeResetStyles (runtime)
18.595 kB
6.981 kB
react
makeStaticStyles (runtime)
9.443 kB
4.068 kB
react
makeStyles + mergeClasses (runtime)
22.554 kB
8.436 kB
🤖 This report was generated against 5f2b99cb41fe1fc8c1676c3319e6d8fccd95dd26

Comment on lines 2 to 3
"type": "none",
"comment": "fix: update dependencies in @griffel/devtools",
Copy link
Member Author

Choose a reason for hiding this comment

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

See below ⬇️

Comment on lines +10 to +11
"devDependencies": {
"@griffel/react": "^1.4.1"
Copy link
Member Author

Choose a reason for hiding this comment

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

This package should not have dependencies at all as we bundle it into application. The problem is that import/no-extraneous-dependencies cannot be configured for that case 🗿

This config will read root package.json and will still complain about missing @griffel/react. That's why I left @griffel/react here in devDependencies.

P.S. It's also a reason why we don't need a version bump: artifacts are not affected.

@layershifter layershifter marked this pull request as ready for review October 26, 2022 10:48
@layershifter layershifter requested a review from a team as a code owner October 26, 2022 10:48
@layershifter layershifter merged commit f9fb572 into microsoft:main Oct 26, 2022
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.

Allow React 18 in peerDependencies
2 participants