All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
4.0.2 - 2025-01-18
- Fixed re-render issues. #96
4.0.1 - 2025-01-07
- Replaced
yarn
bynpm
.
- Fixed missing
exports.types
inpackage.json
. #95
4.0.0 - 2025-01-07
- Added React 19 support. #93
- Added support for key composition. Only the final, composed key is now added to the field.
- Added
usePinField()
custom hook to use the controlled version of the PIN field. See the controlled section of the live demo.
- Changed the way validation works. It is more compliant with HTML standards: invalid characters can be entered but validation will fail (and
onComplete
will not trigger). - Replaced the hand-made demo with Storybook.
- Bump all dependencies to the latest.
- Fixed wrong behaviour in React
<StrictMode>
. #91
- Removed property
validate
in favour of the standard HTMLpattern
attribute. - Removed
onResolveKey
andonRejectKey
properties in favour of standard HTML validation, includingonInvalid
.
3.1.5 - 2024-01-05
- Upgraded all packages.
- Improved accessibility. #84
3.1.4 - 2023-09-09
- Fixed pasting code on Firefox Android. #63
3.1.3 - 2023-02-09
- Upgraded all packages and license year.
3.1.2 - 2022-12-13
- Fixed CI publish script.
3.1.1 - 2022-12-13
- Fixed local
dir
prop override. #71
3.1.0 - 2022-12-13
- Upgraded all packages to the latest versions (react 18.2, node 18.12, cypress 10.10).
3.0.16 - 2022-07-05
3.0.15 - 2022-06-12
- Upgraded
react-use-bireducer
to the latest version.
- Fixed README tests section.
- Fixed CHANGELOG links.
3.0.14 - 2022-05-27
- Model-view-updater (as known as
mvu
in the code) is now handled by the lib react-use-bireducer. - Upgraded all packages to the latest version.
3.0.13 - 2022-05-24
- Added tests in CI.
- Updated readme badges.
- Fixed broken links in the readme.
3.0.12 - 2022-05-23
- Deprecated the
debug
mode (no longer exists).
3.0.11 - 2022-05-22
Revert the lib state from v1.0.6
. The native web component used in the v2.0.0
was too hard to maintain. It led to many issues.
2.0.0-beta.0 - 2021-04-15
React PIN Field is now a React wrapper for PIN Field, a native web component for entering PIN codes.
@soywod/pin-field
needs to be installed, since it became a peer dependency of React PIN Field.- The ref contains now an instance of the class
PinField
. Inputs are accessible via theinputs
prop.
1.1.0 - 2021-03-14
- Deprecated classes
-{index}
,-focus
,-success
and-error
(replaced by standard pseudo-classes:nth-of-type
,:focus
,:valid
and:invalid
).
1.0.6 - 2021-02-10
- Upgraded React version to
^17
. #23
1.0.5 - 2020-10-02
- Removed lodash.
1.0.4 - 2020-08-20
- Fixed tsconfig module type. #20
1.0.3 - 2020-03-28
- Kept previous val on reject key. #16
1.0.2 - 2020-03-27
- Fixed missing delete key. #15
1.0.1 - 2020-03-19
- Added npm version badge and missing icons in docs.
- Remove test files from npm pack.