Skip to content

Releases: larsgw/citation.js

v0.4.0-10

02 Nov 13:20
Compare
Choose a tag to compare
v0.4.0-10 Pre-release
Pre-release

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

16 May 18:56
Compare
Choose a tag to compare
v0.4.0-3 Pre-release
Pre-release

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

10 Jan 10:59
Compare
Choose a tag to compare

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.3

09 Oct 11:59
Compare
Choose a tag to compare

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

v0.3.2

09 Oct 12:00
Compare
Choose a tag to compare

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.1

09 Oct 12:01
Compare
Choose a tag to compare

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.0

09 Oct 12:02
Compare
Choose a tag to compare

Release v0.3.0.