chore: cleanup dependencies for converged components#17197
chore: cleanup dependencies for converged components#17197layershifter merged 12 commits intomasterfrom
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit c74b092:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: e81ec9a409a5c16f1ba6c0333a9df41f6375f92f (build) |
| "@fluentui/keyboard-key": "^0.2.14", | ||
| "@fluentui/react-icons-mdl2": "^1.0.1", | ||
| "@fluentui/react-make-styles": "^9.0.0-alpha.4", | ||
| "@fluentui/react-shared-contexts": "^1.0.0-beta.10", |
There was a problem hiding this comment.
These deps were simply not used at all 😮
There was a problem hiding this comment.
FYI, this happened because a bunch of things were deleted in #17060. Once some of them come back we might want to find out how to deal with this.
There was a problem hiding this comment.
If we're removing this, should react-shared-contexts be released as 1.0 now? Or entirely removed for the time being (and remove usage from v8 as well)?
Perf Analysis
All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
|
Great job, thanks for following up on this so quickly 🚀 |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
* chore: cleanup dependencies for converged components * fix exports * fix lint error * update API, move css() util * remove cruft file * Change files * fix lint errors * fix lint errors * Update packages/react-utilities/src/hooks/useId.ts * Update packages/react-theme/src/utils/mergeThemes.ts * Update packages/react-utilities/src/compose/makeMergeProps.ts * fix fmt
Pull request checklist
- [ ] Addresses an existing issue: Fixes #0000$ yarn changeDependency graph for this PR
@fluentui/react-avatarDependency on
@fluentui/utilitieswas removed:nullRenderis reused from@fluentui/react-utilities(it have been already there)useFocusRects()(according to the spec, it's not focusable via keyboard)getInitials()was copied as an util to@fluentui/react-avataras it's a single component that uses it in convergence@fluentui/react-button@fluentui/react-icons-mdl2&@fluentui/react-shared-contextswere removed as they are not used at all.@fluentui/react-link@fluentui/utilitieswere used onlyconfig/tests.jsfor functionality that is not required, usages and a dependency were removed.@fluentui/react-themeHad a dependency on
merge()inmergeThemes(),merge()is temporary copied as there is no clear decision about theme shape yet.@fluentui/react-utilitiesgetNativeProps(),omit()and*propertieswere copied from from@fluentui/utilitiesas they are used in converged utilsuseId()hook now temporary uses simplifiedgetId()version, we anyway should reimplement it to be compatible with SSR and scenarios with different globals (document,window)css()were temporary copied tomakeMergeProps(), we should useax()there, but it's not possible now due circular possible dependencies between@fluentui/react-make-stylesand@fluentui/react-utilities(via@fluentui/react-provider)/makeClassesdirectory was removed as we don't have anymore components that are using.scss