@formatjs/intl-relativetimeformat 4.5.15 → 4.5.16

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
+ ## [4.5.16](https://github.com/formatjs/formatjs/compare/@formatjs/intl-relativetimeformat@4.5.15...@formatjs/intl-relativetimeformat@4.5.16) (2020-05-16)
7
+
8
+ **Note:** Version bump only for package @formatjs/intl-relativetimeformat
9
+
10
+
11
+
12
+
13
+
6
14
  ## [4.5.15](https://github.com/formatjs/formatjs/compare/@formatjs/intl-relativetimeformat@4.5.14...@formatjs/intl-relativetimeformat@4.5.15) (2020-05-05)
7
15
 
8
16
  **Note:** Version bump only for package @formatjs/intl-relativetimeformat
@@ -129,7 +129,8 @@
129
129
  // NOTE: we must NOT call `supportedLocalesOf` of a formatjs polyfill, or their implementation
130
130
  // will even eventually call this method recursively. Here we use `Intl.DateTimeFormat` since it
131
131
  // is not polyfilled by `@formatjs`.
132
- return Intl.DateTimeFormat.supportedLocalesOf(locales || '');
132
+ // TODO: Fix TypeScript type def for this bc undefined is just fine
133
+ return Intl.DateTimeFormat.supportedLocalesOf(locales);
133
134
  }
134
135
 
135
136
  var __extends = (undefined && undefined.__extends) || (function () {