Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Releases: wmde/DataTypes

1.0.0

30 Dec 09:47

Choose a tag to compare

  • DataType and DataTypeFactory do not accept empty strings any more.
  • Removed DataType::getLabel along with the DataTypes\Message class.
  • Added DataType::getMessageKey.
  • Added a basic PHPCS rule set, can be run with composer phpcs.

0.5.2

17 Feb 11:35

Choose a tag to compare

  • Fixed cache invalidation in DataTypesModule.
  • Fixed DataTypeFactory to report invalid arguments on construction.

0.5.1

20 Oct 20:43

Choose a tag to compare

  • DataTypeFactory::getTypes() now returns array with typeId keys as documented

0.5.0

10 Aug 16:31

Choose a tag to compare

Breaking changes

  • DataType no longer takes an array of ValueValidator in its constructor
  • DataType::getValidators has been removed
  • DataTypeFactory now takes a map from data type id to data value type.
  • DataTypeFactory::registerBuilder has been removed

0.4.3

18 Jun 12:41

Choose a tag to compare

Fixed version number constant.

0.4.2

18 Jun 12:34

Choose a tag to compare

0.4.2 Pre-release
Pre-release
  • Updated code documentation for being able to automatically generate a proper documentation using JSDuck.
  • Removed the ResourceLoader module "dependencies" which had been defined by accident.

0.4.0

03 Jul 14:15

Choose a tag to compare

Removed the global variable wgDataTypes.

0.3.0

21 May 09:41

Choose a tag to compare

Merge pull request #17 from wmde/renameTextTypes

Make DataType consistent with DataValue's type for texts

0.2.1

07 May 12:37

Choose a tag to compare

Bump version 0.2.1

0.2.0

14 Mar 07:06

Choose a tag to compare

Breaking changes

  • dataTypes.DataType JavaScript object may not be initialized providing a dataValues.DataValue object anymore.
  • Removed dataTypes.DataType.getLabel().
  • Removed global DataType registration in the dataTypes object; DataTypeStore is to be used instead.
  • Split up generic "dataTypes" ResourceLoader module into "dataTypes.DataType" and "dataTypes.DataTypeStore".

Enhancements

  • Removed MediaWiki and DataValues dependencies from JavaScript code.
  • Made code PSR-4 compliant.
  • Removed ResourceLoader dependency of QUnit tests.
  • Implemented DataTypeStore.