v4 apha is here — 95% smaller, rewritten from scratch #115
eduardoborges
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hey everyone,
v4 of
use-mask-input
is out — and it's not just an update.a complete rewrite with a focus on bundle size, simplicity, and developer experience.
i’ve spent the past few weeks fully rewriting the library from scratch.
why? the previous version had grown too complex, with unnecessary weight and limited flexibility.
this rewrite felt like the right move to unlock a much leaner and more modern core.
⚖️ before vs after
→ that’s ~97% smaller, with zero dependencies
✨ what’s new
mask()
API supporting multiple patterns999.999.999-99
,AAA-999
,*{4}
,[9{2}]
,currency
,decimal
bind()
with smart cursor and backspace behavior🔌 wrappers
withMask
HOC &useMaskedResgister
)📦 install
📍 use-mask-input – roadmap
ongoing roadmap for
use-mask-input
.feel free to open ideas, issues or PRs — contributions welcome!
🚧 in progress – v4.0.0-alpha
mask()
API with support for multiple patternscurrency
,decimal
, optional tokens, repetitionsbind()
with smart backspace + cursorwithMask
cpf
,cnpj
,phone
,email
,money
,decimal
)🔜 planned – v4.1.0
unmask()
andisComplete()
helpers🧪 ideas for v4.2+
🤝 want to contribute?
thanks for being part of it!
Beta Was this translation helpful? Give feedback.
All reactions