• v1.2.2 9b1cc82db9

    v1.2.2 Stable

    nathanlesage released this 2021-01-23 16:17:40 +01:00 | 3 commits to master since this release

    • Fixed the return types on the validators from Boolean to boolean.
    • The TypeScript target is now ES2019, because es6 does not support the Array.prototype.includes()-method we were using.
    • Improve error message (@tobiasdiez).
    Downloads
  • v1.2.1 77e2dfe7e3

    v1.2.1 Stable

    nathanlesage released this 2020-09-11 15:31:33 +02:00 | 10 commits to master since this release

    • Fixed a logical error where activating strict mode would actually use the loose mode while parsing a single citation.
    • Fixed a problem where citation parts with no commas after the citekey would be reported as false and hence not parsed correctly.
    Downloads
  • v1.2.0 0bdea1ed41

    v1.2.0 Stable

    nathanlesage released this 2020-07-04 23:03:55 +02:00 | 11 commits to master since this release

    • Refactored the code base to be more maintainable and streamlined.
    • Added better tests to achieve 100 % code coverage.
    • Changed signature of extractCitations utility function. It now also accepts a strict flag (default: false) to retain strict behaviour.
    • Citr.parseSingle() now respects the strict-flag internally when validating the provided citation ID of a full square-bracket-citation (see the changelog for 1.1.0 on what this means).
    Downloads
  • v1.1.0 d2b4d17ea4

    Stable

    nathanlesage released this 2019-10-26 00:28:11 +02:00 | 19 commits to master since this release

    • Changed signature of validateCitationID utility function. As of now, it will validate against a broader set of characters that requires the encoding to be set to UTF-8, as it will now also see as valid Unicode characters from non-latin scripts, such as Ethiopian, Japanese, or Chinese. This will make the citation IDs more vulnerable to encoding errors, but is to be preferred (see the reasoning of John McFarlane here). Additionally, Citr is meant as a pivot between any Markdown citation representations and a citeproc processor, such as citeproc-js or pandoc-citeproc. That means Citr shouldn't focus too much on validating the IDs themselves, as much as making sure that it can process the citations and convert them to CSL JSON. To restore the old behaviour, you need to call the functions using the legacy flag ("strict" as it will accept less characters as valid). See README for implementation details.
    Downloads
  • v1.0.3 74447e4b70

    Stable

    nathanlesage released this 2019-07-07 16:24:53 +02:00 | 25 commits to master since this release

    • parseSingle now accepts single citekey-only citations (such as @Autor2015) without the need to enclose them in square-brackets.
    Downloads
  • v1.0.2 dbca0b8b9b

    Stable

    nathanlesage released this 2019-07-07 16:19:21 +02:00 | 27 commits to master since this release

    • parseSingle now accepts single citekey-only citations (such as @Autor2015) without the need to enclose them in square-brackets.
    Downloads
  • v1.0.1 108b8d302f

    Stable

    nathanlesage released this 2019-06-10 21:45:13 +02:00 | 29 commits to master since this release

    Downloads
  • v1.0.0 ff8c7e7751

    Stable

    nathanlesage released this 2019-06-10 19:15:28 +02:00 | 31 commits to master since this release

    Initial Release.

    Downloads