v1.0.12
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 asanitizeoption that normalizes the entire raw value before masking, applied on every change, on paste, and insetValue, so consumers can strip or rewrite input as a whole rather than per character.useSpeechRecognition— added anabortmethod that interrupts recognition immediately without a final result, unlikestop, which finalizes and triggersonResult.
Fixes
cn— theClassDictionarytype now acceptsRecord<string, any>instead ofRecord<string, unknown>, so class objects typed loosely upstream no longer need a cast.