Skip to content

Commit f78e7c8

Browse files
committed
Bump version, update README and CHANGELOG
1 parent 8741f6f commit f78e7c8

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
### `6.0.0`
4+
5+
#### Removed:
6+
7+
* `Mask::apply()`, the `autocomplete` flag
8+
9+
This flag is now a part of the `CaretGravity.forward` enum case.
10+
11+
#### Added:
12+
13+
* `CaretGravity.forward`, the `autocomplete` flag
14+
* `CaretGravity.backward`, the [`autoskip`](https://github.com/RedMadRobot/input-mask-ios/wiki/0.-Mask#autoskip-flag) flag
15+
316
### `5.0.0`
417

518
#### Removed:

InputMask.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "InputMask"
3-
spec.version = "5.0.0"
3+
spec.version = "6.0.0"
44
spec.summary = "InputMask"
55
spec.description = "User input masking library."
66
spec.homepage = "https://github.com/RedMadRobot/input-mask-ios"

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212

1313
<img src="https://raw.githubusercontent.com/RedMadRobot/input-mask-ios/assets/Assets/phone_input.gif" alt="Input Mask" width="640" />
1414

15-
### Important: Migration Guide: v.5
15+
### Migration Guide: v.6
1616

17-
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.
17+
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.
1818

19-
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.
19+
`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.
20+
21+
Make sure to take a look at our [CHANGELOG](https://github.com/RedMadRobot/input-mask-ios/blob/master/CHANGELOG.md).
2022

2123
## Description
2224

0 commit comments

Comments
 (0)