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.simplifyPropertyClaims, 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 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 8.1.1 to 9.0.4.
Changelog
Sourced from wikibase-sdk's changelog.
... (truncated)
Commits
3c09223
dist: updateda12c087
9.0.4dea08e6
Merge pull request #98 from EdJoPaTo/helpers-utils-typings5a8e4c2
refactor(validate): ensure input type is the expected1bd44aa
refactor: remove unused catch error variable06c117d
fix: typing issue with the sites array9118dd3
fix: getRevisions format typee073cb8
feat(helpers): add MediaInfoIdf04fd04
refactor(helpers): use builder2cd0d67
refactor: improve typings of helpers and utilsDependabot 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 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)