diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b45dd1..17d56f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/MIGRATION.md b/MIGRATION.md index 3b5e2d0..66f400d 100644 --- a/MIGRATION.md +++ b/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: