Releases: addwiki/mediawiki-api-base
Releases · addwiki/mediawiki-api-base
1.1.1
2.2.0
2.1.0
2.0.0
Overview
- tldr; Async added, Factory methods added!
- Blog: http://addshore.com/2015/12/mediawiki-api-base-2-0-0/
Version 2.0.0 (18 December 2015)
- Added
MediawikiApi::newFromApiEndpoint
andMediawikiApi::newFromPage
- MediawikiApi constructor access marked as private (please use static factory methods)
- Added async methods to MediawikiApi
getRequestAsync
&postRequestAsync
- Requires "guzzlehttp/guzzle": "~6.0" ( From "guzzle/guzzle": "~5.2" )
- Requires "guzzlehttp/promises": "~1.0"
1.1.0
Version 1.1.0 (5 September 2015)
- Requests that encounter a connection exception are now retried
- Requests that result in non blocking mediawiki api error codes are now retried (ratelimited, readonly, internal_api_error_DBQueryError)
- MediawikiApi now implements PSR-3 LoggerAwareInterface
- MediawikiSession now implements PSR-3 LoggerAwareInterface
- MediawikiApi no longer raises PHP warnings, instead it logs warnings
1.0.0
0.3
Version 0.3 (1 June 2015)
- UsageExceptions can now contain the full api result array
- No longer uses addwiki/guzzle-mediawiki-client
- Now using "guzzlehttp/guzzle": "~5.0" ( From "guzzle/guzzle": "~3.2" )
- Added getHeaders method to Request interface
- ApiUser now accepts a domain
0.2
Version 0.2 (13 January 2015)
Compatibility changes
- Session objects now use action=query&meta=tokens to get tokens when possible.
NOTE: Token names have changed between versions
Deprecations
- MediawikiApi getAction and postAction methods have been deprecated in favour of getRequest and postRequest
New features
- If warnings are present in API results E_USER_WARNING errors are triggered
- The Request interface and SimpleRequest class have been added
- MediawikiApi now has a getRequest and postRequest method
- MediawikiApi now has a getVersion method
- Unsuccessful logins now throw a UsageException with extra details