You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Feature
New property treatZeroAsBlank distinguishes zero from blank when allowBlank is enabled. Closes issue #101. Pull request #102.
Fix
Changing precision (or any other format-affecting prop) at runtime no longer corrupts the v-model. The component now re-derives the display from the underlying numeric modelValue when format-affecting props change, and re-emits update:model-value when the new opts numerically change the value (min/max clamp, precision-decrease rounding). The bare directive warns and skips on runtime opt changes to avoid corrupting el.value as the only source of truth. Closes issue #99. Pull request #103.
Chore
Dependencies updated to clear all npm audit vulnerabilities.
jest-puppeteer bumped to v11 for puppeteer v25 compatibility.
CI workflow updated to Node 20 LTS + npm ci, with --no-sandbox puppeteer launch args for current GitHub Actions runners.
directive.ts raised to 100% statements/branches/functions/lines via 15 new unit tests covering onInput pre-format, onKeyDown (+, Backspace, null selectionEnd), onFocus with focusOnRight, getValidatedInputElement (nested input + 0/2 input throw paths), mounted/updated falsy binding, non-format-affecting opts change, oldValue=null transition, validateRestrictedOptions failure, and beforeUnmount cleanup. Closes issue #31.