-
Notifications
You must be signed in to change notification settings - Fork 119
Upgrade paste to react 19 #4258
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
Changes from 31 commits
47ad1e1
1b1bacf
30029e6
7cf28df
0bf4b3d
abb7dd3
7620ea9
7c8214a
97038cd
0df2ffb
7158061
9144946
9c77098
8fbeb19
71cb06b
5f0f6cc
d64c0e7
e83002f
650d33e
d883c1f
2efb751
c369526
ac728e0
00c3755
9fe4d44
af4404e
d5bf0dc
9f769c5
901184c
5ce4089
8b74e15
b35c968
d10bb6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
--- | ||
"@twilio-paste/account-switcher": major | ||
"@twilio-paste/ai-chat-log": major | ||
"@twilio-paste/alert": major | ||
"@twilio-paste/alert-dialog": major | ||
"@twilio-paste/anchor": major | ||
"@twilio-paste/avatar": major | ||
"@twilio-paste/badge": major | ||
"@twilio-paste/base-radio-checkbox": major | ||
"@twilio-paste/blockquote": major | ||
"@twilio-paste/breadcrumb": major | ||
"@twilio-paste/button": major | ||
"@twilio-paste/button-group": major | ||
"@twilio-paste/callout": major | ||
"@twilio-paste/card": major | ||
"@twilio-paste/chart-provider": major | ||
"@twilio-paste/chat-composer": major | ||
"@twilio-paste/chat-log": major | ||
"@twilio-paste/checkbox": major | ||
"@twilio-paste/code-block": major | ||
"@twilio-paste/combobox": major | ||
"@twilio-paste/corner-ornament": major | ||
"@twilio-paste/data-grid": major | ||
"@twilio-paste/date-picker": major | ||
"@twilio-paste/description-list": major | ||
"@twilio-paste/detail-text": major | ||
"@twilio-paste/disclosure": major | ||
"@twilio-paste/display-heading": major | ||
"@twilio-paste/display-pill-group": major | ||
"@twilio-paste/editable-code-block": major | ||
"@twilio-paste/example-text": major | ||
"@twilio-paste/file-picker": major | ||
"@twilio-paste/file-uploader": major | ||
"@twilio-paste/form": major | ||
"@twilio-paste/form-pill-group": major | ||
"@twilio-paste/heading": major | ||
"@twilio-paste/help-text": major | ||
"@twilio-paste/in-page-navigation": major | ||
"@twilio-paste/inline-code": major | ||
"@twilio-paste/inline-control-group": major | ||
"@twilio-paste/input": major | ||
"@twilio-paste/input-box": major | ||
"@twilio-paste/keyboard-key": major | ||
"@twilio-paste/label": major | ||
"@twilio-paste/list": major | ||
"@twilio-paste/menu": major | ||
"@twilio-paste/meter": major | ||
"@twilio-paste/minimizable-dialog": major | ||
"@twilio-paste/modal": major | ||
"@twilio-paste/page-header": major | ||
"@twilio-paste/pagination": major | ||
"@twilio-paste/paragraph": major | ||
"@twilio-paste/popover": major | ||
"@twilio-paste/product-switcher": major | ||
"@twilio-paste/progress-bar": major | ||
"@twilio-paste/progress-steps": major | ||
"@twilio-paste/radio-button-group": major | ||
"@twilio-paste/radio-group": major | ||
"@twilio-paste/screen-reader-only": major | ||
"@twilio-paste/select": major | ||
"@twilio-paste/separator": major | ||
"@twilio-paste/side-modal": major | ||
"@twilio-paste/side-panel": major | ||
"@twilio-paste/sidebar": major | ||
"@twilio-paste/skeleton-loader": major | ||
"@twilio-paste/slider": major | ||
"@twilio-paste/spinner": major | ||
"@twilio-paste/status": major | ||
"@twilio-paste/summary-detail": major | ||
"@twilio-paste/switch": major | ||
"@twilio-paste/table": major | ||
"@twilio-paste/tabs": major | ||
"@twilio-paste/textarea": major | ||
"@twilio-paste/time-picker": major | ||
"@twilio-paste/timeline": major | ||
"@twilio-paste/toast": major | ||
"@twilio-paste/tooltip": major | ||
"@twilio-paste/topbar": major | ||
"@twilio-paste/truncate": major | ||
"@twilio-paste/user-dialog": major | ||
"@twilio-paste/visual-picker": major | ||
"@twilio-paste/core": major | ||
"@twilio-paste/aspect-ratio": major | ||
"@twilio-paste/flex": major | ||
"@twilio-paste/grid": major | ||
"@twilio-paste/media-object": major | ||
"@twilio-paste/stack": major | ||
"@twilio-paste/box": major | ||
"@twilio-paste/combobox-primitive": major | ||
"@twilio-paste/disclosure-primitive": major | ||
"@twilio-paste/listbox-primitive": major | ||
"@twilio-paste/menu-primitive": major | ||
"@twilio-paste/modal-dialog-primitive": major | ||
"@twilio-paste/non-modal-dialog-primitive": major | ||
"@twilio-paste/sibling-box": major | ||
"@twilio-paste/tabs-primitive": major | ||
"@twilio-paste/text": major | ||
"@twilio-paste/tooltip-primitive": major | ||
"@twilio-paste/customization": major | ||
"@twilio-paste/icons": major | ||
"@twilio-paste/animation-library": major | ||
"@twilio-paste/clipboard-copy-library": major | ||
"@twilio-paste/code-editor-library": major | ||
"@twilio-paste/data-visualization-library": major | ||
"@twilio-paste/dropdown-library": major | ||
"@twilio-paste/lexical-library": major | ||
"@twilio-paste/react-spectrum-library": major | ||
"@twilio-paste/react-textarea-autosize-library": major | ||
"@twilio-paste/reakit-library": major | ||
"@twilio-paste/styling-library": major | ||
"@twilio-paste/syntax-highlighter-library": major | ||
"@twilio-paste/uid-library": major | ||
"@twilio-paste/style-props": major | ||
"@twilio-paste/theme": major | ||
"@twilio-paste/types": major | ||
"@twilio-paste/utils": major | ||
"@twilio-paste/token-contrast-checker": minor | ||
--- | ||
|
||
[account-switcher, ai-chat-log, alert, alert-dialog, anchor, avatar, badge, base-radio-checkbox, blockquote, breadcrumb, button, button-group, callout, card, chart-provider, chat-composer, chat-log, checkbox, code-block, combobox, corner-ornament, data-grid, date-picker, description-list, detail-text, disclosure, display-heading, display-pill-group, editable-code-block, example-text, file-picker, file-uploader, form, form-pill-group, heading, help-text, in-page-navigation, inline-code, inline-control-group, input, input-box, keyboard-key, label, list, menu, meter, minimizable-dialog, modal, page-header, pagination, paragraph, popover, product-switcher, progress-bar, progress-steps, radio-button-group, radio-group, screen-reader-only, select, separator, side-modal, side-panel, sidebar, skeleton-loader, slider, spinner, status, summary-detail, switch, table, tabs, textarea, time-picker, timeline, toast, tooltip, topbar, truncate, user-dialog, visual-picker, core, aspect-ratio, flex, grid, media-object, stack, box, combobox-primitive, disclosure-primitive, listbox-primitive, menu-primitive, modal-dialog-primitive, non-modal-dialog-primitive, sibling-box, tabs-primitive, text, tooltip-primitive, customization, icons, animation-library, clipboard-copy-library, code-editor-library, data-visualization-library, dropdown-library, lexical-library, react-spectrum-library, react-textarea-autosize-library, reakit-library, styling-library, syntax-highlighter-library, uid-library, style-props, theme, token-contrast-checker, types, utils]: Upgrade to react 19 and drop support for react 16 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ jobs: | |
run: yarn lint | ||
|
||
tests: | ||
name: Test repository using React 18 | ||
name: Test repository using React 19 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
|
@@ -162,8 +162,8 @@ jobs: | |
- name: Run tests | ||
run: yarn test | ||
|
||
react17_tests: | ||
name: Test repository using React 17 | ||
react18_tests: | ||
name: Test repository using React 18 | ||
runs-on: ubuntu-latest | ||
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
@@ -202,19 +202,18 @@ jobs: | |
- name: Build packages | ||
run: yarn build | ||
|
||
- name: Install React 17 | ||
- name: Install React 18 | ||
run: | | ||
yarn add @types/react@^17.0.0 react@^17.0.2 react-dom@^17.0.2 | ||
yarn set resolution react@npm:^18.0.0 ^17.0.2 | ||
yarn set resolution @types/react@npm:^18.0.0 ^17.0.31 | ||
yarn set resolution react-dom@npm:^18.0.0 ^17.0.2 | ||
yarn set resolution @testing-library/react@npm:^13.4.0 ^12.1.4 | ||
yarn add @types/react@^18.0.27 react@^18.0.0 react-dom@^18.0.0 | ||
yarn set resolution react@npm:^19.0.0 ^18.0.0 | ||
yarn set resolution @types/react@npm:^19.0.0 ^18.0.27 | ||
yarn set resolution react-dom@npm:^19.0.0 ^18.0.0 | ||
|
||
- name: Run tests | ||
run: yarn test | ||
|
||
react16_tests: | ||
name: Test repository using React 16 | ||
react17_tests: | ||
name: Test repository using React 17 | ||
runs-on: ubuntu-latest | ||
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
@@ -253,13 +252,13 @@ jobs: | |
- name: Build packages | ||
run: yarn build | ||
|
||
- name: Install React 16 | ||
- name: Install React 17 | ||
run: | | ||
yarn add @types/react@^16.0.0 react@^16.8.6 react-dom@^16.8.6 | ||
yarn set resolution react@npm:^18.0.0 ^16.8.6 | ||
yarn set resolution @types/react@npm:^18.0.0 ^16.0.0 | ||
yarn set resolution react-dom@npm:^18.0.0 ^16.8.6 | ||
yarn set resolution @testing-library/react@npm:^13.4.0 ^12.1.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed this since react 18 works with latest version of |
||
yarn add @types/react@^17.0.0 react@^17.0.2 react-dom@^17.0.2 | ||
yarn set resolution react@npm:^19.0.0 ^17.0.2 | ||
yarn set resolution @types/react@npm:^19.0.0 ^17.0.31 | ||
yarn set resolution react-dom@npm:^19.0.0 ^17.0.2 | ||
yarn set resolution @testing-library/react@npm:^16.2.0 ^12.1.4 | ||
|
||
- name: Run tests | ||
run: yarn test | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,4 +99,4 @@ cypress/downloads | |
out | ||
.vscode-test | ||
|
||
.nx/cache | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. after rebuilding some directory other than cache was being added in git |
||
.nx |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
- [Build system packages](#build-system-packages) | ||
- [Type Check](#type-check) | ||
- [Lint](#lint) | ||
- [Test React 18](#test-react-18) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. praise: yay documentation! 👏 |
||
- [Test React 17](#test-react-17) | ||
- [Test React 16](#test-react-16) | ||
- [Code formatting checks](#code-formatting-checks) | ||
- [Categorize the PR using labels](#categorize-the-pr-using-labels) | ||
- [Danger checks](#danger-checks) | ||
|
@@ -47,13 +47,13 @@ This job downloads the build cache of the monorepo, and then runs the Typescript | |
|
||
This job downloads the build cache of the monorepo, and then runs ESLint. | ||
|
||
### Test React 17 | ||
### Test React 18 | ||
|
||
This job downloads the build cache of the monorepo, and then runs our Jest test suite using React 17. | ||
This job downloads the build cache of the monorepo, and then runs our Jest test suite using React 18. | ||
|
||
### Test React 16 | ||
### Test React 17 | ||
|
||
This job downloads the build cache of the monorepo, and then runs our Jest test suite using React 16. | ||
This job downloads the build cache of the monorepo, and then runs our Jest test suite using React 17. | ||
|
||
### Code formatting checks | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.