1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02: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 feat: make maintenance-related 503s more intuitive (#5018) 2023-10-16 09:27:29 +01:00
arraysHaveSameItems.test.ts fix: resolve issues around changing a toggle's project (#978) 2022-05-18 11:07:19 +02:00
arraysHaveSameItems.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
calculatePercentage.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
capitalizeFirst.ts feat: Advanced playground table (#3978) 2023-06-15 09:29:31 +00:00
cleanConstraint.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
cleanConstraint.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
createFeatureStrategy.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
createFeatureStrategy.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
createLocalStorage.ts feat: Persist navigation settings (#7144) 2024-05-24 13:21:12 +02:00
cyclicIterator.test.ts feat: first draft of chart for instance traffic in frontend (#2670) 2022-12-15 08:47:07 +00:00
cyclicIterator.ts feat: first draft of chart for instance traffic in frontend (#2670) 2022-12-15 08:47:07 +00:00
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 feat: add trial expiration warning banner (#985) 2022-05-19 14:06:18 +02:00
env.ts feat: add trial expiration warning banner (#985) 2022-05-19 14:06:18 +02:00
formatAccessText.test.ts refactor: improve icon labels and tooltips (#884) 2022-04-21 08:26:49 +02:00
formatAccessText.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
formatConstraintValue.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
formatDate.ts feat: daily metrics display (#5836) 2024-01-11 10:39:58 +01:00
formatPath.test.ts Revert "formatApiPath / formatAssetPath - Implement smart functionality to detect double subpath" (#3001) 2023-01-26 15:34:42 +01:00
formatPath.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
formatUnknownError.test.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
formatUnknownError.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
getFeatureMetrics.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
getFeatureTypeIcons.ts Feature list table (#908) 2022-05-05 15:34:46 +02:00
instanceTrial.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
instanceTrial.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
nonEmptyArray.ts fix: ignore empty legal values arrays (#893) 2022-04-20 15:57:01 +02:00
objectId.test.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
objectId.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
oneOf.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
operatorsForContext.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
paginate.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
paginate.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
parseParameter.test.ts refactor: clean up strategy parameter types (#944) 2022-05-04 15:16:34 +02:00
parseParameter.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
permissions.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
projectFilterGenerator.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
removeEmptyStringFields.test.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
removeEmptyStringFields.ts refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
reorderObject.test.ts feat: keep filter order (#5688) 2023-12-19 15:35:39 +01:00
reorderObject.ts feat: keep filter order (#5688) 2023-12-19 15:35:39 +01:00
routePathHelpers.ts Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
search.ts feat: improve group users select search (#1988) 2022-08-30 08:06:59 +01:00
serializeQueryParams.ts feat: add tags filter (#5584) 2023-12-11 14:10:03 +02:00
sortStrategyParameters.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
sortStrategyParameters.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
sortTypes.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
sortTypes.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
storage.test.ts feat: Make storing to local storage robust (#6139) 2024-02-13 09:36:15 +02:00
storage.ts feat: Make storing to local storage robust (#6139) 2024-02-13 09:36:15 +02:00
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 chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
unique-change-request-id.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
unique.ts feat: Persist expand collapse (#7169) 2024-05-27 15:36:24 +02:00
unknownify.ts perf: Simplify queries to prometheus (#2706) 2022-12-19 17:06:59 +01:00
validateParameterValue.test.ts fix: avoid validating boolean and undefined parameter values (#1244) 2022-08-24 10:38:08 +02:00
validateParameterValue.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
variants.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
withTableState.test.tsx feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
withTableState.ts Feat: row actions (#5635) 2023-12-14 09:04:56 +01:00