Skip to content

Latest commit

 

History

History
146 lines (107 loc) · 5.34 KB

RELEASENOTES.md

File metadata and controls

146 lines (107 loc) · 5.34 KB

Release Notes

Version 3.1 (October 2024)

  • Installatble with PHP 8.1+
  • Requires "wikibase/data-model-services": "~4.0"
  • Split \DataModel namespace out into wikibase-datamodel package.
  • RevisionGetter now returns a generic Content object if the entity type is known but content mapping is not, instead of throwing.
  • WikibaseFactory default consstruction changed, with backward compatable fallback.
  • Can now be used to iteract with WikibaseMediaInfo entities, thanks to new functioanlity in the addwiki/wikibase-datamodel package.

Version 3.0 (23 October 2021)

  • Installable with 7.4+ (including PHP8)
  • Typing added throughout
  • PSR4 namespacing. Now in Addwiki\Wikibase

Version 2.8 (16 February 2021)

  • Installable with 7.3+ (including PHP8)
  • Set maxlag parameter when EditInfo with maxlag is passed to Addwiki\Wikibase\Api\WikibaseApi
  • RevisionSaver only sets clear parameter if it is given an empty entity

Version 2.7 (15 February 2021)

  • Also installable with wikibase/data-model ~9.2|~8.0

Version 2.6 (2 February 2021)

  • Require PHP 7.2+
  • Initial release from new development monorepo
  • All addwiki libraries now have aligned version numbers

Version 0.8 (2020-05-10)

  • Allows more versions of wikibase/data-model ~4.2|~5.0|~6.0|~7.0|~8.0
  • Allows version 0.7 of addwiki/mediawiki-datamodel
  • Uses EntityRetrievingTermLookup instead of TermApiLookup to implement TermLookup interface
  • Added newEntitySearcher method to WikibaseFactory

Version 0.7 (2016-07-04)

  • Added newEntityLookup method to WikibaseFactory
  • Added newItemLookup method to WikibaseFactory
  • Added newPropertyLookup method to WikibaseFactory
  • Added newTermLookup method to WikibaseFactory
  • Added newEntityDocumentSaver method to WikibaseFactory
  • Added ValueParser::parseAsync
  • Implemented EntityRedirectLookup::getRedirectForEntityId
  • ValueParser methods can now parse multiple values simultaneously
  • RevisionSaver fallsback to EditInfo of Revision if no EditInfo is explicitly passed in
  • Fixes to StatementCreator
  • Fixes to ReferenceSetter

Version 0.6 (2015-12-11)

  • Requires "wikibase/data-model-services": "~3.0"
  • Requires "wikibase/data-model-serialization": "~2.0"
  • Requires "wikibase/data-model": "~4.2"
  • All deprecated Claim class and method aliases have been removed
  • RevisionSaver now always sets the 'clear' param. Meaning elements can be removed from an entity.

Version 0.5 (2015-06-29)

Additions

  • RevisionsGetter::getRevisions can now accept serialized EntityId strings
  • Added BadgeIdsGetter service
  • Added RedirectCreator service

Deprecations

  • Renamed ClaimGetter to StatementGetter, leaving a b/c deprecated alias
  • Renamed ClaimSetter to StatementSetter, leaving a b/c deprecated alias
  • Renamed ClaimRemover to StatementRemover, leaving a b/c deprecated alias
  • Renamed ClaimCreator to StatementCreator, leaving a b/c deprecated alias
  • Renamed WikibaseRepo::newClaimGetter to WikibaseRepo::newStatementGetter, leaving a b/c deprecated alias
  • Renamed WikibaseRepo::newClaimSetter to WikibaseRepo::newStatementSetter, leaving a b/c deprecated alias
  • Renamed WikibaseRepo::newClaimCreator to WikibaseRepo::newStatementCreator, leaving a b/c deprecated alias
  • Renamed WikibaseRepo::newClaimRemover to WikibaseRepo::newStatementRemover, leaving a b/c deprecated alias

Breaks

  • Moved ItemApiLookup to Lookup namespace
  • Moved PropertyApiLookup to Lookup namespace

Libs

  • NoLonger Require addwiki/mediawiki-api
  • Requires "wikibase/data-model": "~4.0"
  • Requires "wikibase/data-model-services": "~1.0"
  • Requires "data-values/data-values": "~1.0.0" from "~0.1.0"
  • Requires "data-values/time": "~0.8.0" from "~0.7.0"
  • Requires "data-values/number": "~0.5.0" from "~0.4.0"
  • Requires "data-values/common": "~0.3.0" from "~0.2.0"
  • Requires "addwiki/mediawiki-api-base": "~0.3.0"
  • Requires "addwiki/mediawiki-datamodel": "~0.5.0"

Version 0.4 (2014-12-14)

Version 0.3 (2014-09-15)

Fixes

  • You can now clear an entity using RevisionSaver by passing an empty Item/Property/Entity object. Prior to this a UsageException would be thrown as the clear param was not passed to the api.
  • SiteLinkSetter now uses the correct API module (wbsetsitelink). Previous to this it was for some reason trying to use 'wblinktitles'.

Changes

  • RevisionSaver->save() now returns an Entity object instead of always returning true.

Libs

We now require the following:

  • "wikibase/data-model-serialization": "~1.1"
  • "wikibase/data-model": "~2.0|~1.0"
  • "data-values/geo": "~1.0|~0.2.0"
  • "data-values/data-types": "~0.4.0",

Version 0.2 (2014-07-15)

  • Adjust for mediawiki-api 0.3
  • Adjust for mediawiki-datamodel 0.3
  • Internal classes renamed
  • Introduced a Service namespace and ServiceFactory
  • Introduce Property and Item Content objects
  • Renamed ServiceFactory to WikibaseFactory
  • Renamed RevisionRepo to RevisionGetter
  • Introduced a GenericOptions object
  • Introduced several new services

Version 0.1 (2014-02-23)

Initial release with the following features:

  • EntityRevision
  • RevisionRepo
  • RevisionSaver
  • ServiceFactory
  • Can Get, Edit, Save, Create, Manipulate Entities