Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wikibase-sdk

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikibase-sdk - npm Package Versions

1
9

9.0.4

Diff

maxlath
published 9.0.3 •

maxlath
published 9.0.2 •

maxlath
published 9.0.1 •

maxlath
published 9.0.0 •

Changelog

Source

9.0.0 - 2023-02-04

BREAKING CHANGES:

  • wikibase-sdk now uses ES modules: to keep using CommonJS, you will need to use wikibase-sdk <= v9
  • Some functions that were accepting arguments as several arguments were changed to accept arguments as an object only. The concerned functions are:
    • getReverseClaims: getReverseClaims('P50', 'Q535') should be replaced by getReverseClaims({ properties: 'P50', values: 'Q535' })
    • getRevisions: getRevisions('Q3548931', { limit: 10 }) should be replaced by getRevisions({ ids: 'Q3548931', { limit: 10 })
  • Functions that were accepting arguments either as several arguments or as an object now only accept arguments as an object. The concerned functions are:
    • searchEntities
    • cirrusSearchPages
    • getEntities
    • getEntitiesFromSitelinks
    • getEntityRevision
    • getManyEntities
    • getSitelinkUrl
    • getReverseClaims
  • simplify.claims, simplify.propertyClaims, and simplify.claim legacy interfaces were dropped: options are now expected in a single option object (rather than as several arguments)
  • Functions previously avaialble on wbk.parsers.wb and wbk.parsers.wd — namely entities and pagesTitles — are now directly on wbk.parsers

Other changes:

  • The source code was converted to TypeScript to recover types declarations, and keep them maintained in the future. This change was taken as an opportunity to do a bit of cleanup in the function interfaces.
  • The convenience module wikidata-sdk has been deprecated. The wdk object can now be imported from wikibase-sdk/wikidata.org: import wdk from 'wikibase-sdk/wikidata.org'
maxlath
published 8.1.1 •

maxlath
published 8.1.0 •

Changelog

Source

8.1.0 - 2022-10-31

maxlath
published 8.0.5 •

maxlath
published 8.0.4 •

maxlath
published 8.0.3 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc