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

Commit 00bb2b9

Browse files
committed
Release 1.1.0
1 parent af8a63e commit 00bb2b9

File tree

7 files changed

+23
-15
lines changed

7 files changed

+23
-15
lines changed

DataTypes.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
return 1;
1515
}
1616

17-
define( 'DATATYPES_VERSION', '1.0.0' );
17+
define( 'DATATYPES_VERSION', '1.1.0' );
18+
19+
/**
20+
* @deprecated
21+
*/
22+
define( 'DataTypes_VERSION', DATATYPES_VERSION );
1823

1924
if ( defined( 'MEDIAWIKI' ) ) {
2025
include __DIR__ . '/DataTypes.mw.php';

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ for the [Wikidata project](https://wikidata.org/).
5151

5252
## Release notes
5353

54+
### 1.1.0 (dev)
55+
* Renamed `DataTypes_VERSION` constant to `DATATYPES_VERSION`, leaving a deprecated alias.
56+
* Updated internationalizations.
57+
5458
### 1.0.0 (2016-12-29)
5559
* `DataType` and `DataTypeFactory` do not accept empty strings any more.
5660
* Removed `DataType::getLabel` along with the `DataTypes\Message` class.

build/travis/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ cd -
1010

1111
fi
1212

13-
composer ci
13+
composer test
1414
./node_modules/.bin/eslint .

composer.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,8 @@
3939
},
4040
"scripts": {
4141
"test": [
42+
"phpcs -p -s",
4243
"phpunit"
43-
],
44-
"phpcs": [
45-
"vendor/bin/phpcs -sp"
46-
],
47-
"ci": [
48-
"@test",
49-
"@phpcs"
5044
]
5145
}
5246
}

js/dataTypes/DataType.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,26 @@
3030
this._dataValueType = dataValueType;
3131
};
3232

33+
/**
34+
* @class dataTypes.DataType
35+
*/
3336
$.extend( SELF.prototype, {
3437
/**
35-
* DataType identifier.
38+
* Data type (a.k.a. property type) identifier.
3639
* @property {string}
3740
* @private
3841
*/
3942
_id: null,
4043

4144
/**
42-
* DataValue identifier.
45+
* Identifier of the data value type internally used by this data type.
4346
* @property {string}
4447
* @private
4548
*/
4649
_dataValueType: null,
4750

4851
/**
49-
* Returns the data type's identifier.
52+
* Returns the data type (a.k.a. property type) identifier.
5053
*
5154
* @return {string}
5255
*/
@@ -55,7 +58,7 @@
5558
},
5659

5760
/**
58-
* Returns the DataValue used by this data type.
61+
* Returns the identifier of the data value type internally used by this data type.
5962
*
6063
* @return {string}
6164
*/

js/dataTypes/DataTypeStore.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
'use strict';
33

44
/**
5-
* DataType store.
65
* @class dataTypes.DataTypeStore
76
* @since 0.2
87
* @license GPL-2.0+
@@ -14,6 +13,9 @@
1413
this._dataTypes = {};
1514
};
1615

16+
/**
17+
* @class dataTypes.DataTypeStore
18+
*/
1719
$.extend( SELF.prototype, {
1820
/**
1921
* Data type definitions.

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="DataValuesDataTypes">
3-
<rule ref="vendor/wikibase/wikibase-codesniffer/Wikibase" />
3+
<rule ref="./vendor/wikibase/wikibase-codesniffer/Wikibase" />
44

55
<file>.</file>
66
</ruleset>

0 commit comments

Comments
 (0)