From 9c2bc198977623633a79b3a58457d49f93824b6e Mon Sep 17 00:00:00 2001 From: garronej Date: Mon, 28 Aug 2023 19:12:06 +0200 Subject: [PATCH] Give futher instruction for migrating to v8 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 94e2064d..2bd1f087 100644 --- a/README.md +++ b/README.md @@ -138,11 +138,15 @@ There are very few breaking changes in this major version. - The [`--external-assets` build option has been removed](https://docs.keycloakify.dev/v/v7/build-options#external-assets-deprecated) it was a performance optimization that is no longer relevant now that we have lazy loading. +- `kcContext.usernameEditDisabled` is now `kcContext.usernameHidden`, the type was lying, it has been updated to reflect what's actually on the `kcContext` at runtime. + If you want to see in detail what should be updated [see issue](https://github.com/keycloakify/keycloakify/pull/399), or you can search and replace `usernameEditDisabled` -> `usernameHidden` it'll do the trick. + - The `usePrepareTemplate` prototype has been changed, you can search and replace: `src/keycloak-theme/login/Template.tsx` ```ts +url, "stylesCommon": [ "node_modules/patternfly/dist/css/patternfly.min.css", "node_modules/patternfly/dist/css/patternfly-additions.min.css", @@ -167,6 +171,7 @@ and `src/keycloak-theme/account/Template.css` ```ts +url, "stylesCommon": ["node_modules/patternfly/dist/css/patternfly.min.css", "node_modules/patternfly/dist/css/patternfly-additions.min.css"], "styles": ["css/account.css"], ```