diff --git a/login-workflow/example/package.json b/login-workflow/example/package.json index 5f95f997..8d2ad082 100644 --- a/login-workflow/example/package.json +++ b/login-workflow/example/package.json @@ -43,7 +43,7 @@ "@types/node": "^17.0.23", "@types/react": "^18.0.31", "@types/react-dom": "^18.0.0", - "date-fns": "^2.29.2", + "date-fns": "^3.0.6", "i18next": "^23.7.13", "react": "^18.2.0", "react-app-polyfill": "^3.0.0", diff --git a/login-workflow/example/yarn.lock b/login-workflow/example/yarn.lock index 1668fe3c..6aac102c 100644 --- a/login-workflow/example/yarn.lock +++ b/login-workflow/example/yarn.lock @@ -1114,6 +1114,13 @@ dependencies: regenerator-runtime "^0.14.0" +"@babel/runtime@^7.23.2": + version "7.23.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.7.tgz#dd7c88deeb218a0f8bd34d5db1aa242e0f203193" + integrity sha512-w06OXVOFso7LcbzMiDGt+3X7Rh7Ho8MmgPoWU3rarH+8upf+wSU/grlGbWzQyr3DkdN6ZeuMFjpdwW0Q+HxobA== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.3.3": version "7.21.9" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.21.9.tgz#bf8dad2859130ae46088a99c1f265394877446fb" @@ -4305,12 +4312,10 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" -date-fns@^2.29.2: - version "2.30.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" +date-fns@^3.0.6: + version "3.0.6" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.0.6.tgz#fe3aeb7592d359f075ffc41cb16139828810ca83" + integrity sha512-W+G99rycpKMMF2/YD064b2lE7jJGUe+EjOES7Q8BIGY8sbNdbgcs9XFTZwvzc9Jx1f3k7LB7gZaZa7f8Agzljg== debug@2.6.9, debug@^2.6.0: version "2.6.9" diff --git a/login-workflow/package.json b/login-workflow/package.json index 400083c5..c9e75081 100644 --- a/login-workflow/package.json +++ b/login-workflow/package.json @@ -33,7 +33,7 @@ "@emotion/styled": "^11.6.0", "@mui/icons-material": "^5.10.15", "@mui/material": "^5.10.15", - "date-fns": "^2.14.0", + "date-fns": "^3.0.6", "i18next": "^23.0.1", "react": "^16.13.1 || ^17.0.0 || ^18.0.0", "react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0", @@ -89,7 +89,7 @@ "@typescript-eslint/parser": "^6.7.3", "babel-jest": "^28.1.3", "clsx": "^1.1.1", - "date-fns": "^2.22.1", + "date-fns": "^3.0.6", "eslint": "^8.50.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.29.4", diff --git a/login-workflow/src/utils/i18nUtils.ts b/login-workflow/src/utils/i18nUtils.ts index 1fb7d8bb..8a275eb7 100644 --- a/login-workflow/src/utils/i18nUtils.ts +++ b/login-workflow/src/utils/i18nUtils.ts @@ -1,5 +1,5 @@ import i18n from 'i18next'; -import { fr, enUS, es, zhCN, ptBR } from 'date-fns/locale'; +import { fr, enUS, es, zhCN, ptBR, Locale } from 'date-fns/locale'; // for getting the device's language locale // 'en' is default deviceLocale diff --git a/login-workflow/yarn.lock b/login-workflow/yarn.lock index 4f1317e9..3064aa99 100644 --- a/login-workflow/yarn.lock +++ b/login-workflow/yarn.lock @@ -1046,7 +1046,7 @@ resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== -"@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.19.0", "@babel/runtime@^7.21.0", "@babel/runtime@^7.22.15", "@babel/runtime@^7.22.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.19.0", "@babel/runtime@^7.22.15", "@babel/runtime@^7.22.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": version "7.22.15" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.15.tgz#38f46494ccf6cf020bd4eed7124b425e83e523b8" integrity sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA== @@ -3777,12 +3777,10 @@ data-urls@^3.0.2: whatwg-mimetype "^3.0.0" whatwg-url "^11.0.0" -date-fns@^2.22.1: - version "2.30.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" +date-fns@^3.0.6: + version "3.0.6" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.0.6.tgz#fe3aeb7592d359f075ffc41cb16139828810ca83" + integrity sha512-W+G99rycpKMMF2/YD064b2lE7jJGUe+EjOES7Q8BIGY8sbNdbgcs9XFTZwvzc9Jx1f3k7LB7gZaZa7f8Agzljg== debug@2.6.9: version "2.6.9"