JavaScript client for the Wikibase Repository web API.
- These method have been removed from RepoApi.js
- searchEntities
- createClaim
- getClaims
- setClaimValue
- setReference
- removeReferences
- Various improvements to error handling, now requests the
plaintexterrorformatfrom the API and explicitly passes a language to use.
- Fix getLocationAgnosticMwApi to use browser location not wgServer to fix bugs on mobile requests.
- Made public method:
wikibase.api.RepoApi.post().
- Fixed
wikibase.api.RepoApito check whether the user is still logged in before making any POST requests.
- Fixed
wikibase.api.RepoApi.getEntitiesto return all properties of the entity by default.
- Fixed certain
wikibase.api.RepoApimethods 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_VERSIONconstant. - Raised DataValues JavaScript library version requirement to 0.10.0.
- Fixed inconsistencies in
wikibase.api.RepoApiintroduced in 2.2.1.
- Fixed certain
wikibase.api.RepoApimethods (most notablyparseValueandsetAliases) not properly accepting values that contain pipe characters. - ECMAScript 5 is now required. This most notably excludes Internet Explorer 8.
- Forward error message parameters in
wikibase.api.RepoApiError.
- Follow up fix to HTML escaping in
wikibase.api.RepoApiError.
- Fixed HTML escaping in
wikibase.api.RepoApiError. - Fixed forwarding of error messages in
wikibase.api.FormatValueCallerandParseValueCaller. - Removed unused
wikibase-error-ui-client-errormessage.
- Removed meaningless, unsupported
sortanddirparameters from:wikibase.api.RepoApi.getEntitieswikibase.api.RepoApi.getEntitiesByPage. This only breaks callers using thenormalizeparameter.
- Replaced deprecated "edit" token with "csrf".
- Fix getLocationAgnosticMwApi behavior in Internet Explorer
- Added optional propertyId parameter to RepoApi::formatValue
- Added optional propertyId parameter to FormatValueCaller::formatValue
- Added compatibility with DataValues JavaScript 0.8.0.
- Removed compatibility for Internet Explorer 8 by removing the json polyfill.
- Use mw.ForeignApi for remote API endpoints (T50389)
- Pass
uselangparameter towbsearchentitiesapi call
- Made installable with DataValues JavaScript 0.7.0.
- Updated code documentation to be able to generate documentation using JSDuck.
wikibase.api.RepoApiQUnit tests have been rewritten to not execute actual API requests anymore.- Added
wikibase.api.RepoApiQUnit tests for functions not yet tested. - Added type checks to
wikibase.api.RepoApifunctions to actually reflect parameter documentation in the code instead of relying on the back-end handling.
- An empty
Entitymay be created by omitting thedataparameter onwikibase.api.RepoApi.createEntity()again. wikibase.api.RepoApifunctions explicitly submit default parameters if not set otherwise.
- Bump the data-values/javascript dependency to 0.6.0 so that it matches Wikibase.git's. No changes needed.
Initial release.