Releases: devfolioco/react-otp-input
Releases · devfolioco/react-otp-input
v3.1.1
What's Changed
- chore: Bump postcss from 8.4.21 to 8.4.31 in /example by @dependabot in #424
- chore: Bump @babel/traverse from 7.21.3 to 7.23.2 in /example by @dependabot in #426
- fix: mobile autofill from native suggestion by @hogiyogi597 in #428
New Contributors
- @hogiyogi597 made their first contribution in #428
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- ✨ Support onPaste event handler by @sdomino in #415
- ✨ Allow user to skip default styles by @prateek3255 in #416
New Contributors
Full Changelog: v3.0.4...v3.1.0
v3.0.4
What's Changed
- ♻️ Export all types for react-otp-input by @prateek3255 in #408
Full Changelog: 3.0.3...v3.0.4
3.0.3
What's Changed
- chore: Bump vite from 4.2.1 to 4.2.3 in /example by @dependabot in #401
- chore: Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #406
- chore: Bump semver from 6.3.0 to 6.3.1 in /example by @dependabot in #405
- chore: Bump semver from 5.7.1 to 5.7.2 by @dependabot in #404
- 🚑 Fix paste not working for number inputs by @prateek3255 in #407
Full Changelog: v3.0.2...3.0.3
v3.0.2
What's Changed
- Fix number input accepting characters in Firefox by @prateek3255 in #396
Full Changelog: v3.0.1...v3.0.2
v3.0.1
What's Changed
- fix: android backspace not working by @suleymanbariseser in #390
New Contributors
- @suleymanbariseser made their first contribution in #390
Full Changelog: v3.0.0...v3.0.1
v3.0.0
This update is a complete rewrite of the react-otp-input component internally and has a few breaking changes. The updates include:
- The earlier version was written with class components which is not recommended anymore and plain JSX leading to no typesafety. To fix this update is rewritten with React hooks and TypeScript offering complete typesafety and much cleaner code.
- Got rid of the
onInput
sinceonChange
supersedes it and is recommended by React instead. - Add a new renderInput prop that now requires the user to pass their own input and hence allows them to style it or add custom props to it according to their needs, this also helps get rid of many other props that were being passed to the component and then passed to the input, which is not needed anymore because they can be directly passed to the input. Apart from that this also has a few more breaking changes which can be found in the migration guide.
- The library is now compiled via rollup instead of webpack, since it is the more preferred bundler for libraries and is more easier to use.
- The example is also rewritten using the Vite react template, which offers lightning fast hot reloads.
v2.4.0
v2.3.1
🐛 Patches
- (DEVELOPMENT): Upgrade babel and presets. #289 @apollonian
- (DEVELOPMENT): Security updates to dev dependencies.
v2.3.0
✨ Improvements
- Add isInputSecure prop. #120 @anoopmsivadas
- Add TypeScript typings. #237 @ishan-chhabra
🐛 Patches
- Change input field focus when a code is pasted. #123 @dewanshrawat15
- Prevent pasting when input is disabled. #251
💙 Thank you to the contributors
- (DEMO) Add GitHub Pages deploy action. #226 @aromalanil