This repository was archived by the owner on Dec 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +23
-15
lines changed
Expand file tree Collapse file tree 7 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 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
1924if ( defined ( 'MEDIAWIKI ' ) ) {
2025 include __DIR__ . '/DataTypes.mw.php ' ;
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 1010
1111fi
1212
13- composer ci
13+ composer test
1414./node_modules/.bin/eslint .
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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 */
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 */
Original file line number Diff line number Diff line change 22 'use strict' ;
33
44 /**
5- * DataType store.
65 * @class dataTypes.DataTypeStore
76 * @since 0.2
87 * @license GPL-2.0+
1413 this . _dataTypes = { } ;
1514 } ;
1615
16+ /**
17+ * @class dataTypes.DataTypeStore
18+ */
1719 $ . extend ( SELF . prototype , {
1820 /**
1921 * Data type definitions.
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments