-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4951a11
commit 0ea38b0
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
_This file documents changes made between version releases._ | ||
|
||
### 3.1.0 | ||
Breaking changes/deprecations: | ||
|
||
**Please apply [a patch like this](https://github.com/wikimedia-gadgets/twinkle-starter/commit/326e51ac12d5a2e) to your twinkle due to these changes:** | ||
- `mediawiki.storage` is added as a new dependency. Edit your gadget definition and `dev-loader.js` file to include it. | ||
- `loadAdditionalMediaWikiMessages()` is deprecated. Instead of using it, set extra messages in `Twinkle.extraMwMessages` array, which would cause `init()` to fetch those too. That is, replace `Twinkle.preModuleInitHooks = [ () => loadAdditionalMediaWikiMessages(mwMessageList) ];` with `Twinkle.extraMwMessages = mwMessageList;`. This change reduces the number of network requests needed to fetch all messages. | ||
|
||
Notable improvements: | ||
- This version brings significant performance improvements in: | ||
- i18n messages fetched from Gerrit for non-English languages is now cached in the LocalStorage to avoid repeated, slow and mostly uncached requests to Gerrit on every page load. | ||
- The overall bundle size is greatly reduced due to tree-shaking. The config property to enable this was missing earlier. | ||
- The i18n library no longer bundles data like language fallbacks, plural rules and digit transforms for all languages. Rather these are now part of the i18n messages files and thus are retrieved only for the active language, without an additional network request. |