Skip to content

v1.0.12

Choose a tag to compare

@debabin debabin released this 17 Jul 15:33
· 30 commits to main since this release

Improvements and fixes

This release adds a sanitize option to useMask, an abort method to useSpeechRecognition, and loosens the cn class-dictionary type.

Features

  • useMask — added a sanitize option that normalizes the entire raw value before masking, applied on every change, on paste, and in setValue, so consumers can strip or rewrite input as a whole rather than per character.
  • useSpeechRecognition — added an abort method that interrupts recognition immediately without a final result, unlike stop, which finalizes and triggers onResult.

Fixes

  • cn — the ClassDictionary type now accepts Record<string, any> instead of Record<string, unknown>, so class objects typed loosely upstream no longer need a cast.