Skip to content

Commit 16ec702

Browse files
dependabot[bot]PavelJankoski
authored andcommitted
dev: bump @formatjs/intl-datetimeformat from 6.18.2 to 7.1.2
Bumps [@formatjs/intl-datetimeformat](https://github.com/formatjs/formatjs) from 6.18.2 to 7.1.2. - [Release notes](https://github.com/formatjs/formatjs/releases) - [Commits](https://github.com/formatjs/formatjs/compare/@formatjs/intl-datetimeformat@6.18.2...@formatjs/intl-datetimeformat@7.1.2) --- updated-dependencies: - dependency-name: "@formatjs/intl-datetimeformat" dependency-version: 7.1.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 9afdbb7 commit 16ec702

3 files changed

Lines changed: 25 additions & 17 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
"yargs": "^17.7.2"
8383
},
8484
"dependencies": {
85-
"@formatjs/intl-datetimeformat": "^6.18.2",
86-
"@formatjs/intl-displaynames": "^6.8.13",
85+
"@formatjs/intl-datetimeformat": "^7.1.2",
86+
"@formatjs/intl-displaynames": "^7.1.2",
8787
"@formatjs/intl-listformat": "^8.1.2",
8888
"@formatjs/intl-locale": "^5.1.2",
8989
"@formatjs/intl-numberformat": "^9.1.2",

pkg/webui/lib/components/with-locale.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ const WithLocale = ({ children }) => {
115115
if (!window.Intl.DisplayNames) {
116116
log('Polyfilling Intl.DisplayNames')
117117
await import(
118-
/* webpackChunkName: "locale-display-names" */ '@formatjs/intl-displaynames/polyfill'
118+
/* webpackChunkName: "locale-display-names" */
119+
// eslint-disable-next-line import/extensions -- package exports require explicit .js
120+
'@formatjs/intl-displaynames/polyfill.js'
119121
)
120122
// Instead of using dynamic imports that would cause all possible locales to be bundled
121123
// we only load the ones we want to support which as of now are English and Japanese.
@@ -167,7 +169,9 @@ const WithLocale = ({ children }) => {
167169
if (!window.Intl.DateTimeFormat) {
168170
log('Polyfilling Intl.DateTimeFormat')
169171
await import(
170-
/* webpackChunkName: "locale-date-time-format" */ '@formatjs/intl-datetimeformat/polyfill'
172+
/* webpackChunkName: "locale-date-time-format" */
173+
// eslint-disable-next-line import/extensions -- package exports require explicit .js
174+
'@formatjs/intl-datetimeformat/polyfill.js'
171175
)
172176
}
173177

@@ -260,7 +264,11 @@ const LocaleLoader = ({ children }) => {
260264
if (window.Intl.DateTimeFormat.polyfilled) {
261265
log(`Polyfilling DateTimeFormat for language ${language}`)
262266
promises.push(
263-
import(/* webpackChunkName: "locale" */ '@formatjs/intl-datetimeformat/add-all-tz'),
267+
import(
268+
/* webpackChunkName: "locale" */
269+
// eslint-disable-next-line import/extensions -- package exports require explicit .js
270+
'@formatjs/intl-datetimeformat/add-all-tz.js'
271+
),
264272
)
265273
switch (language) {
266274
case 'ja':

yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,23 +1818,23 @@
18181818
"@formatjs/ecma402-abstract" "2.3.6"
18191819
tslib "^2.8.0"
18201820

1821-
"@formatjs/intl-datetimeformat@^6.18.2":
1822-
version "6.18.2"
1823-
resolved "https://registry.yarnpkg.com/@formatjs/intl-datetimeformat/-/intl-datetimeformat-6.18.2.tgz#46c27cedb9af0e719c209cc94f7347182645b2e8"
1824-
integrity sha512-XXGJVOi/vmB+eLtYDs+ggDIvba/+VNmNrDZOtMyol5D0zl+zzuPps6W3TgDflpKfzg4memAEbLnA1wC6/TBSjQ==
1821+
"@formatjs/intl-datetimeformat@^7.1.2":
1822+
version "7.1.2"
1823+
resolved "https://registry.yarnpkg.com/@formatjs/intl-datetimeformat/-/intl-datetimeformat-7.1.2.tgz#95795c940d67f113089f813b09e49080bd1cf02f"
1824+
integrity sha512-fkZcxkfQExGR1QPemva1YO15UnLiPJBTOdil1lnNA2dgZLCxL3mWSMcwJi5/s8qLmi4mO2JPfW7v41h1lKUtQQ==
18251825
dependencies:
1826-
"@formatjs/ecma402-abstract" "2.3.6"
1827-
"@formatjs/intl-localematcher" "0.6.2"
1826+
"@formatjs/ecma402-abstract" "3.0.8"
1827+
"@formatjs/intl-localematcher" "0.7.5"
18281828
decimal.js "^10.4.3"
18291829
tslib "^2.8.0"
18301830

1831-
"@formatjs/intl-displaynames@^6.8.13":
1832-
version "6.8.13"
1833-
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-6.8.13.tgz#5e85980b40fbaa0b81e504608e33db6e16a3891e"
1834-
integrity sha512-VbY7BdYJX5eURVKLk2grndUQtnbCLNbcJId/Sb/PsX7fWXiqWvg7qt/mecVHRzqoSEoGCQToKDxzpJj8RC0s3g==
1831+
"@formatjs/intl-displaynames@^7.1.2":
1832+
version "7.1.2"
1833+
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-7.1.2.tgz#44047b4538c57a00bfa0270931d5ddc5b9c179d6"
1834+
integrity sha512-iuKrkUHWXm+9zHU/MQXuq+6mdbj+vhrDsApSgNKbEC68Yu00fw6vtMHAOK6n253s7K5aIppaHKQulESSOe1qUw==
18351835
dependencies:
1836-
"@formatjs/ecma402-abstract" "2.3.6"
1837-
"@formatjs/intl-localematcher" "0.6.2"
1836+
"@formatjs/ecma402-abstract" "3.0.8"
1837+
"@formatjs/intl-localematcher" "0.7.5"
18381838
tslib "^2.8.0"
18391839

18401840
"@formatjs/intl-enumerator@2.1.2":

0 commit comments

Comments
 (0)