Releases: wikimedia-gadgets/types-mediawiki
Releases · wikimedia-gadgets/types-mediawiki
1.9.0
What's Changed
mw.Api
/mw.Rest
:- Add custom return
Promise
types, providing anabort()
method (fix #50) - Add types to reject/notify callback arguments of returned promises.
- Add custom return
mw.Api.assertCurrentUser
:- Fix
assertUser
parameter being added when the user is anonymous.
- Fix
mw.Api.loadMessagesIfMissing
:- Fix returned promise only resolving to
string
. It may resolve toundefined
if no valid messages have been provided.
- Fix returned promise only resolving to
mw.Api.saveOptions
:- Fix returned promise only resolving to
string
. It may resolve toundefined
if no options have been provided. Note that if the argument types allow to deduce that at least one option has been provided, the callback argument types are narrowed accordingly.
- Fix returned promise only resolving to
Full Changelog: 1.8.2...1.9.0
1.8.2
What's Changed
jquery.client
: FixProfile
not allowing unknown platforms, names, layouts, or versions.- Documentation updates and fixes.
Full Changelog: 1.8.1...1.8.2
1.8.1
1.8.0
What's Changed
Full Changelog: 1.7.1...1.8.0
1.7.1
What's Changed
- fix: change Api.AssertUser interface -> type alias by @sportshead in #46
Full Changelog: 1.7.0...1.7.1
1.7.0
What's Changed
- feat: vue module typings, dtslint -> tsd by @sportshead in #43
- bump version to 1.7.0 by @sportshead in #44
Full Changelog: 1.6.0...1.7.0
1.6.0
1.5.0
What's Changed
- Add information about OOjs and OOUI in README by @diskdance in #20
- Fix type of
mw.loader.addStyleTag
by @AnYiEE in #21 - Add a type variable to Hook by @Derugon in #26
- Add wgUrlProtocols and two jquery.textSelection commands by @bhsd-harry in #30
- Update types and add doc comments by @siddharthvp in #31
New Contributors
- @diskdance made their first contribution in #20
- @Derugon made their first contribution in #26
- @siddharthvp made their first contribution in #31
Full Changelog: 1.4.0...1.5.0
1.4.0
What's Changed
- Allow null for saveOption, saveOptions argument by @hsl0 in #16
- Use any for mw.message parameter type by @ChlodAlejandro in c7dbd08
- Add type definitions for
mw.storage
by @AnYiEE in #18 - Fix type of
mw.notify
&mw.notification
by @AnYiEE in #19
New Contributors
Full Changelog: 1.3.0...1.40
1.3.0
Changelog: 1.2.0...1.3.0