zotero / citeproc-rs

CSL processor in Rust.
https://cormacrelf.github.io/citeproc-wasm-demo/
Other
73 stars 11 forks source link

previewCitationCluster => previewCluster #141

Closed cormacrelf closed 2 years ago

cormacrelf commented 2 years ago

Fixes #119

The overall effect of these commits is to

  1. Deprecate previewCitationCluster (using the @deprecated JSDoc tag, so TypeScript editors should pick this up and show a warning on use)
  2. Add a previewCluster that changes the first argument to use an id-less Cluster object, on which you can put a cluster mode, and any future cluster options.
  3. Makes the format argument optional, because recent wasm-bindgen can do this.
  4. Document and test the new stuff, and the deprecated version