Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@irahopkinson irahopkinson released this 26 Jun 02:06
· 4 commits to main since this release
209054a

BREAKING CHANGES

  • The output of JSON.stringify on a VerseRef has changed to be more human readable:

    • before
      const vref = new VerseRef(1, 2, 3, ScrVers.Septuagint);
      console.log(JSON.stringify(vref)); // '{"versification":{"name":"Septuagint","_type":2},"rtlMark":"","_bookNum":1,"_chapterNum":2,"_verseNum":3}'
    • after
      const vref = new VerseRef(1, 2, 3, ScrVers.Septuagint);
      console.log(JSON.stringify(vref)); // '{"book":"GEN","chapterNum":2,"verseNum":3,"versificationStr":"Septuagint"}'
  • Removed deprecated static parse function from VerseRef:

    • before
      const vref = VerseRef.parse('...');
    • after
      const vref = new VerseRef('...');
      // OR
      const { verseRef } = VerseRef.tryParse('...');

What's Changed

Full Changelog: v1.4.3...v2.0.0