Skip to content

chore: Add generator to make all rc deps carets#23719

Merged
ling1726 merged 9 commits intomicrosoft:masterfrom
ling1726:chore/generator-caret-deps
Jun 27, 2022
Merged

chore: Add generator to make all rc deps carets#23719
ling1726 merged 9 commits intomicrosoft:masterfrom
ling1726:chore/generator-caret-deps

Conversation

@ling1726
Copy link
Copy Markdown
Contributor

@ling1726 ling1726 commented Jun 24, 2022

In preparation for final release, creates a generator that will transform all RC pinned dependencies to caret dependencies

README.md has more documentation on what this generator does

@ling1726 ling1726 marked this pull request as ready for review June 24, 2022 13:11
@ling1726 ling1726 requested a review from a team as a code owner June 24, 2022 13:11
@ling1726 ling1726 requested a review from a team as a code owner June 24, 2022 13:14
@fabricteam
Copy link
Copy Markdown
Collaborator

fabricteam commented Jun 24, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
554 B
348 B
priority-overflow
createOverflowManager
2.936 kB
1.212 kB
react-accordion
Accordion (including children components)
77.836 kB
23.683 kB
react-avatar
Avatar
46.757 kB
13.737 kB
react-avatar
AvatarGroup
136.183 kB
40.662 kB
react-avatar
AvatarGroupItem
66.472 kB
19.079 kB
react-badge
Badge
21.653 kB
6.862 kB
react-badge
CounterBadge
22.557 kB
7.172 kB
react-badge
PresenceBadge
23.357 kB
7.099 kB
react-button
Button
35.704 kB
9.499 kB
react-button
CompoundButton
42.777 kB
10.733 kB
react-button
MenuButton
38.279 kB
10.365 kB
react-button
SplitButton
45.612 kB
11.71 kB
react-button
ToggleButton
50.929 kB
10.919 kB
react-card
Card - All
66.957 kB
19.042 kB
react-card
Card
62.113 kB
17.911 kB
react-card
CardFooter
8.461 kB
3.555 kB
react-card
CardHeader
10.026 kB
4.067 kB
react-card
CardPreview
8.562 kB
3.61 kB
react-combobox
Combobox
62.897 kB
21.536 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.067 kB
52.144 kB
react-components
react-components: FluentProvider & webLightTheme
31.883 kB
10.516 kB
react-divider
Divider
16.321 kB
5.837 kB
react-image
Image
10.68 kB
4.215 kB
react-input
Input
22.861 kB
7.512 kB
react-label
Label
9.238 kB
3.815 kB
react-link
Link
12.082 kB
4.88 kB
react-menu
Menu (including children components)
116.688 kB
35.475 kB
react-menu
Menu (including selectable components)
119.863 kB
35.96 kB
react-overflow
hooks only
10.839 kB
4.146 kB
react-popover
Popover
104.924 kB
31.964 kB
react-portal
Portal
10.033 kB
3.753 kB
react-positioning
usePositioning
23.839 kB
8.292 kB
react-provider
FluentProvider
14.76 kB
5.596 kB
react-radio
Radio
30.438 kB
10.41 kB
react-radio
RadioGroup
14.319 kB
5.711 kB
react-select
Select
20.002 kB
7.171 kB
react-slider
Slider
26.136 kB
8.387 kB
react-spinbutton
SpinButton
43.378 kB
12.277 kB
react-spinner
Spinner
19.073 kB
6.308 kB
react-switch
Switch
26.58 kB
8.602 kB
react-text
Text - Default
11.572 kB
4.537 kB
react-text
Text - Wrappers
14.882 kB
4.977 kB
react-textarea
Textarea
22.228 kB
7.523 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
28.995 kB
6.215 kB
react-theme
Teams: Light theme
16.973 kB
4.86 kB
react-tooltip
Tooltip
44.55 kB
15.386 kB
react-utilities
SSRProvider
189 B
161 B
🤖 This report was generated against 02ee30f8ef173f3a1d2c0c73bcdaef8abae5c055

