1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/frontend/src/utils
Jaanus Sellin 3acb3ad2c2
feat: upgrade from react v17 to v18 (#7265)
**Upgrade to React v18 for Unleash v6. Here's why I think it's a good
time to do it:**
- Command Bar project: We've begun work on the command bar project, and
there's a fantastic library we want to use. However, it requires React
v18 support.
- Straightforward Upgrade: I took a look at the upgrade guide
https://react.dev/blog/2022/03/08/react-18-upgrade-guide and it seems
fairly straightforward. In fact, I was able to get React v18 running
with minimal changes in just 10 minutes!
- Dropping IE Support: React v18 no longer supports Internet Explorer
(IE), which is no longer supported by Microsoft as of June 15, 2022.
Upgrading to v18 in v6 would be a good way to align with this change.

TS updates:
* FC children has to be explicit:
https://stackoverflow.com/questions/71788254/react-18-typescript-children-fc
* forcing version 18 types in resolutions:
https://sentry.io/answers/type-is-not-assignable-to-type-reactnode/

Test updates:
* fixing SWR issue that we have always had but it manifests more in new
React (https://github.com/vercel/swr/issues/2373)

---------

Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2024-06-11 13:59:52 +03:00
..
apiUtils.ts
arraysHaveSameItems.test.ts
arraysHaveSameItems.ts
calculatePercentage.ts
capitalizeFirst.ts
cleanConstraint.test.ts
cleanConstraint.ts
createFeatureStrategy.test.ts
createFeatureStrategy.ts
createLocalStorage.ts feat: Persist navigation settings (#7144) 2024-05-24 13:21:12 +02:00
cyclicIterator.test.ts
cyclicIterator.ts
deepOmit.test.ts fix: omit yes no from stale data comparison (#7052) 2024-05-14 12:42:39 +02:00
deepOmit.ts fix: omit yes no from stale data comparison (#7052) 2024-05-14 12:42:39 +02:00
env.test.ts
env.ts
formatAccessText.test.ts
formatAccessText.ts
formatConstraintValue.ts
formatDate.ts
formatPath.test.ts
formatPath.ts
formatUnknownError.test.ts
formatUnknownError.ts
getFeatureMetrics.ts
getFeatureTypeIcons.ts
instanceTrial.test.ts
instanceTrial.ts
nonEmptyArray.ts
objectId.test.ts
objectId.ts
oneOf.ts
operatorsForContext.ts
paginate.test.ts
paginate.ts
parseParameter.test.ts
parseParameter.ts
permissions.ts
projectFilterGenerator.ts
removeEmptyStringFields.test.ts
removeEmptyStringFields.ts
reorderObject.test.ts
reorderObject.ts
routePathHelpers.ts
search.ts
serializeQueryParams.ts
sortStrategyParameters.test.ts
sortStrategyParameters.ts
sortTypes.test.ts
sortTypes.ts
storage.test.ts
storage.ts
strategyNames.tsx chore: deprecate custom strategies (#7186) 2024-05-28 12:33:53 +02:00
testIds.ts feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
testRenderer.tsx feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
testServer.ts
unique-change-request-id.ts
unique.ts feat: Persist expand collapse (#7169) 2024-05-27 15:36:24 +02:00
unknownify.ts
validateParameterValue.test.ts
validateParameterValue.ts
variants.ts
withTableState.test.tsx feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
withTableState.ts