Skip to content

Releases: addwiki/mediawiki-api-base

1.1.1

20 Jul 08:51
Compare
Choose a tag to compare

Version 1.1.1 (20 July 2016)

  • Issue with README fixed

2.2.0

18 Jan 11:20
Compare
Choose a tag to compare

Version 2.2.0 (18 January 2016)

  • Added MediawikiApiInterface, now implemented by MediawikiApi
  • Added ApiRequester, now implemented by MediawikiApi
  • Added AsyncApiRequester, now implemented by MediawikiApi
  • The constructor of MediawikiApi was made package public

2.1.0

29 Dec 13:35
Compare
Choose a tag to compare

Version 2.1.0 (29 December 2015)

  • Retry throttled actions that return a failed-save code and anti-abuse message
  • Added delay between retried requests
  • Added and used Guzzle/ClientFactory

2.0.0

18 Dec 10:55
Compare
Choose a tag to compare

Overview

Version 2.0.0 (18 December 2015)

  • Added MediawikiApi::newFromApiEndpoint and MediawikiApi::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

05 Sep 12:12
Compare
Choose a tag to compare

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

23 Aug 13:25
Compare
Choose a tag to compare

Overview

  • First 'major' release

Version 1.0.0 (23 August 2015)

  • Added FluentRequest object
  • Requires "guzzlehttp/retry-subscriber": "~2.0"

0.3

01 Jun 09:12
Compare
Choose a tag to compare
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

13 Jan 19:27
Compare
Choose a tag to compare
0.2

Version 0.2 (13 January 2015)

Compatibility changes

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

0.1.2

25 May 16:54
Compare
Choose a tag to compare

Version 0.1.2 (25 May 2014)

  • Fix issue where API tokens were not returned

0.1.1

14 May 16:55
Compare
Choose a tag to compare
Remove unused parameters