Releases: typst/hayagriva
Releases Β· typst/hayagriva
Version 0.8.0
- Breaking change: Fixed deserialization of page ranges, removing
From<u64> for PageRanges
- Added support for disambiguation to alphanumeric citation style
- Raised limit for disambiguation resolving in complex cases
- The year 0 will now render as 1BC for CSL
Version 0.7.0
- Breaking change:
Entry::page_range
now returnsOption<&MaybeTyped<PageRanges>>
instead ofOption<&PageRanges>
. This fixes a panic that occurred when a page range had an unknown format MaybeTyped
now has anas_typed
method
Version 0.6.0
- Breaking change: Fix that the page range labels were not pluralized,
NumericValue::Range
now returns an inclusive range (#142) - Breaking change: The field
publisher
can now accept a dictionary with alocation
. The top-levellocation
key is now primarily for event and item locations. - Breaking change: The field
annote
has been removed - Allow multiple page ranges with prefixes and suffixes
- Fixes with sorting bibliography entries
- Fix sorting citations by their number (#115)
- Fix how citation number ranges collapse (#154)
BibliographyItem
is now exported (#157)- Fix when the short form of a title was used (#173)
- Bumped the
biblatex
crate to 0.10.0 to fix a BibLaTeX parsing bug (typst/biblatex#53) and allow the Unknown and Director editor types (typst/biblatex#52).
We also updated our collection of Citation Styles.
Thank you to @DerDrodt, @bluebear94, @TheChilliPL, @lluchs, @xkevio for your contributions!
Version 0.5.3
- Fixed a bug with initials (#150, thanks to @razvanazamfirei)
- Fixed suppression of title when no author was provided (#144, thanks to @AstrickHarren)
- Fixed et al handling on subsequent citations by bumping citationberg
Version 0.5.2
- Allow the
abstract
,annote
, andgenre
fields to Hayagriva files and process them from BibTeX files. - Fix retrieval of an item's editor (#94)
- Fixed issue with pulling punctuation into quotation marks (#85)
- Allow non-range values in the
pages
field (#103) - Fix multiple subsequent prose citations to the same item (#122)
- Interpret the
eprint
BibTeX key asserial-number.arxiv
if theeprinttype
is set toarxiv
- Fixed issue with multiple subsequent citations (#122)
- Improved handling of empty CSL objects
Thanks to @DerDrodt, @zepinglee, @tilman-schieber, @MaxGietl, @frozolotl, @MKDJr, and @quicktus for contributing to this release.
Version 0.5.1
- Fixed spacing around math blocks
- Fixed title case formatting next to
{verbatim}
blocks and apostrophes
Version 0.5.0
- Breaking change: The API for archived styles has changed.
- Breaking change: The name of the GB/T 7714 family of styles have been corrected to
gb-7714-...
fromgb-7114-...
. - Breaking change: The reexported
TypeErrorKind
andParseErrorKind
enums inbiblatex
have added variants and become non-exhaustive. - Date parsing will not panic anymore (typst/typst#2553).
- Anthos entries now properly recognize their parent (#72, typst/typst#2572). Thanks, @zepinglee!
- Proceedings titles will now be printed correctly (#78). Thanks, @vtta!
- Citation numbers will now collapse if the style requests it.
- Escaping in format and chunked strings now works (typst/typst#2669).
- The old behavior of the alphanumeric style has been restored.
- Bibliographies now forcibly print the alphanumeric
citation-label
instead of thecitation-number
if the cite only printed the former (and vice-versa; typst/typst#2707). - We dropped the dependency on
rkyv
in favor of code generation in a test. This should resolve runtime problems on some platforms. - The retrieval of the volume variable is now more robust (#82). Thanks, @mpmdean!
- Fixed delimiter order for contributors (#73). Thanks, @zepinglee!
- Page ranges can now be strings (#83).
- Page ranges will now use the correct delimiter, even if printed with
cs:text
- Fixed a bug with the suppression of empty groups (typst/typst#2548).
- Bumped
citationberg
to solve a CSL locale fallback issue that affected typst/typst#2548 - Bumped the
biblatex
crate to 0.9.0 to fix BibLaTeX parsing bugs (e.g. typst/biblatex#41, typst/biblatex#33, typst/biblatex#40, typst/typst#2751, #81)
Version 0.4.0
Breaking changes:
Hayagriva now uses the Citation Style Language to encode formatting styles. This means that Hayagriva's own formatting styles have been deprecated.
For users:
- The YAML input format has changed.
- Titles and formattable strings have been merged into one type. All formattable strings can have a shorthand now.
- Formattable Strings do not have
title-case
andsentence-case
keys anymore.shorthand
has been renamed toshort
. To prevent changes of the text case of formattable strings, you can use braces. Enclose a part of a formattable string (orshort
) in{braces}
to print it as-is. - The fields
doi
,isbn
, andissn
have been moved toserial-number
which can now be a dictionary containing these and arbitrary other serial numbers like apmid
(PubMed ID) andarxiv
(ArXiv Identifier). - The
tweet
entry type has been renamed topost
. - All numeric variables can now also contains strings. Numbers can have string affixes.
Refer to the updated file format docs for examples.
For developers:
- To use a CSL style, you can either supply a CSL file or use an archive of provided styles with the
archive
feature. - The
from_yaml_str
function will now return the newLibrary
struct, with the entries within. - The
Database
struct has been replaced by the easier to handleBibliographyDriver
. - We switched from
yaml_rust
toserde_yaml
. TheEntry
now implementsserde
'sSerialize
andDeserialize
traits. Hence, thefrom_yaml
andto_yaml
functions have been deleted. - Brackets are no longer individually overridable. Instead, use the new
CitePurpose
. Entry::kind
has been renamed toEntry::entry_type
.- The citation styles
AuthorTitle
andKeys
have been removed but can be realized with CSL.
- The citation styles
This release fixes many bugs and makes Hayagriva a serious contender for reference management.
Other changes
- We added the entry types
Performance
andOriginal
. - We added the field
call-number
.
Version 0.3.2
Fixes a title case formatting bug introduced in the previous release.
Version 0.3.1
Bug Fixes:
- Added an option to turn off abbreviation of journals (thanks to @CMDJojo)
- Fixed bugs with title case formatting (thanks to @jmskov)
- Fixed off-by-one error with dates in APA style (thanks to @bluebear94)
- Fixed supplements in the Alphanumeric and AuthorTitle styles (thanks to @lynn)
- Fixed bugs with sentence case formatting
- Fixed
verbatim
option - Fixed terminal formatting
- Fixed some typos (thanks to @kianmeng and @bluebear94)