- Updates (sub-)dependencies
- body-parser to 1.20.3
- cookie to 0.7.1
- cross-spawn to 7.0.6
- elliptic to 6.6.1
- micromatch to 4.0.8
- path-to-regexp to 0.1.10
- send to 0.19.0
- Update express to 4.19.2
- Update ejs to v3.1.10
- Repair integration tests
- Fix date input for Samsung browser
-
Update to node v18
-
Dev Dependency Updates
- Update to TypeScript 5
- Update jsdoc to v4.0.2
- Update uuid to v9.0.0
- Update other minor dependencies to latest minor version
- Fix issue where a Mac OS user change between two keyboard configuration and the input would not format correctly in Safari
- Fix issue where some Mac OS input sources would not format correctly in Safari
- Fix issue where pasting on Android Chrome would result in a double entry of the inputted value (Fixes braintree-web-drop-in#650)
- Fixup usage of window for server-side rendering
- Add missing
supports-input-formatting
module at top level
- Add Typescript types
Breaking Changes
Private methods in Restricted Input are now private
- convert global to window (closes braintree-web#401)
- Add option to include a hook for the unformatted value of the input after pasting
- Update browser-detection dependency to 1.8.0
- Add ChromeOS detection and treat it like Android (fixes issue with malformed formatting in chrome books with soft keyboards)
- Fix bug where input would be formatted when using
setPattern
even if input is empty
- Fix bug in iOS Chrome where autofill may not format correctly
Breaking Changes
- Inputs initialize in formatted state if input has a preset value
- Fix bug where iOS inputs would not paste correctly
- Add prepublish script to build file before publishing
- Update browser-detection to latest major version
- Fix LastPass autofill bug
- Use scoped version of browser-switch dependency
- Fix Chrome Autofill to format the input correctly
- Update browser detection lib
- Fix issue where restricted input could not be required in a server context
- Provide supports-input-formatting as a standalone file
- Provide specific strategy for Android KitKat Chromium based webviews. Fixes issue where only 4 characters could be input
- Provide helper method for determining if the browser supports formatting
- Correct detection of Samsung browsers to disable formatting in old versions
- Fix formatting when using 1Password autofill
- Disable restricted input in the Samsung Browser
- Fix for Samsung keyboards reporting a ranged selection on first character input
- Fix for Samsung keyboards not selecting input correctly after a permacharacter insertion on Android Chrome
- Fix for third party keyboards on Android Chrome
- Fix iOS Safari autocomplete issue
- Fix Safari autocomplete issue
- Fix IE9 stuttering when formatting inputs
- Fix iOS stuttering when formatting inputs
- Remove deprecated
keyIdentifier
check - Optimize RegExp creation
- Initial public release of restricted-input