Skip to content

v3.25.0 - treatZeroAsBlank + runtime precision fix

Choose a tag to compare

@jonathanpmartins jonathanpmartins released this 16 May 22:53
· 26 commits to main since this release
933d942

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.