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:
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'
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps wikibase-sdk from 9.2.5 to 10.1.0.
Changelog
Sourced from wikibase-sdk's changelog.
... (truncated)
Commits
604056c
dist: updated9ab7fb3
10.1.0846e2e3
changelog: updatee21d07e
pre-commit hook: do not rebuild/lint/test when no .ts file was changedb96da83
tsconfig: set incremental=true279848a
simplify_claim: add support for entity-schema statements6274e0b
10.0.3ae667ee
fixup! simplify_sitelinks: improve types028b80f
simplify_sitelinks: improve types1c54972
parse_snak: further improve typesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show