"@fluentui/styles": "^0.63.1",
"@hot-loader/react-dom": "16.14.0",
"@mdx-js/react": "^1.5.5",
"@types/semver": "^5.5.0",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this should never have been a dependency

@DustyTheBot
Copy link
Copy Markdown

DustyTheBot commented Jun 24, 2022

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS against 3f20d48

tools/utils.ts Outdated
Comment on lines +186 to +188
export function isPackageVersionConverged(version: string) {
return version.startsWith('9.');
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Once this will start with a caret it will be no longer safe, do you want to change this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've never actually changed it, I've just moved it out to another function. but I get your point, I'll do a semver.parse on it

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Jun 24, 2022

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 3f20d48:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@ling1726 ling1726 requested a review from layershifter June 24, 2022 13:22
@fabricteam
Copy link
Copy Markdown
Collaborator

fabricteam commented Jun 24, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1366 1386 5000
Button mount 1017 1021 5000
FluentProvider mount 1878 1677 5000
FluentProviderWithTheme mount 753 700 10
FluentProviderWithTheme virtual-rerender 708 626 10
FluentProviderWithTheme virtual-rerender-with-unmount 742 714 10
MakeStyles mount 2078 1994 50000

@fabricteam
Copy link
Copy Markdown
Collaborator

fabricteam commented Jun 24, 2022

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
ImageMinimalPerf.default 378 349 1.08:1
HeaderSlotsPerf.default 783 732 1.07:1
TreeWith60ListItems.default 169 158 1.07:1
ButtonMinimalPerf.default 174 164 1.06:1
FormMinimalPerf.default 414 391 1.06:1
SkeletonMinimalPerf.default 349 329 1.06:1
GridMinimalPerf.default 344 328 1.05:1
PortalMinimalPerf.default 180 171 1.05:1
TextMinimalPerf.default 343 326 1.05:1
VideoMinimalPerf.default 653 623 1.05:1
CardMinimalPerf.default 564 543 1.04:1
ListCommonPerf.default 634 611 1.04:1
RefMinimalPerf.default 258 247 1.04:1
DropdownManyItemsPerf.default 692 675 1.03:1
FlexMinimalPerf.default 291 282 1.03:1
ItemLayoutMinimalPerf.default 1206 1170 1.03:1
MenuButtonMinimalPerf.default 1753 1710 1.03:1
RadioGroupMinimalPerf.default 440 429 1.03:1
SegmentMinimalPerf.default 349 339 1.03:1
IconMinimalPerf.default 610 590 1.03:1
AnimationMinimalPerf.default 559 550 1.02:1
ButtonOverridesMissPerf.default 1514 1489 1.02:1
ButtonSlotsPerf.default 540 530 1.02:1
ChatDuplicateMessagesPerf.default 293 287 1.02:1
ListWith60ListItems.default 633 621 1.02:1
LoaderMinimalPerf.default 693 684 1.01:1
MenuMinimalPerf.default 850 840 1.01:1
ProviderMinimalPerf.default 407 402 1.01:1
ReactionMinimalPerf.default 376 373 1.01:1
SplitButtonMinimalPerf.default 4436 4406 1.01:1
TextAreaMinimalPerf.default 484 478 1.01:1
CustomToolbarPrototype.default 2788 2763 1.01:1
ChatWithPopoverPerf.default 371 371 1:1
CheckboxMinimalPerf.default 2734 2732 1:1
EmbedMinimalPerf.default 4158 4145 1:1
InputMinimalPerf.default 1296 1297 1:1
ListMinimalPerf.default 510 508 1:1
PopupMinimalPerf.default 630 629 1:1
ProviderMergeThemesPerf.default 1265 1269 1:1
TableManyItemsPerf.default 1936 1937 1:1
TableMinimalPerf.default 391 392 1:1
ToolbarMinimalPerf.default 953 954 1:1
TreeMinimalPerf.default 815 817 1:1
AccordionMinimalPerf.default 145 147 0.99:1
AlertMinimalPerf.default 261 264 0.99:1
AttachmentMinimalPerf.default 148 150 0.99:1
CarouselMinimalPerf.default 467 474 0.99:1
ChatMinimalPerf.default 724 729 0.99:1
DatepickerMinimalPerf.default 5868 5931 0.99:1
DialogMinimalPerf.default 775 781 0.99:1
DropdownMinimalPerf.default 3146 3164 0.99:1
LabelMinimalPerf.default 371 374 0.99:1
SliderMinimalPerf.default 1680 1702 0.99:1
StatusMinimalPerf.default 671 680 0.99:1
DividerMinimalPerf.default 340 348 0.98:1
LayoutMinimalPerf.default 344 350 0.98:1
ListNestedPerf.default 547 557 0.98:1
TooltipMinimalPerf.default 1124 1144 0.98:1
AttachmentSlotsPerf.default 1090 1124 0.97:1
BoxMinimalPerf.default 335 347 0.97:1
RosterPerf.default 1103 1133 0.97:1
HeaderMinimalPerf.default 354 368 0.96:1
AvatarMinimalPerf.default 185 194 0.95:1

@size-auditor
Copy link
Copy Markdown

size-auditor bot commented Jun 24, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 02ee30f8ef173f3a1d2c0c73bcdaef8abae5c055 (build)

@fabricteam
Copy link
Copy Markdown
Collaborator

fabricteam commented Jun 24, 2022

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 784 784 5000
Breadcrumb mount 2290 2252 1000
Checkbox mount 1257 1250 5000
CheckboxBase mount 1076 1080 5000
ChoiceGroup mount 3957 3900 5000
ComboBox mount 783 760 1000
CommandBar mount 8787 8822 1000
ContextualMenu mount 9323 9315 1000
DefaultButton mount 948 973 5000
DetailsRow mount 3118 3054 5000
DetailsRowFast mount 3126 3085 5000
DetailsRowNoStyles mount 2926 2908 5000
Dialog mount 2340 2299 1000
DocumentCardTitle mount 151 159 1000
Dropdown mount 2821 2830 5000
FocusTrapZone mount 1579 1582 5000
FocusZone mount 1523 1516 5000
IconButton mount 1393 1388 5000
Label mount 328 332 5000
Layer mount 2558 2552 5000
Link mount 422 434 5000
MenuButton mount 1200 1230 5000
MessageBar mount 1883 1823 5000
Nav mount 2586 2644 1000
OverflowSet mount 988 991 5000
Panel mount 1788 1822 1000
Persona mount 851 855 1000
Pivot mount 1132 1124 1000
PrimaryButton mount 1095 1091 5000
Rating mount 6683 6622 5000
SearchBox mount 1128 1126 5000
Shimmer mount 2191 2210 5000
Slider mount 1679 1673 5000
SpinButton mount 3933 3945 5000
Spinner mount 408 408 5000
SplitButton mount 2509 2458 5000
Stack mount 479 485 5000
StackWithIntrinsicChildren mount 1892 1858 5000
StackWithTextChildren mount 4674 4630 5000
SwatchColorPicker mount 9046 9103 5000
TagPicker mount 2015 2016 5000
TeachingBubble mount 70999 70304 5000
Text mount 389 395 5000
TextField mount 1196 1165 5000
ThemeProvider mount 952 946 5000
ThemeProvider virtual-rerender 600 615 5000
ThemeProvider virtual-rerender-with-unmount 1434 1456 5000
Toggle mount 729 702 5000
buttonNative mount 101 103 5000

ling1726 and others added 3 commits June 24, 2022 19:52
@ling1726 ling1726 merged commit d4db521 into microsoft:master Jun 27, 2022
rohitpagariya pushed a commit to rohitpagariya/fluentui that referenced this pull request Jun 28, 2022
* chore: Add generator to make all rc deps carets

* add missing

* rename to rc-caret

* remove @types/semver as dep

* use semver to parse version string

* remove non-existing options

* Update tools/generators/rc-caret/index.ts

Co-authored-by: Tristan Watanabe <tristan.watanabe@gmail.com>

* rename host to tree

Co-authored-by: Tristan Watanabe <tristan.watanabe@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants