Skip to content

Commit

Permalink
feat: upgrade react-intl lib (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
soygitana authored Jun 11, 2024
1 parent 2799c5b commit cc9e181
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 94 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"babel-plugin-react-intl": "^7.5.1",
"babel-plugin-transform-require-ignore": "^0.1.1",
"box-node-sdk": "^1.33.0",
"box-ui-elements": "^18.1.0",
"box-ui-elements": "^20.0.0",
"circular-dependency-plugin": "^5.2.0",
"classnames": "^2.2.5",
"conventional-github-releaser": "^3.1.3",
Expand Down Expand Up @@ -94,7 +94,7 @@
"raw-loader": "^4.0.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-intl": "^3.12.0",
"react-intl": "6.4.2",
"react-redux": "^7.2.2",
"react-tether": "1.0.5",
"react-textarea-autosize": "^7.1.2",
Expand Down Expand Up @@ -153,6 +153,7 @@
}
},
"resolutions": {
"uglify-es": "3.3.4"
"uglify-es": "3.3.4",
"**/react-intl/**/@types/react": "^17.0.2"
}
}
2 changes: 0 additions & 2 deletions scripts/jest/react-intl-mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export const defineMessages = messages => messages;

export const createIntlCache = () => {};

export const intlShape = {};

export const injectIntl = Component => {
const WrapperComponent = props => {
const injectedProps = { ...props, intl: intlMock };
Expand Down
186 changes: 97 additions & 89 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1261,19 +1261,62 @@
debug "^3.1.0"
lodash.once "^4.1.1"

"@formatjs/intl-displaynames@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-1.2.0.tgz#b89935e232a454d113c7a6684c01ae391682a46d"
integrity sha512-mUGI2sc6OABkrMj42HlOpK1h96EVrN+gOhzbyCTMH9SVH/gPPLr/zFRH3KFWtBwxqhYsDghvUwm8xkdFOK0kTg==
"@formatjs/[email protected].0":
version "1.15.0"
resolved "https://registry.yarnpkg.com/@formatjs/ecma402-abstract/-/ecma402-abstract-1.15.0.tgz#0a285a5dc69889e15d53803bd5036272e23e5a18"
integrity sha512-7bAYAv0w4AIao9DNg0avfOLTCPE9woAgs6SpXuMq11IN3A+l+cq8ghczwqSZBM11myvPSJA7vLn72q0rJ0QK6Q==
dependencies:
"@formatjs/intl-utils" "^2.2.0"
"@formatjs/intl-localematcher" "0.2.32"
tslib "^2.4.0"

"@formatjs/intl-listformat@^1.3.7":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-1.4.1.tgz#a467cc6857808f2eec78e5bdd0ae03b224e89d0c"
integrity sha512-AX0o1y5xXyMY4ebZOO+UujMcDhniYDs50KpwGzjUPV+bBILwRYqH/6IprZZG/V8YSOtetZlalZiwzJ50dH6PuQ==
"@formatjs/[email protected]":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@formatjs/fast-memoize/-/fast-memoize-2.0.1.tgz#f15aaa73caad5562899c69bdcad8db82adcd3b0b"
integrity sha512-M2GgV+qJn5WJQAYewz7q2Cdl6fobQa69S1AzSM2y0P68ZDbK5cWrJIcPCO395Of1ksftGZoOt4LYCO/j9BKBSA==
dependencies:
tslib "^2.4.0"

"@formatjs/[email protected]":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.4.0.tgz#e165f3594c68416ce15f63793768251de2a85f88"
integrity sha512-6Dh5Z/gp4F/HovXXu/vmd0If5NbYLB5dZrmhWVNb+BOGOEU3wt7Z/83KY1dtd7IDhAnYHasbmKE1RbTE0J+3hw==
dependencies:
"@formatjs/ecma402-abstract" "1.15.0"
"@formatjs/icu-skeleton-parser" "1.4.0"
tslib "^2.4.0"

"@formatjs/[email protected]":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.4.0.tgz#96342eca7c4eef7a309875569e5da973db3465e6"
integrity sha512-Qq347VM616rVLkvN6QsKJELazRyNlbCiN47LdH0Mc5U7E2xV0vatiVhGqd3KFgbc055BvtnUXR7XX60dCGFuWg==
dependencies:
"@formatjs/ecma402-abstract" "1.15.0"
tslib "^2.4.0"

"@formatjs/[email protected]":
version "6.3.2"
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-6.3.2.tgz#be169393a132eed9ca9c10ccb9d22ab150e24c90"
integrity sha512-kBOh0O7QYKLUqaZujLSEF2+au017plPp63R6Hrokl+oDtLyTt9y9pEuCTbOKh/P8CC9THnDLKRKgeVWZw5Ek8A==
dependencies:
"@formatjs/ecma402-abstract" "1.15.0"
"@formatjs/intl-localematcher" "0.2.32"
tslib "^2.4.0"

"@formatjs/[email protected]":
version "7.2.2"
resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-7.2.2.tgz#d787932b5d6f1f936c73c5fec531692ab7069c7a"
integrity sha512-YIruRGwUrmgVOXjWi6VbwPcRNBkEfgK2DFjyyqopCmpfJ+39vnl46oLpVchErnuXs6kkARy5GcGaGV7xRsH4lw==
dependencies:
"@formatjs/ecma402-abstract" "1.15.0"
"@formatjs/intl-localematcher" "0.2.32"
tslib "^2.4.0"

"@formatjs/[email protected]":
version "0.2.32"
resolved "https://registry.yarnpkg.com/@formatjs/intl-localematcher/-/intl-localematcher-0.2.32.tgz#00d4d307cd7d514b298e15a11a369b86c8933ec1"
integrity sha512-k/MEBstff4sttohyEpXxCmC3MqbUn9VvHGlZ8fauLzkbwXmVrEeyzS+4uhrvAk9DWU9/7otYWxyDox4nT/KVLQ==
dependencies:
"@formatjs/intl-utils" "^2.2.0"
tslib "^2.4.0"

"@formatjs/intl-pluralrules@^1.5.5":
version "1.5.5"
Expand All @@ -1289,13 +1332,6 @@
dependencies:
"@formatjs/intl-utils" "^2.2.2"

"@formatjs/intl-relativetimeformat@^4.5.7":
version "4.5.9"
resolved "https://registry.yarnpkg.com/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-4.5.9.tgz#d9b74724a7cbcb4edc9d751b2979195fab4d39cc"
integrity sha512-6rgPXQl5MrPPbCuNiHxolzO6xNCHphCVEWW6RWGy7t/Mek70gD7nq1erW8fbQJ0XL/UeAC0Cz/+ggh7vaSsKNA==
dependencies:
"@formatjs/intl-utils" "^2.2.0"

"@formatjs/intl-unified-numberformat@^3.0.4":
version "3.0.4"
resolved "https://registry.yarnpkg.com/@formatjs/intl-unified-numberformat/-/intl-unified-numberformat-3.0.4.tgz#da689bfdd72e4857ee5a02cccdfd4ddf2c401ab2"
Expand All @@ -1304,13 +1340,6 @@
"@formatjs/intl-utils" "^2.0.4"
unicode-12.1.0 "0.8"

"@formatjs/intl-unified-numberformat@^3.2.0":
version "3.2.0"
resolved "https://registry.yarnpkg.com/@formatjs/intl-unified-numberformat/-/intl-unified-numberformat-3.2.0.tgz#5197987e61ba0972889105e525f1cbe6d91cf46f"
integrity sha512-SZMTV/tR0h7nYhS2x69S7zhHXaBmE0ZTR2OIiakt8W7uYWVgcRhu/LgUeVtGzpwPI2ChcOjNMtX/k6y1M9aDNA==
dependencies:
"@formatjs/intl-utils" "^2.2.0"

"@formatjs/intl-unified-numberformat@^3.3.3":
version "3.3.3"
resolved "https://registry.yarnpkg.com/@formatjs/intl-unified-numberformat/-/intl-unified-numberformat-3.3.3.tgz#c0006fb06588ccce614df50f3469ca2ec92816f2"
Expand All @@ -1323,20 +1352,23 @@
resolved "https://registry.yarnpkg.com/@formatjs/intl-utils/-/intl-utils-2.0.4.tgz#936961b7eade01f6d331d31cc9fb512d1fb3981a"
integrity sha512-zd92HkqxeEprsyM3JLGr+jhhMkmY0NCYQ+Jyw/DC6qZHiFejdO19doYcH5/iMUUPEYLI2h/k7TETqAEez8Btog==

"@formatjs/intl-utils@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@formatjs/intl-utils/-/intl-utils-2.2.0.tgz#ba6e12fe64ff7fd160be392007c47d24b7ae5c75"
integrity sha512-+Az7tR1av1DHZu9668D8uh9atT6vp+FFmEF8BrEssv0OqzpVjpVBGVmcgPzQP8k2PQjVlm/h2w8cTt0knn132w==

"@formatjs/intl-utils@^2.2.2":
version "2.2.2"
resolved "https://registry.yarnpkg.com/@formatjs/intl-utils/-/intl-utils-2.2.2.tgz#adc448035c2e3f60c550bd27c97eca336e641f5a"
integrity sha512-rKINaMRYH3FeNwYjEQwPtsA0kP2/hLLMB9mLi/QYfszz/huTqkInFmYilFRCX4oLlhFXDK5UQQMGNfEavN02Sg==

"@formatjs/macro@^0.2.6":
version "0.2.6"
resolved "https://registry.yarnpkg.com/@formatjs/macro/-/macro-0.2.6.tgz#eb173658d803416a43210778b2f5c04c5a240bb6"
integrity sha512-DfdnLJf8+PwLHzJECZ1Xfa8+sI9akQnUuLN2UdkaExTQmlY0Vs36rMzEP0JoVDBMk+KdQbJNt72rPeZkBNcKWg==
"@formatjs/[email protected]":
version "2.7.2"
resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-2.7.2.tgz#83dc77080a984d4883195bed39eedd947ebfd3d7"
integrity sha512-ziiQfnXwY0/rXhtohSAmYMqDjRsihoMKdl8H2aA+FvxG9638E0XrvfBFCb+1HhimNiuqRz5fTY7F/bZtsJxsjA==
dependencies:
"@formatjs/ecma402-abstract" "1.15.0"
"@formatjs/fast-memoize" "2.0.1"
"@formatjs/icu-messageformat-parser" "2.4.0"
"@formatjs/intl-displaynames" "6.3.2"
"@formatjs/intl-listformat" "7.2.2"
intl-messageformat "10.3.5"
tslib "^2.4.0"

"@hapi/address@^4.0.1":
version "4.0.1"
Expand Down Expand Up @@ -1776,11 +1808,6 @@
"@types/react" "*"
hoist-non-react-statics "^3.3.0"

"@types/invariant@^2.2.31":
version "2.2.31"
resolved "https://registry.yarnpkg.com/@types/invariant/-/invariant-2.2.31.tgz#4444c03004f215289dbca3856538434317dd28b2"
integrity sha512-jMlgg9pIURvy9jgBHCjQp/CyBjYHUwj91etVcDdXkFl2CwTFiQlB+8tcsMeXpXf2PFE5X2pjk4Gm43hQSMHAdA==

"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff"
Expand Down Expand Up @@ -1897,7 +1924,7 @@
"@types/prop-types" "*"
csstype "^2.2.0"

"@types/react@^17.0.2":
"@types/react@16 || 17 || 18", "@types/react@^17.0.2":
version "17.0.2"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.2.tgz#3de24c4efef902dd9795a49c75f760cbe4f7a5a8"
integrity sha512-Xt40xQsrkdvjn1EyWe1Bc0dJLcil/9x2vAuW7ya+PuQip4UYUaXyhzWmAbwRsdMgwOFHpfp7/FFZebDU6Y8VHA==
Expand Down Expand Up @@ -3016,10 +3043,10 @@ box-node-sdk@^1.33.0:
url-template "^2.0.8"
uuid "^3.3.3"

box-ui-elements@^18.1.0:
version "18.1.0"
resolved "https://registry.yarnpkg.com/box-ui-elements/-/box-ui-elements-18.1.0.tgz#59524c99596b3a9bc39b79eefa8d320dc487c7ad"
integrity sha512-D1r1qn0BfzHMHg3qVR+tJfB4jowUtmKtBGjyN1F9oE6dmj/mbp2t12WMpU+x57BRVY/h5COHYwBsYyGjets7tA==
box-ui-elements@^20.0.0:
version "20.0.0"
resolved "https://registry.yarnpkg.com/box-ui-elements/-/box-ui-elements-20.0.0.tgz#a1777a692a5e2f71a79d6dbbcaa785af9a5f8c7c"
integrity sha512-56jY34zxigRi77tja4y+4KF3Z6nqgF7xWz2H0fMwLxD2VPuQVFG2k6GSxGWFBWTHP8JMLzQQ2y+/rxfCdTUhtg==

brace-expansion@^1.1.7:
version "1.1.11"
Expand Down Expand Up @@ -6625,7 +6652,7 @@ hoist-non-react-statics@^3.3.0:
dependencies:
react-is "^16.7.0"

hoist-non-react-statics@^3.3.1, hoist-non-react-statics@^3.3.2:
hoist-non-react-statics@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
Expand Down Expand Up @@ -7034,44 +7061,29 @@ [email protected]:
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296"
integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==

intl-format-cache@^4.2.19, intl-format-cache@^4.2.21:
version "4.2.21"
resolved "https://registry.yarnpkg.com/intl-format-cache/-/intl-format-cache-4.2.21.tgz#d8e0bdfc357448f48dc1ab44670dc64a19b24f51"
integrity sha512-6pZlBdqTRUuuwRWywPItHY1JQwzQxWcpBHv6w4M8T6bGzAsiL/QmI+XsdOhsqJLaL4ZmTATn1kIkNlMk4VzSLQ==

intl-locales-supported@^1.8.4:
version "1.8.4"
resolved "https://registry.yarnpkg.com/intl-locales-supported/-/intl-locales-supported-1.8.4.tgz#e1d19812afa50dc2e2a2b4741ceb4030522d45b1"
integrity sha512-wO0JhDqhshhkq8Pa9CLcstqd1aCXjfMgfMzjD6mDreS3mTSDbjGiMU+07O8BdJGxed7Q0Wf3TFVjGq0W3Y0n1w==

intl-messageformat-parser@^3.6.2:
version "3.6.2"
resolved "https://registry.yarnpkg.com/intl-messageformat-parser/-/intl-messageformat-parser-3.6.2.tgz#03138f6f11ea499268cc63384b7a752d20de44a2"
integrity sha512-+uQVyN+Ip71s9IzbKEZi3HDFhXKcjJhK1JnbaFNMrOh4YqNAuEoRhcqPP/e80vyTm6atNF424y7ga9K9dseG/g==
dependencies:
"@formatjs/intl-unified-numberformat" "^3.0.4"

intl-messageformat-parser@^3.6.4:
version "3.6.4"
resolved "https://registry.yarnpkg.com/intl-messageformat-parser/-/intl-messageformat-parser-3.6.4.tgz#5199d106d816c3dda26ee0694362a9cf823978fb"
integrity sha512-RgPGwue0mJtoX2Ax8EmMzJzttxjnva7gx0Q7mKJ4oALrTZvtmCeAw5Msz2PcjW4dtCh/h7vN/8GJCxZO1uv+OA==
dependencies:
"@formatjs/intl-unified-numberformat" "^3.2.0"

intl-messageformat-parser@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/intl-messageformat-parser/-/intl-messageformat-parser-5.0.0.tgz#da7ed75f1dd05ff82d8a5724cc9a1d38a72ebd75"
integrity sha512-2JwOxRl/1rm+03dJ+ZSOVbFpdPepgEBLuThkeJwBBUzHf53OiZ1FN8kkXTe7WrWLlg+alGsSEMZwTeqpoqvgLw==
dependencies:
"@formatjs/intl-unified-numberformat" "^3.3.3"

intl-messageformat@^7.8.2:
version "7.8.4"
resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-7.8.4.tgz#c29146a06b9cd26662978a4d95fff2b133e3642f"
integrity sha512-yS0cLESCKCYjseCOGXuV4pxJm/buTfyCJ1nzQjryHmSehlptbZbn9fnlk1I9peLopZGGbjj46yHHiTAEZ1qOTA==
intl-messageformat@10.3.5:
version "10.3.5"
resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-10.3.5.tgz#f55684fc663e62616ad59d3a504ea0cac3f267b7"
integrity sha512-6kPkftF8Jg3XJCkGKa5OD+nYQ+qcSxF4ZkuDdXZ6KGG0VXn+iblJqRFyDdm9VvKcMyC0Km2+JlVQffFM52D0YA==
dependencies:
intl-format-cache "^4.2.21"
intl-messageformat-parser "^3.6.4"
"@formatjs/ecma402-abstract" "1.15.0"
"@formatjs/fast-memoize" "2.0.1"
"@formatjs/icu-messageformat-parser" "2.4.0"
tslib "^2.4.0"

into-stream@^3.1.0:
version "3.1.0"
Expand Down Expand Up @@ -10984,25 +10996,21 @@ react-fast-compare@^2.0.1:
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-2.0.4.tgz#e84b4d455b0fec113e0402c329352715196f81f9"
integrity sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==

react-intl@^3.12.0:
version "3.12.0"
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-3.12.0.tgz#98ef1c94434cc25a8c67448e1e283e6bfe11b2fc"
integrity sha512-VQWkFYSKKoi85p3gOXgG80KkBImdBJXwJxssO9gqdelW/fuVnxQLXgYOKuOqWrUz5beXK+qBve6bTpblh1ep2g==
react-intl@6.4.2:
version "6.4.2"
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-6.4.2.tgz#cf4f49f5f89e66e0975927783d0d270e708314fd"
integrity sha512-q8QyLZfbyqV3Ifa7vtjRrgfSQPGTR6Fi+u9tP/CuzhUPl9DJEPIrvUFhlBryKtRW2qNASqchaP/79Obip+h6oA==
dependencies:
"@formatjs/intl-displaynames" "^1.2.0"
"@formatjs/intl-listformat" "^1.3.7"
"@formatjs/intl-relativetimeformat" "^4.5.7"
"@formatjs/intl-unified-numberformat" "^3.0.4"
"@formatjs/intl-utils" "^2.0.4"
"@formatjs/macro" "^0.2.6"
"@formatjs/ecma402-abstract" "1.15.0"
"@formatjs/icu-messageformat-parser" "2.4.0"
"@formatjs/intl" "2.7.2"
"@formatjs/intl-displaynames" "6.3.2"
"@formatjs/intl-listformat" "7.2.2"
"@types/hoist-non-react-statics" "^3.3.1"
"@types/invariant" "^2.2.31"
hoist-non-react-statics "^3.3.1"
intl-format-cache "^4.2.19"
intl-locales-supported "^1.8.4"
intl-messageformat "^7.8.2"
intl-messageformat-parser "^3.6.2"
shallow-equal "^1.2.1"
"@types/react" "16 || 17 || 18"
hoist-non-react-statics "^3.3.2"
intl-messageformat "10.3.5"
tslib "^2.4.0"

react-is@^16.12.0, react-is@^16.7.0, react-is@^16.8.1:
version "16.12.0"
Expand Down Expand Up @@ -11988,11 +11996,6 @@ shallow-clone@^3.0.0:
dependencies:
kind-of "^6.0.2"

shallow-equal@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.2.1.tgz#4c16abfa56043aa20d050324efa68940b0da79da"
integrity sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==

shebang-command@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
Expand Down Expand Up @@ -13106,6 +13109,11 @@ tslib@^1.9.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==

tslib@^2.4.0:
version "2.6.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==

tsutils@^3.17.1:
version "3.17.1"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759"
Expand Down

0 comments on commit cc9e181

Please sign in to comment.