Skip to content

Latest commit

 

History

History
188 lines (139 loc) · 12.6 KB

CHANGELOG.md

File metadata and controls

188 lines (139 loc) · 12.6 KB

CHANGELOG

versions follow SemVer

7.0.0 - 2024-03-11

BREAKING CHANGE: This minimal NodeJS version is now >= v18.0.0 (to be able to use the standard fetch function)

  • Add config.credentials.browserSession flag, to let fetch use credentials available in the browser as session cookies.

6.0.0 - 2023-07-16

BREAKING CHANGE: wikibase-edit now uses the ES module syntax. This also requires to bump the minimal NodeJS version to >= v14.0.0.

5.3.0 - 2022-11-01

5.2.0 - 2022-10-30

5.1.0 - 2022-05-03

5.0.0 - 2022-05-03

BREAKING CHANGE: updated NodeJS minimal version >= v10.0.0

4.16.0 - 2022-01-10

4.15.0 - 2021-11-05

4.14.0 - 2021-06-01

4.13.0 - 2021-04-03

4.12.0 - 2021-04-03

  • Quantity snaks: add support for lowerBound and upperBound

4.11.0 - 2020-12-14

  • Allow to pass a baserevid

4.10.0 - 2020-12-02

  • entity.edit: allow to add aliases without removing the existing ones

4.9.0 - 2020-12-01

  • entity.edit: allow to remove labels, descriptions, or aliases in a given language by passing null

4.8.0 - 2020-10-07

4.7.0 - 2020-08-07

4.6.0 - 2020-07-19

  • claim.update: added possibility to set the claim rank
  • claim.create: added possibility to set the claim rank, add qualifiers and references
  • entity.edit: allow to remove a sitelink by passing null

4.5.0 - 2020-07-07

  • reference.set:
    • Added a snaks object interface to be able to set a whole reference record at once. The previous property/value interface is now deprecated.
    • Added the possibility to update an existing reference by specifying its current hash

4.4.0 - 2020-06-09

4.3.0 - 2020-05-17

4.2.0 - 2020-04-08

  • Added tags support
  • Added anonymous mode support

4.1.0 - 2019-12-15

4.0.0 - 2019-12-13

Breaking Changes: started using async/await internally, so wikibase-edit now requires NodeJS >= v7.6.0. If you are locked on an older version of NodeJS, you are thus advised to stay on wikibase-edit@3

3.2.0 - 2019-08-17

3.1.0 - 2019-08-17

3.0.0 - 2019-08-17

Breaking Changes:

  • Renamed the module wikidata-edit -> wikibase-edit
  • Functions now expect a unique parameter object:
    • ex: claim.add(id, language, value) should now be written claim.add({ id, language, value })
  • Aligning functions names to their associated Wikibase API actions, consequently breaking several functions:
    • claim.add => claim.create
    • qualifier.add => qualifier.set
    • reference.add => reference.set
  • config:
    • instance is now a required parameter (not defaulting to wikidata.org anymore)
    • credentials (username/password or oauth) are now expected to be found in a credentials object (see config documentation)
  • removed per-function initialization: it was meant to allow passing a different config object at every call (typically for different oauth sets of keys), which is now made possible by passing a config object after the function parameters
  • removed function claim.exists
  • removed claim.add claim existance check (no more allowDuplicates flag)

Deprecated:

  • wikibaseInstance config parameter: renamed instance for consistency with other WikibaseJS modules

Added features:

2.9.0 - 2019-05-17

  • entity.edit: allow to remove labels, descriptions, aliases, claims, or sitelinks

2.8.0 - 2019-01-07

2.7.0 - 2018-10-02

  • claim.add: added an allowDuplicates flag to force add when a claim with the same value already exists

2.6.0 - 2018-08-22

2.5.0 - 2018-08-22

2.4.0 - 2018-08-07

2.3.0 - 2018-05-16

2.2.0 - 2018-05-07

2.1.0 - 2018-03-03

2.0.0 - 2017-11-01

  • BREAKING CHANGE: reference.add now expects an explicit reference property
  • BREAKING CHANGE: claim.add now can't be passed a reference: the reference needs to be added separately
  • BREAKING CHANGE: quantity claims with a unit can't be passed as an array of the shape [ amount, unit ] anymore, and should instead be passed as an object { amount, unit }
  • BREAKING CHANGE: monolingual text can't be passed as an array of the shape [ text, language ] anymore, and should instead be passed as an object { text, language }
  • Added reference.remove
  • alias.add: time claims now accept month and day precisions
  • Added qualifier.add
  • Added qualifier.update
  • Added qualifier.remove
  • entity.edit|entity.create: added support for qualifiers and references

1.9.0 - 2017-10-13

1.8.0 - 2017-09-11

1.7.0 - 2017-05-27

1.6.0 - 2017-05-22

1.5.0 - 2017-05-22

1.4.0 - 2017-05-14

1.3.0 - 2017-04-01

1.2.0 - 2017-02-20

1.1.0 - 2017-02-20

1.0.0 - 2017-02-19