From f78e7c8fe6f0f2b6512b69006ec595aa1224592f Mon Sep 17 00:00:00 2001 From: Jeorge Taflanidi Date: Mon, 16 Mar 2020 20:06:56 +0300 Subject: [PATCH] Bump version, update README and CHANGELOG --- CHANGELOG.md | 13 +++++++++++++ InputMask.podspec | 2 +- README.md | 8 +++++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16b4d0b..13f25fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### `6.0.0` + +#### Removed: + +* `Mask::apply()`, the `autocomplete` flag + +This flag is now a part of the `CaretGravity.forward` enum case. + +#### Added: + +* `CaretGravity.forward`, the `autocomplete` flag +* `CaretGravity.backward`, the [`autoskip`](https://github.com/RedMadRobot/input-mask-ios/wiki/0.-Mask#autoskip-flag) flag + ### `5.0.0` #### Removed: diff --git a/InputMask.podspec b/InputMask.podspec index cbfff89..39dec88 100644 --- a/InputMask.podspec +++ b/InputMask.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "InputMask" - spec.version = "5.0.0" + spec.version = "6.0.0" spec.summary = "InputMask" spec.description = "User input masking library." spec.homepage = "https://github.com/RedMadRobot/input-mask-ios" diff --git a/README.md b/README.md index 9d2161e..a6e54e6 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,13 @@ Input Mask -### Important: Migration Guide: v.5 +### Migration Guide: v.6 -We've added a new concept of cursor gravity to our library internals. A simple flag had allowed us to get rid of some logic flaws and to finalise the right-to-left functionality at the cost of backward compatibility loss. +This update brings breaking changes. Namely, the `autocomplete` flag is now a part of the `CaretGravity` enum, thus the `Mask::apply` call is now single-argument, as all the necessary information is included into the `CaretString` structure. -Make sure to take a look at our [CHANGELOG](https://github.com/RedMadRobot/input-mask-ios/blob/master/CHANGELOG.md) in order to get familiar with the breaking changes. +`v.6` introduces the «autoskip» feature, which allows the cursor to jump over formatting blocks of symbols in the middle of the text as if they were a single char when hitting `Backspace`, and this feature also allows to trim formatting characters on backspacing at the end of the line. + +Make sure to take a look at our [CHANGELOG](https://github.com/RedMadRobot/input-mask-ios/blob/master/CHANGELOG.md). ## Description