This library contains JavaScript implementations of all basic DataValue classes used in the Wikibase software, along with associated parsers and formatters. This library mirrors most of the PHP implementations of DataValue classes as specified in the DataValues set of libraries (most notably the basic, Geo, Number, and Time libraries).
- Removed
globeCoordinate.GlobeCoordinate.getDecimal - Removed
getLowerBound,getUpperBound,getAmountfrom QuantityValue - Removed support for Node.js versions older than v10
- The library is now a pure JavaScript library.
- Removed MediaWiki ResourceLoader module definitions.
- Removed
globeCoordinate.Formatter. - Removed the
globeCoordinateutility class.
- Removed
valueFormatters.ValueFormatterStore. - Removed the
optionsconstructor parameter as well as thegetOptionsmethod fromvalueFormatters.ValueFormatter. - Removed
dataValues.DataValue.getSortKeyfrom the interface and all implementations. - Removed
dataValues.TimeValue.getYear,getMonth,getDay,getHour,getMinute, andgetSecond. - Removed
globeCoordinate.GlobeCoordinate.iso6709. - Declared
globeCoordinate.GlobeCoordinate.getDecimalprivate.
- Updated JSDoc tags mistakenly requiring objects.
- Removed an unused dependency on
composer/installers. - Raised required PHP version from 5.3 to 5.5.9.
QuantityValuenow supports unknown upper and lower bounds, required for compatibility with DataValues Number 0.8.0.
- Added 1/10000 of an arcsecond as a known precision to
globeCoordinate.Formatter. - Fixed
globeCoordinate.Formatter.PRECISIONTEXTnot properly supporting precisions lower than 1/1000 of an arcsecond.
- Added support for undefined
precisiontoglobeCoordinate.GlobeCoordinate. - Added
globesupport toglobeCoordinate.GlobeCoordinate.
valueParsers.StringParser.parsenow resolves empty strings tonull.- Renamed string
ids for the 0 to 6dataValues.TimeValue.PRECISIONSto be identical to the PHP constants in DataValues Time.
- Renamed
dataValues.UnUnserializableValuetodataValues.UnDeserializableValue. - Changed constructor parameter order of
dataValues.UnDeserializableValue(formerlydataValues.UnUnserializableValue). - Removed
time.jslegacy code, includingtime.Timeandtime.Parser. Every "vital" functionality has been ported todataValues.TimeValuewhich now may be interacted with directly instead of having to retrieve the encapsulatedtime.Timeobject first. - Removed obsolete
valueParsers.TimeParser. Back-end parser is to be used via API. - Removed obsolete
mw.ext.dataValuesmodule as it was just overwriting the obsoletetime.jssettings. Dependencies should be updated to point directly to thedataValues.valuesmodule.
- Implemented
toJSONandnewFromJSONindataValues.UnDeserializableValue. - Consolidated code structure, updated and added code documentation to allow generating a proper documentation using JSDuck.
- Remove explicit resource loader dependency on jquery.qunit.
Timeobject's month and day attributes default to 0 instead of 1 now.- Fixed
Time.newFromIso8601(). - Improved PhantomJS Testrunner, outputs failed assertions on the console now.
- Improved
globeCoordinate.GlobeCoordinate.equals()
- #40 Removed the arbitrary list of precisions for globe coordinates
- #44 Fixed comparing time values
- #42 Removed 'to a degree' label, now shown as '±1°'
- #45 Removed constructor naming debugging feature
- Remove ResourceLoader dependencies on jquery and mediawiki (bug 69468)
- Don't limit precisions of globe coordinates in the UI (allows display of values with a non predefined precision)
- Renamed ValueFormatterFactory to ValueFormatterStore.
- Renamed ValueParserFactory to ValueParserStore.
- Removed mw.ext.valueFormatters and mw.ext.valueParsers.
- Defined parameters of the promises returned by ValueFormatter's and ValueParser's format/parse functions.
- mw.ext.valueParsers does not register valueParsers.TimeParser anymore
- mw.ext.valueFormatters does not register valueFormatters.StringFormatter anymore
- Renamed ValueFormatterFactory to ValueFormatterStore.
- Renamed ValueParserFactory to ValueParserStore.
- Fixed definitions of ResourceLoader test modules.
- Accept timestamp strings with zeroes as months and days
- Always return a string in time.writeYear and time.writeDay
- Fixed valueParsers ResourceLoader module definition template.
- Renamed "valueFormatters.factory" Resource Loader module to "valueFormatters.ValueFormatterFactory".
- Renamed "valueParsers.factory" Resource Loader module to "valueParsers.ValueParserFactory".
- Removed ValueView dependency from "mw.ext.valueFormatters" module and "mw.ext.valueParsers" module.
- #8 Removed dataValues.util.Notifier
- #10 Renamed dataValues.util.inherit to util.inherit
- #13 Removed vp.GlobeCoordinateParser and vp.QuantityParser
- #15 Removed the ParseValue API module
- #14 Decoupled the QUnit tests from the MediaWiki resource loader
- #16 Have the tests run on TravisCI using PhantomJS
- #18 Provided QUnit test runner using requireJS
Initial release.