Skip to content

Releases: devfolioco/react-otp-input

v3.1.1

12 Dec 05:09
Compare
Choose a tag to compare

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

Full Changelog: v3.1.0...v3.1.1

v3.1.0

26 Sep 16:55
304cd54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.4...v3.1.0

v3.0.4

22 Jul 20:16
bb9dbc2
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.3...v3.0.4

3.0.3

22 Jul 20:09
b3b973b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.2...3.0.3

v3.0.2

29 Apr 06:44
facf432
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.0.2

v3.0.1

23 Apr 07:37
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.0...v3.0.1

v3.0.0

23 Mar 05:49
e7cc58e
Compare
Choose a tag to compare

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 since onChange 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

24 Jun 05:22
Compare
Choose a tag to compare

✨ Improvements

  1. Allow passing data-testid & data-cy test attributes to the inputs. #296

💙 Thank you to the contributors

@causztic

v2.3.1

29 May 12:24
Compare
Choose a tag to compare

🐛 Patches

  1. (DEVELOPMENT): Upgrade babel and presets. #289 @apollonian
  2. (DEVELOPMENT): Security updates to dev dependencies.

v2.3.0

31 Oct 10:50
Compare
Choose a tag to compare

✨ Improvements

  1. Add isInputSecure prop. #120 @anoopmsivadas
  2. Add TypeScript typings. #237 @ishan-chhabra

🐛 Patches

  1. Change input field focus when a code is pasted. #123 @dewanshrawat15
  2. Prevent pasting when input is disabled. #251

💙 Thank you to the contributors

  1. (DEMO) Add GitHub Pages deploy action. #226 @aromalanil