data-values/javascript
Composer 安装命令:
composer require data-values/javascript
包简介
DataValues implementation in JavaScript
关键字:
README 文档
README
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).
Release notes
0.11.0 (dev)
- Removed
globeCoordinate.GlobeCoordinate.getDecimal - Removed
getLowerBound,getUpperBound,getAmountfrom QuantityValue - Removed support for Node.js versions older than v10
0.10.0 (2017-10-06)
- The library is now a pure JavaScript library.
- Removed MediaWiki ResourceLoader module definitions.
- Removed
globeCoordinate.Formatter. - Removed the
globeCoordinateutility class.
0.9.0 (2017-09-06)
- 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.
0.8.4 (2017-07-18)
- Updated JSDoc tags mistakenly requiring objects.
- Removed an unused dependency on
composer/installers. - Raised required PHP version from 5.3 to 5.5.9.
0.8.3 (2016-11-07)
QuantityValuenow supports unknown upper and lower bounds, required for compatibility with DataValues Number 0.8.0.
0.8.2 (2016-04-12)
- 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.
0.8.1 (2016-04-08)
- Added support for undefined
precisiontoglobeCoordinate.GlobeCoordinate. - Added
globesupport toglobeCoordinate.GlobeCoordinate.
0.8.0 (2016-01-07)
Breaking changes
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.
0.7.0 (2015-06-03)
Breaking changes
- 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.
Enhancements
- Implemented
toJSONandnewFromJSONindataValues.UnDeserializableValue. - Consolidated code structure, updated and added code documentation to allow generating a proper documentation using JSDuck.
0.6.3 (2015-04-01)
- Remove explicit resource loader dependency on jquery.qunit.
0.6.1 (2014-11-07)
Enhancements
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()
0.6.0 (2014-09-01)
Breaking changes
- #40 Removed the arbitrary list of precisions for globe coordinates
Enhancements
- #44 Fixed comparing time values
- #42 Removed 'to a degree' label, now shown as '±1°'
- #45 Removed constructor naming debugging feature
Bugfixes
- Remove ResourceLoader dependencies on jquery and mediawiki (bug 69468)
0.5.1 (2014-06-04)
Bugfixes
- Don't limit precisions of globe coordinates in the UI (allows display of values with a non predefined precision)
0.5.0 (2014-03-28)
Breaking changes
- Renamed ValueFormatterFactory to ValueFormatterStore.
- Renamed ValueParserFactory to ValueParserStore.
- Removed mw.ext.valueFormatters and mw.ext.valueParsers.
Enhancements
- Defined parameters of the promises returned by ValueFormatter's and ValueParser's format/parse functions.
0.4.0 (2014-03-24)
Breaking changes
- 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.
Bugfixes
- 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
0.3.1 (2014-02-03)
Bugfixes
- Fixed valueParsers ResourceLoader module definition template.
0.3.0 (2014-01-30)
Breaking changes
- 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.
0.2.0 (2014-01-24)
Breaking changes
- #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
Enhancements
- #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
0.1.0 (2013-12-23)
Initial release.
data-values/javascript 适用场景与选型建议
data-values/javascript 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 76.71k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2013 年 12 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wikidata」 「datavalues」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 data-values/javascript 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 data-values/javascript 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 data-values/javascript 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Defines the DataValue interface and some trivial implementations
Defines interfaces for ValueParsers, ValueFormatters and ValueValidators
Contains common implementations of the interfaces defined by DataValuesInterfaces
Common ValueValidator implementations
Geographical value objects, parsers and formatters
Serializers and deserializers for DataValue implementations
统计信息
- 总下载量: 76.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 20
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2013-12-15