mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
3acb3ad2c2
**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> |
||
---|---|---|
.. | ||
metrics | ||
validators | ||
allSettledWithRejection.test.ts | ||
allSettledWithRejection.ts | ||
anonymise.test.ts | ||
anonymise.ts | ||
anyEventEmitter.test.ts | ||
anyEventEmitter.ts | ||
arraysHaveSameItems.test.ts | ||
arraysHaveSameItems.ts | ||
collect-ids.ts | ||
constants.ts | ||
constantTimeCompare.test.ts | ||
constantTimeCompare.ts | ||
db-lock.test.ts | ||
db-lock.ts | ||
ensureArray.ts | ||
ensureStringValue.test.ts | ||
ensureStringValue.ts | ||
escape-regex.ts | ||
extract-user.test.ts | ||
extract-user.ts | ||
findDuplicates.test.ts | ||
findDuplicates.ts | ||
findPublicFolder.ts | ||
flag-resolver.test.ts | ||
flag-resolver.ts | ||
flattenPayload.test.ts | ||
flattenPayload.ts | ||
format-base-uri.test.ts | ||
format-base-uri.ts | ||
generateImageUrl.test.ts | ||
generateImageUrl.ts | ||
get-prop-from-string.ts | ||
graceful-shutdown.ts | ||
index.ts | ||
is-email.test.ts | ||
is-email.ts | ||
isDefined.test.ts | ||
isDefined.ts | ||
isEmpty.ts | ||
load-index-html.ts | ||
map-values.test.ts | ||
map-values.ts | ||
median.test.ts | ||
median.ts | ||
metrics-helper.ts | ||
omit-keys.test.ts | ||
omit-keys.ts | ||
parseEnvVar.test.ts | ||
parseEnvVar.ts | ||
postgres-version-checker.test.ts | ||
postgres-version-checker.ts | ||
random-id.ts | ||
read-file.ts | ||
rewriteHTML.test.ts | ||
rewriteHTML.ts | ||
segments.ts | ||
semver.test.ts | ||
semver.ts | ||
snakeCase.test.ts | ||
snakeCase.ts | ||
time-utils.test.ts | ||
time-utils.ts | ||
timer.test.ts | ||
timer.ts | ||
unique.test.ts | ||
unique.ts | ||
validateJsonString.test.ts | ||
validateJsonString.ts | ||
validateOrigin.test.ts | ||
validateOrigin.ts | ||
version.ts |