npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wikibase-data-values

v0.10.0

Published

DataValues implementation in JavaScript

Downloads

48

Readme

DataValues JavaScript

This component is in alpha state and not suitable for reuse yet. It contains various JavaScript related to the DataValues library.

Build Status

Release notes

0.10.0 (2017-10-06)

  • The library is now a pure JavaScript library.
  • Removed MediaWiki ResourceLoader module definitions.
  • Removed globeCoordinate.Formatter.
  • Removed the globeCoordinate utility class.

0.9.0 (2017-09-06)

  • Removed valueFormatters.ValueFormatterStore.
  • Removed the options constructor parameter as well as the getOptions method from valueFormatters.ValueFormatter.
  • Removed dataValues.DataValue.getSortKey from the interface and all implementations.
  • Removed dataValues.TimeValue.getYear, getMonth, getDay, getHour, getMinute, and getSecond.
  • Removed globeCoordinate.GlobeCoordinate.iso6709.
  • Declared globeCoordinate.GlobeCoordinate.getDecimal private.

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)

  • QuantityValue now 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.PRECISIONTEXT not properly supporting precisions lower than 1/1000 of an arcsecond.

0.8.1 (2016-04-08)

  • Added support for undefined precision to globeCoordinate.GlobeCoordinate.
  • Added globe support to globeCoordinate.GlobeCoordinate.

0.8.0 (2016-01-07)

Breaking changes

  • valueParsers.StringParser.parse now resolves empty strings to null.
  • Renamed string ids for the 0 to 6 dataValues.TimeValue.PRECISIONS to be identical to the PHP constants in DataValues Time.

0.7.0 (2015-06-03)

Breaking changes

  • Renamed dataValues.UnUnserializableValue to dataValues.UnDeserializableValue.
  • Changed constructor parameter order of dataValues.UnDeserializableValue (formerly dataValues.UnUnserializableValue).
  • Removed time.js legacy code, including time.Time and time.Parser. Every "vital" functionality has been ported to dataValues.TimeValue which now may be interacted with directly instead of having to retrieve the encapsulated time.Time object first.
  • Removed obsolete valueParsers.TimeParser. Back-end parser is to be used via API.
  • Removed obsolete mw.ext.dataValues module as it was just overwriting the obsolete time.js settings. Dependencies should be updated to point directly to the dataValues.values module.

Enhancements

  • Implemented toJSON and newFromJSON in dataValues.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

  • Time object'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.