Skip to content

Nepali Date NodeJS - Changelog

List of Changes of all versions of Nepali Date NodeJS from v1.1.14

[1.1.14] - 2026-03-16

Added

  • daysInMonth Method Enhancement
    • Added optional year and month parameters to daysInMonth method

    • Allows checking days in any Nepali month without creating a new instance

    • Example usage:

      javascript
      // Gets Month and Date from instance
      const days = NepaliDate().daysInMonth();
      
      // Gets Month and Date from parameters and can be used statically
      const days = NepaliDate.daysInMonth(2081, 5);
  • GitHub Issue and Pull Request Templates
    • Added issue template for bug reports
    • Added issue template for feature requests
    • Added pull request template for standardized contributions
    • Improves contributor experience and issue tracking

Fixed

  • addYears Method Logic
    • Fixed incorrect year calculation when adding years
    • Properly handles edge cases with month/day overflow
    • Ensures valid dates after year addition
  • isLeapYear Method Logic
    • Corrected leap year detection for Nepali calendar
    • Fixed edge cases in leap year calculation
    • More accurate year validation
  • endOfWeek Parameter Validation
    • Added proper parameter validation for endOfWeek method
    • Prevents invalid input from causing errors
    • Better error messages for incorrect usage

Changed

  • NepaliDate Method Reordering
    • Reorganized method definitions for better code readability
    • Grouped related methods together
    • Improved internal code structure (no API changes)

Migration Guide

✅ No Breaking Changes

This release is 100% backward compatible. All existing code will continue to work without modifications.

Released under the MIT License.