BREAKING CHANGES
-
The output of
JSON.stringify
on aVerseRef
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"}'
- before
-
Removed deprecated static
parse
function fromVerseRef
:- before
const vref = VerseRef.parse('...');
- after
const vref = new VerseRef('...'); // OR const { verseRef } = VerseRef.tryParse('...');
- before
What's Changed
- Bump vite from 4.5.2 to 4.5.3 by @dependabot in #16
- improve JSON.stringify by @irahopkinson in #17
Full Changelog: v1.4.3...v2.0.0