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-api

v3.0.2

Published

JavaScript client for the Wikibase Repository web API

Downloads

2

Readme

Wikibase JavaScript API

JavaScript client for the Wikibase Repository web API.

Release notes

3.0.2 (2018-11-08)

  • Fixed wikibase.api.RepoApi to check whether the user is still logged in before making any POST requests.

3.0.1 (2017-11-01)

  • Fixed wikibase.api.RepoApi.getEntities to return all properties of the entity by default.

3.0.0 (2017-10-13)

  • Fixed certain wikibase.api.RepoApi methods failing when passing in empty strings.
  • Made the library a pure JavaScript library.
  • Removed MediaWiki extension credits registration.
  • Removed MediaWiki ResourceLoader module definitions.
  • Removed WIKIBASE_JAVASCRIPT_API_VERSION constant.
  • Raised DataValues JavaScript library version requirement to 0.10.0.

2.2.2 (2017-07-10)

  • Fixed inconsistencies in wikibase.api.RepoApi introduced in 2.2.1.

2.2.1 (2017-07-07)

  • Fixed certain wikibase.api.RepoApi methods (most notably parseValue and setAliases) not properly accepting values that contain pipe characters.
  • ECMAScript 5 is now required. This most notably excludes Internet Explorer 8.

2.2.0 (2016-10-31)

  • Forward error message parameters in wikibase.api.RepoApiError.

2.1.1 (2016-08-04)

  • Follow up fix to HTML escaping in wikibase.api.RepoApiError.

2.1.0 (2016-08-03)

  • Fixed HTML escaping in wikibase.api.RepoApiError.
  • Fixed forwarding of error messages in wikibase.api.FormatValueCaller and ParseValueCaller.
  • Removed unused wikibase-error-ui-client-error message.

2.0.0 (2016-05-31)

  • Removed meaningless, unsupported sort and dir parameters from:
    • wikibase.api.RepoApi.getEntities
    • wikibase.api.RepoApi.getEntitiesByPage. This only breaks callers using the normalize parameter.
  • Replaced deprecated "edit" token with "csrf".

1.1.1 (2016-05-30)

  • Fix getLocationAgnosticMwApi behavior in Internet Explorer

1.1.0 (2016-02-17)

  • Added optional propertyId parameter to RepoApi::formatValue
  • Added optional propertyId parameter to FormatValueCaller::formatValue

1.0.5 (2016-01-27)

  • Added compatibility with DataValues JavaScript 0.8.0.
  • Removed compatibility for Internet Explorer 8 by removing the json polyfill.

1.0.4 (2015-09-30)

  • Use mw.ForeignApi for remote API endpoints (T50389)
  • Pass uselang parameter to wbsearchentities api call

1.0.3 (2015-05-21)

  • Made installable with DataValues JavaScript 0.7.0.

1.0.2 (2015-05-20)

Enhancements

  • Updated code documentation to be able to generate documentation using JSDuck.
  • wikibase.api.RepoApi QUnit tests have been rewritten to not execute actual API requests anymore.
  • Added wikibase.api.RepoApi QUnit tests for functions not yet tested.
  • Added type checks to wikibase.api.RepoApi functions to actually reflect parameter documentation in the code instead of relying on the back-end handling.

Bugfixes

  • An empty Entity may be created by omitting the data parameter on wikibase.api.RepoApi.createEntity() again.
  • wikibase.api.RepoApi functions explicitly submit default parameters if not set otherwise.

1.0.1 (2014-11-28)

  • Bump the data-values/javascript dependency to 0.6.0 so that it matches Wikibase.git's. No changes needed.

1.0.0 (2014-11-26)

Initial release.