From 14e37a93249235c5b0bdbc502cdae0fe12ba977f Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Mon, 3 Feb 2020 13:33:33 -0300 Subject: [PATCH] chore(release): v3.0.1 :tada: --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f597d6e..aa62cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,33 @@ +## [3.0.1](https://github.com/kaisermann/svelte-i18n/compare/v2.3.1...v3.0.1) (2020-02-03) + + +### Features + +* 🎸 add runtime typings ([7bf47d8](https://github.com/kaisermann/svelte-i18n/commit/7bf47d879006ffeec51ec112f20c74c72abe87ff)), closes [#43](https://github.com/kaisermann/svelte-i18n/issues/43) +* 🎸 make date,time and number formatters tree-shakeable ([6526245](https://github.com/kaisermann/svelte-i18n/commit/6526245bf9d40d25af14ec1e7acb34772a9f3f0e)) +* 🎸 make getClientLocale tree-shakeable ([31b556b](https://github.com/kaisermann/svelte-i18n/commit/31b556bc3f77bc5b581541976a82f898a398c01a)) + + +### BREAKING CHANGES + +* It's now needed to explicitly import the `getClientLocale` method to use +its heuristics when setting the initial locale. This makes the method +and its helpers to be tree-shakeable. + +```js +import { init, getClientLocale } from 'svelte-i18n' + +init({ + initialLocale: getClientLocale({ ... }) +}) +``` +* Changes completely the API. Now, to format a number, date or time, the +developer must explicitly import the formatter store: + +`import { time, date, number } from 'svelte-i18n'` + + + # [3.0.0](https://github.com/kaisermann/svelte-i18n/compare/v2.3.1...v3.0.0) (2020-02-03)