Skip to content

Commit

Permalink
chore: use 1.4.0 not 1.3.0 due to npm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Nov 1, 2024
1 parent dc39511 commit 6ae5453
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Changelog

## [1.3.0]
## [1.4.0]

I'm sorry to skip `1.3.0` due to an issue I've had while publishing the NPM package.

- chore(input): stop enforcing only digits regexp by default
- Before 1.3.0, the input would take `REGEXP_ONLY_DIGITS` as the default pattern behavior, mistaking mobile users when they couldn't type in or even paste alphanumeric entries.
- Before 1.4.0, the input would take `REGEXP_ONLY_DIGITS` as the default pattern behavior, mistaking mobile users when they couldn't type in or even paste alphanumeric entries.
- feat(input): add pasteTransformer prop
- Allows pasting invalid codes and then transforming them into something that the input's regex/pattern would accept. Example: you can now take "XXX-XXX" as pasted input even though you've determined a pattern of 6 numerical digits; just add a prop to your OTPInput: `pasteTransformer={pasted => pasted.replaceAll('-','')}`.
- feat(input): add placeholder
Expand Down
2 changes: 1 addition & 1 deletion packages/input-otp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "input-otp",
"version": "1.3.0",
"version": "1.3.1",
"author": "Guilherme Rodz <[email protected]>",
"description": "One-time password input component for React.",
"license": "MIT",
Expand Down

0 comments on commit 6ae5453

Please sign in to comment.