Skip to content

@citeproc-rs/wasm v0.2.0

Latest
Compare
Choose a tag to compare
@cormacrelf cormacrelf released this 14 Dec 16:10

wasm-v0.2.0 (2021-12-14)

Steps to upgrade:

  1. Replace Driver.new with new Driver
  2. Delete all .unwrap() after JS API calls
  3. Adopt the new previewCluster API (deprecates previewCitationCluster), whose first argument is now an id-less cluster and can handle cluster modes (AuthorOnly etc).

New APIs (i.e. setOutputFormat) are documented in the README, at https://www.npmjs.com/package/@citeproc-rs/wasm/v/0.2.0

Full Changelog

Breaking changes:

  • Add a way to specify the ClusterMode of a previewed cluster #119
  • Remove .unwrap() from JS API; Driver.new => new Driver #142 [A-ci]

Implemented enhancements:

  • Set output format after driver initialization #122
  • previewCitationCluster => previewCluster #141
  • setOutputFormat API #140
  • Improved Typescript definitions
  • Some trailing arguments now optional instead of requiring you pass null (format in previewCluster, for example)

Fixed bugs:

Closed issues:

  • CI errors downloading test results from S3 when PRs are submitted from people who aren't me #134
  • "<" is ignored in prefix #129 [A-core]
  • In some scenarios prefix needs to be ignored when wrapping DOI #127 [A-core]
  • Invalid HTML produced when item URL contains a quotation symbol ". #123
  • BibliographyMeta wrongly cased/documented #77

Merged pull requests:

  • reimplement name parsing #139 [A-core]
  • Solve year-suffix / no-date interaction #137 [A-core]
  • Fix "line-spacing" attribute on <bibliography> in CSL is ignored #133 [A-core]
  • Fix doi urls in prefix duplication, and pmids/pmcids #132 [A-core]
  • Fix erroneous parsing of HTML in prefix="..."/suffix #130
  • Test case for #127 #128
  • Test ESR wasm support #125
  • Escape urls, implement auto-prefixing and configurable link anchors #124 [A-core]