Skip to content

Commit

Permalink
Bump version, update README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
taflanidi committed Mar 16, 2020
1 parent 8741f6f commit f78e7c8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
13 changes: 13 additions & 0 deletions 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:
Expand Down
2 changes: 1 addition & 1 deletion 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"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -12,11 +12,13 @@

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

### 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

Expand Down

0 comments on commit f78e7c8

Please sign in to comment.