Citation.js Versions Save

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.

v0.4.0-10

5 years ago

Added

  • [meta] More test work
  • util.Register: Alias remove to delete
  • input/@wikidata: Support 'stated as' (P1932) qualifier, if possible preferring that over fetching author labels (#131)
  • output/@csl: Bibliography nosort option
  • input/@bibtex: Support for comma-delimited entries (#157)

Changed

  • Deprecated wrapper CSL locale and template methods

Fixed

  • output/@csl: Affixes now work reliably for all formats (#84)

v0.4.0-3

6 years ago

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.

Added

  • RIS output support (#125)

Refactored

  • A lot of the building scripts
  • All code uses the util fetchFile(Async) functions, to make testing easier

Fixed

  • Subtle type checking bug in translation scheme parsing code (#128)
  • Logging API not supported on Node.js v6 (#124)

v0.3.4

6 years ago

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.

Changed

  • Updated README

Fixed

  • Command sequence normalisation in BibTeX
  • BibTeX test case output

v0.3.0

6 years ago

Release v0.3.0.

v0.3.1

6 years ago

Added

  • Options parameter in parseInput and parseInputAsync
  • Option for max parsing chain length
  • Option to generate parsing chain data in _graph property
  • Option to force type when parsing

Changed

  • Options API in Cite and Cite.async
Cite(data, outputOptions)

// BECOMES

Cite(data, {
  ...parsingOptions,
  output: outputOptions
})
  • Author ordinal in Wikidata props is now a property _ordinal instead of an array element
  • Parsing invalid dates now returns input as literal date instead of an empty date-parts

Refactored

  • Simplify code to normalise CSL-JSON
  • Mock APIs for async tests

Fixed

  • Parsing names with lowercase particles now doesn't omit family names
  • Better error messaging when API/file requests fails

v0.3.2

6 years ago

Added

  • New Wikidata field mappings (see #76)

Changed

  • BibTeX name field output now uses reverse notation
  • Main parsing function aliases/shortcuts:
    • Cite.normalise() -> Cite.input()
    • Cite.normaliseAsync() -> Cite.inputAsync()

v0.3.3

6 years ago

Added

  • A lot of Wikidata entry type mappings
  • Support for option-less piping stdin -> stdout in the CLI

Changed

  • Greatly improve name parsing
  • Wikidata entry type default is now book to align with, among other things, BibTeX

Fixed

  • Unknown Wikidata entry type now actually defaults to something
  • CLI now uses the API changed in 0.3.1