Skip to content

Commit

Permalink
.locale() => .addLocale()
Browse files Browse the repository at this point in the history
  • Loading branch information
purecatamphetamine committed Jan 26, 2019
1 parent 18e9bb0 commit c040e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,8 @@

* Moved `RelativeTimeFormat` to a separate `relative-time-format` package.

* (breaking change) Removed `.locale()` static function. Use `.addLocale()` instead.

* (breaking change) `flavour` property renamed in non-single-word cases: underscores (`_`) got replaced with dashes (`-`). Examples: `short_convenient` -> `short-convenient`, `long_convenient` -> `long-convenient`, `short_time` -> `short-time`, `long_time` -> `long-time`. The relevant keys in locale `index.js` files got renamed the same way.

* (breaking change) `RelativeTimeFormat` is no longer exported from this library.
Expand Down
4 changes: 4 additions & 0 deletions MIGRATION.md
@@ -1,5 +1,9 @@
# Migration from version `1.x`

### `.locale()` function removed.

If there're any `.locale()` static function calls then replace them with `.addLocale()`.

### `flavour`s that got renamed.

If any custom styles were defined replace the following `flavour`s in their definition:
Expand Down

0 comments on commit c040e77

Please sign in to comment.