@formatjs/intl-displaynames 1.2.9 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.10](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@1.2.9...@formatjs/intl-displaynames@1.2.10) (2020-05-16)
7
+
8
+ **Note:** Version bump only for package @formatjs/intl-displaynames
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.2.9](https://github.com/formatjs/formatjs/compare/@formatjs/intl-displaynames@1.2.8...@formatjs/intl-displaynames@1.2.9) (2020-05-05)
7
15
 
8
16
  **Note:** Version bump only for package @formatjs/intl-displaynames
@@ -113,7 +113,8 @@
113
113
  // NOTE: we must NOT call `supportedLocalesOf` of a formatjs polyfill, or their implementation
114
114
  // will even eventually call this method recursively. Here we use `Intl.DateTimeFormat` since it
115
115
  // is not polyfilled by `@formatjs`.
116
- return Intl.DateTimeFormat.supportedLocalesOf(locales || '');
116
+ // TODO: Fix TypeScript type def for this bc undefined is just fine
117
+ return Intl.DateTimeFormat.supportedLocalesOf(locales);
117
118
  }
118
119
 
119
120
  function createResolveLocale(getDefaultLocale) {