-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react): Upgrade to React 18 (#4992)
* chore: upgrade to react 18 fix(react): param order doc: add missing `}` doc: update `custom-web-index.md` fix: update resolution of @types/react fix: upgrade docs yarn.lock chore(deps): bump react version to latest * chore(@testing-library/react): switch to version 13 style(lint): fix `sort-package-json` violation ran `yarn workspaces foreach --parallel dlx sort-package-json` doc: update to reference RTL's `renderHook` * build(yarn): remove duplicates defined at top level TODO: test this, not sure if this will break things... removing in a separate commit to easily revert * chore(react@18): remove `unstable_batchedUpdates` isn't necessary anymore because batching happens automatically reactwg/react-18#21 (comment) * fix(typescript): cast to get typescript error to go away * fix(typescript): needed to get typescript error to go away chore(babel): add to be able to build * test(unit): skip failing test * chore(test@unit.snapshots): update snapshots * chore(deps): run dedupe * chore(fixtures): update ran `yarn build:test-project --rebuild-fixture` manually updated `__fixtures__/test-project/package.json` * chore(codemods): fix for TypeScript / Auth stuff? see: https://github.com/redwoodjs/redwood/actions/runs/3380341134/jobs/5613032702#step:24:59 * Revert "chore(codemods): fix for TypeScript / Auth stuff?" This reverts commit 9ac1231f45e5eead7e7631ca52381f8e76d64797. * test(unit): skip flakey windows test * doc(📓): correct URL * chore(deps): bump react type * chore(deps): remove stale dep * chore(deps): bump react * chore(deps): alight react type versions * chore(deps): 🤷♀️ * chore(deps): bump react-dom types * fix(typescript): for build failure ``` src/web/customRender.tsx(23,14): error TS2742: The inferred type of 'customRenderHook' cannot be named without a reference to '@testing-library/react/node_modules/@testing-library/dom/types/queries'. This is likely not portable. A type annotation is necessary. ``` * chore: bring back commented out tests * chore: favor inline `children` prop definition see: #4992 (comment) * chore(test@ci): fix for failing smoke test ``` ... src/pages/ProfilePage/ProfilePage.tsx(31,21): error TS2322: Type 'unknown' is not assignable to type 'ReactNode'. ... ``` https://github.com/redwoodjs/redwood/actions/runs/3942582022/jobs/6746415523#step:24:82 see: #4992 (comment) * chore(test@ci): fix for failing smoke test ``` ... src/pages/ProfilePage/ProfilePage.tsx(31,21): error TS2322: Type 'unknown' is not assignable to type 'ReactNode'. ... ``` https://github.com/redwoodjs/redwood/actions/runs/3942582022/jobs/6746415523#step:24:82 see: #4992 (comment) * chore(test@ci): fix for failing smoke test ``` ... src/pages/ProfilePage/ProfilePage.tsx(31,21): error TS2322: Type 'unknown' is not assignable to type 'ReactNode'. ... ``` https://github.com/redwoodjs/redwood/actions/runs/3942582022/jobs/6746415523#step:24:82 see: #4992 (comment) * Revert "chore(test@ci): fix for failing smoke test" This reverts commit eb2b72f. * chore: rebuild project fixture ran `yarn build:test-project --rebuild-fixture` * chore: try bumping the default jest timeout * chore: add to all slow tests just in case... * Hardcode currentUser attributes * router.test.tsx: Format source, and increase timeout * yarn.lock * chore(deps): bump `@types/react` * Update packages/auth-providers/auth0/web/package.json * chore: fix failed merge resolve * chore: fix failed merge resolve * chore: remove resolutions * chore: remove typescript-transform-paths * fix: proxies forgotPassword test we need to use expect for waitFor to do its thing, see https://testing-library.com/docs/dom-testing-library/api-async/#waitfor * fix: revert docs react upgrade * fix: use toBeCalledWith instead of toBe on length Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com> Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
- Loading branch information
1 parent
8ed23e3
commit 51f7f25
Showing
39 changed files
with
565 additions
and
504 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/auth-providers/dbAuth/web/src/__tests__/dbAuth.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/auth-providers/firebase/web/src/__tests__/firebase.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/auth-providers/netlify/web/src/__tests__/netlify.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/auth-providers/supabase/web/src/__tests__/supabase.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/auth-providers/supertokens/web/src/__tests__/supertokens.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.