Changelogs
All releases, improvements, and fixes for bos-nepali-date.
-
v0.2.0 Latest BreakingCSS externalized, bundle optimized, data flattened
- โ ๏ธBreaking: CSS is no longer auto-injected. Add
import 'bos-nepali-date/style'to your entry file. The UMD bundle now loads styles from a separatebos-nepali-date.cssfile. - ๐ฆESM bundle reduced from ~24 KB gzip to ~13 KB gzip by externalizing CSS (~46% savings on the JS bundle). CJS bundle similarly reduced.
- โกFlattened
bsMonthDatafrom a Record to a compactreadonly number[]array โ smaller bundle and simpler offset-based access. - ๐ง
MemoryBsAdapternow accepts both flat arrays (preferred) and legacy Record-format year tables for backward compatibility. - ๐งชAdded 24 new unit tests for presets,
onPanelChange,nameprop, year range, and dual-month view. Total: 163 tests.
- โ ๏ธBreaking: CSS is no longer auto-injected. Add
-
v0.1.17 โLive demo & docs redesign
- ๐จRedesigned docs site with DM Sans font, amber accent palette, and cleaner layout.
- ๐ฅ๏ธAdded live interactive demo on the homepage with language toggle and disable rules.
- ๐ฆAdded UMD bundle for browser usage and live demos.
- ๐Dark mode toggle across all docs pages with system preference detection.
-
v0.1.13 โOverflow-safe popover
- โจFix calendar popover clipping inside dialogs, drawers, cards, and other
overflow-constrained containers. - ๐งRender the picker overlay through a portal and anchor it with viewport-aware fixed positioning.
- ๐Reposition the overlay on scroll and resize while keeping outside-click and keyboard dismissal behavior.
- โ Added regression coverage for portaled popover rendering and outside-click handling.
- โจFix calendar popover clipping inside dialogs, drawers, cards, and other
-
v0.1.11 FixFont & popover sizing
- ๐คStop forcing
Inter/system-uias the default picker font โ controls now inherit the host app font. - โ Fix incorrect Nepali glyph rendering on systems with problematic fallback fonts.
- ๐Use a standard calendar popover width instead of stretching to the input width (adds
--np-popover-min-width/--np-popover-max-widthCSS variables).
- ๐คStop forcing
-
v0.1.9Optional input validation
- โ๏ธMake input pattern optional (
inputPatternprop) โ allows disabling native validation.
- โ๏ธMake input pattern optional (
-
v0.1.8Input pattern prop
- โAdded
inputPatternprop; set tofalseto remove native input pattern validation.
- โAdded
-
v0.1.7Input styling & icon refresh
- โAdded
inputClassNamefor custom input styling. - ๐Swapped caret for a calendar icon on the trigger button.
- ๐ฆVersion bump for npm publish.
- โAdded
-
v0.1.6 FeatureAuto-injected CSS
- ๐จBundles now auto-inject CSS (no manual import needed).
- ๐งAdded tsup config to ensure styles are emitted as side effects.
-
v0.1.1 FeatureLocalization & disable rules
- ๐Added localization (
lang: 'en' | 'ne') with Nepali digits and labels. - โAdded disable rules โ single date, date list, today, before/after.
- โจ๏ธInput mask now normalizes Nepali digits and blocks non-numeric input.
- ๐๏ธMonth/year selectors can be hidden while static labels still render.
- โ Added Vitest + jsdom test suite with edge-case coverage.
- ๐Added localization (