wasm-v0.2.0 (2021-12-14)
Steps to upgrade:
- Replace
Driver.new
withnew Driver
- Delete all
.unwrap()
after JS API calls - Adopt the new
previewCluster
API (deprecatespreviewCitationCluster
), 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
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]