@formatjs/intl-listformat 1.4.4 → 1.4.8

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,41 @@
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.4.8](https://github.com/formatjs/formatjs/compare/@formatjs/intl-listformat@1.4.7...@formatjs/intl-listformat@1.4.8) (2020-05-16)
7
+
8
+ **Note:** Version bump only for package @formatjs/intl-listformat
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.4.7](https://github.com/formatjs/formatjs/compare/@formatjs/intl-listformat@1.4.6...@formatjs/intl-listformat@1.4.7) (2020-05-05)
15
+
16
+ **Note:** Version bump only for package @formatjs/intl-listformat
17
+
18
+
19
+
20
+
21
+
22
+ ## 1.4.6 (2020-04-28)
23
+
24
+ **Note:** Version bump only for package @formatjs/intl-listformat
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.4.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-listformat@1.4.4...@formatjs/intl-listformat@1.4.5) (2020-04-24)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **eslint-plugin-formatjs:** add missing dep ([776390e](https://github.com/formatjs/formatjs/commit/776390e9d6cb3bc1eef07b2e92057136cfe95b76))
36
+
37
+
38
+
39
+
40
+
6
41
  ## [1.4.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-listformat@1.4.3...@formatjs/intl-listformat@1.4.4) (2020-04-14)
7
42
 
8
43
 
package/README.md CHANGED
@@ -1,48 +1,3 @@
1
1
  # Intl ListFormat
2
2
 
3
- A spec-compliant polyfill/ponyfill for Intl.ListFormat fully tested by the [official ECMAScript Conformance test suite](https://github.com/tc39/test262)
4
-
5
- [![npm Version][npm-badge]][npm]
6
- ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-listformat)
7
-
8
- ## Installation
9
-
10
- ```
11
- npm install @formatjs/intl-listformat
12
- ```
13
-
14
- ## Usage
15
-
16
- To use the polyfill, just import it to make sure that a fully functional Intl.ListFormat is available in your environment:
17
-
18
- ```
19
- import '@formatjs/intl-listformat/polyfill'
20
- ```
21
-
22
- If Intl.ListFormat already exists, the polyfill will not be loaded.
23
-
24
- To use this as a ponyfill:
25
-
26
- ```
27
- import IntlListFormat from '@formatjs/intl-listformat'
28
- ```
29
-
30
- By default, this library comes with `en` data. To load additional locale, you can include them on demand:
31
-
32
- ```js
33
- import '@formatjs/intl-listformat/polyfill';
34
- import '@formatjs/intl-listformat/dist/locale-data/de'; // Add locale data for de
35
- ```
36
-
37
- If you want to polyfill all locales (e.g for Node):
38
-
39
- ```
40
- import '@formatjs/intl-listformat/polyfill-locales'
41
- ```
42
-
43
- ## Tests
44
-
45
- This library is fully [test262](https://github.com/tc39/test262/tree/master/test/intl402/ListFormat)-compliant.
46
-
47
- [npm]: https://www.npmjs.org/package/@formatjs/intl-listformat
48
- [npm-badge]: https://img.shields.io/npm/v/@formatjs/intl-listformat.svg?style=flat-square
3
+ We've migrated the docs to https://formatjs.io.
@@ -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 () {