UNPKG

mg-bibles

Version:

A package for accessing Bible verses in Malagasy (MG), Diem, King James (KJV), and Louis Segond (APEE) versions

62 lines (45 loc) 2.15 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.5.0] - 2024-03-23 ### Added - New `getVerse(version: BibleVersion, reference: string)` function to get a single verse - Improved error handling with specific error messages for invalid references - Added support for verse numbers in error messages ### Changed - Enhanced error handling to provide more descriptive messages - Improved test coverage for error cases ## [1.4.0] - 2024-03-22 ### Added - Enhanced error handling for invalid book names, chapters, and verses - Improved test coverage for all Bible versions and reference formats ### Changed - Updated test suite to cover more edge cases and error scenarios - Improved documentation and examples in README ## [1.3.0] - 2024-03-21 ### Added - Support for King James Version (KJV) Bible - Support for Louis Segond (APEE) Bible - Updated type definitions to include new Bible versions ## [1.2.0] - 2024-03-20 ### Added - New `chapterCount(version: BibleVersion, bookName: string)` function to get the number of chapters in a book - New `versesCount(version: BibleVersion, bookName: string, chapter: number)` function to count verses in a specific chapter ### Changed - Modified `countVerses` function to return only the total verse count instead of an object with verse and chapter counts ## [1.1.0] - 2024-03-20 ### Added - New `listBooks(version: BibleVersion)` function to get all books in a Bible version - Improved book sorting in `listBooks` to handle numbered books (e.g., 1-samoela, 2-samoela) ## [1.0.0] - 2024-03-20 ### Added - Initial release - `getVerses(version: BibleVersion, reference: string)` function to get Bible verses - Support for both Malagasy (mg) and Diem Bible versions - Support for various reference formats: - Single verse (e.g., "jaona 3:16") - Verse range (e.g., "jaona 3:16-18") - Multiple verses (e.g., "jaona 3:16,18") - Whole chapter (e.g., "jaona 3") - TypeScript type definitions