Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Feb 9, 2019
1 parent 9e422ab commit abc2951
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
## [1.0.2](https://github.com/wessberg/intl-list-format/compare/v1.0.1...v1.0.2) (2019-02-09)

## 1.0.1 (2019-02-07)
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Some highlights of this polyfill include:
- [Maintainers](#maintainers)
- [Backers](#backers)
- [Patreon](#patreon)
- [FAQ](#faq)
- [FAQ](#faq)
- [What is the default locale?](#what-is-the-default-locale)
- [Are there any known quirks?](#are-there-any-known-quirks)
- [License](#license)
Expand Down Expand Up @@ -116,10 +116,10 @@ One way to do so is with an async import:

```typescript
if (!("ListFormat" in Intl)) {
await import("intl-list-format");
await import("intl-list-format");

// or with commonjs:
require("intl-list-format");
// or with commonjs:
require("intl-list-format");
}
```

Expand Down Expand Up @@ -166,9 +166,9 @@ The following examples are taken [directly from the original proposal](https://g
// Create a list formatter in your locale
// with default values explicitly passed in.
const lf = new Intl.ListFormat("en", {
localeMatcher: "best fit", // other values: "lookup"
type: "conjunction", // "conjunction", "disjunction" or "unit"
style: "long" // other values: "short" or "narrow"
localeMatcher: "best fit", // other values: "lookup"
type: "conjunction", // "conjunction", "disjunction" or "unit"
style: "long" // other values: "short" or "narrow"
});

lf.format(["Motorcycle", "Truck", "Car"]);
Expand All @@ -192,7 +192,7 @@ lf.formatToParts(["Foo", "Bar", "Baz"]);
### Intl.ListFormat.prototype.resolvedOptions

```typescript
const lf = new Intl.ListFormat("en", { type: "unit", style: "narrow" });
const lf = new Intl.ListFormat("en", {type: "unit", style: "narrow"});

lf.resolvedOptions();
// > {locale: "en", style: "narrow", type: "unit"}
Expand Down Expand Up @@ -251,7 +251,7 @@ Do you want to contribute? Awesome! Please follow [these recommendations](./CONT

<!-- SHADOW_SECTION_FAQ_START -->

### FAQ
## FAQ

<!-- SHADOW_SECTION_FAQ_END -->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intl-list-format",
"version": "1.0.1",
"version": "1.0.2",
"description": "A fully spec-compliant polyfill for 'Intl.ListFormat'",
"repository": {
"type": "git",
Expand Down

0 comments on commit abc2951

Please sign in to comment.