Skip to content

Commit

Permalink
update Readme, fixed markdown errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed Jan 9, 2019
1 parent 7b4dbe1 commit f2f9a31
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 123 deletions.
6 changes: 6 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"default": true,
"line-length": false,
"no-duplicate-header": { "siblings_only": true },
"no-inline-html": false
}
117 changes: 82 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,103 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.4] - 2018-09-14
## \[Unreleased]

### Added

- Markdown lint rules.

### Changed

- Update Readme.

### Fixed

- Linting errors in the markdown of the Changelog and Readme files.

## \[2.0.4] - 2018-09-14

### Changed

- Patch to v2.0.3 published from wrong branch

## [2.0.3] - 2018-09-14
## \[2.0.3] - 2018-09-14

### Changed

- Updated README

### Fixed
- #6 Fix podspec sysntax. Thanks to @Jyrno42

## [2.0.2] - 2018-08-31
- PR #6 Fix podspec sysntax. Thanks to @Jyrno42

## \[2.0.2] - 2018-08-31

### Changed

- iOS: Give `flatHeights` better performace by avoiding multiple creation of NSTextStorage.
- Android: Now Studio can check versions in android/build.gradle

### Fixed

- Closes #5: Inconsistency in flatHeights between Android and iOS.
- Some error in the README and include note about unlink the previous version.

## [2.0.1] - 2018-08-22
## \[2.0.1] - 2018-08-22

### Fixed

- Silly typo error in last minute edition.

## [2.0.0] - 2018-08-22
## \[2.0.0] - 2018-08-22

Bump v2.0.0 :tada:

### Changed

- Code cleanup, minor enhancements.

### Removed

- Removed the `FontSize` constants.

## [2.0.0-beta.6] - 2018-08-21
## \[2.0.0-beta.6] - 2018-08-21

### Added
- New function `flatHeights` to calculate the height of multiple strings at once, much faster than` measure`.
- Revised REAME. Now it's clearer, part of its content moved to the Wiki.
- Docummented the iOS only properties `capHeight` and `xHeight` from the `fontFromSpecs` result.

- New function `flatHeights` to calculate the height of multiple strings at once, much faster than `measure`.
- Revised Readme. Now it's clearer, part of its content moved to the Wiki.
- Docummented the iOS-only properties `capHeight` and `xHeight` from the `fontFromSpecs` result.
- New flag `usePreciseWidth` (default `false`) request the most accurate calculation of the width (Android) and the value of `lastWidth` (both), but its is a bit slower.

### Changed
- iOS: The `specsForTextStyles` function returns fontSize amd letterSpacing with unscaled values, to allow the use with `allowFontScaling`.

### Removed
- To avoid interfering with the change tracking of rnTextSize, this application was moved to its own repository.
- iOS: The `specsForTextStyles` function returns fontSize amd letterSpacing with unscaled values, to allow its use with `allowFontScaling`.

### Fixed

- Android: `Arguments.fromList` does not exists in RN 0.52, replaced with `Arguments.fromArray`
- iOS: Fixes to errors in the sample App that prevented if from running in iOS.
- iOS: Fix errors in the sample App that prevented it from running in iOS.

### Removed

## [2.0.0-beta.4] - 2018-08-17
_Unpublished_
- To avoid interfering with this changelog, the sample application was moved to its own repository.

**WARNING**
## \[2.0.0-beta.4] - Unpublished

**WARNING:**

_The package id has changed, you must uninstall the previous version before using this one._

### Added

- Note on the README of the sample App, to test it with a different version of RN.
- Adds flow typings (almost) working with Flow 0.61.x
- Enhancements to the sample App with RN 0.56 and Flow
- New functions `specsForTextStyles`, `fontFromSpecs`, and `fontFamilyNames`

### Changed

- Complete rewrite of the sample app.
- Simplify anroid/build.gradle and adjust the configuration.
- `allowFontScaling` is handled in the native side, index.js was simplified a lot.
Expand All @@ -79,66 +109,83 @@ _The package id has changed, you must uninstall the previous version before usin
- Fixes to typings.

### Removed

- Drop support for iOS 8 and RN below 0.52

### Fixes
### Fixed

- Tested on iOS 9 & 11 simulators, Android devices 5.1 & 7, simulator 4.4 & 11, all with RN 0.52.0 and 0.56.0
- Improved measurement on both platforms, accuracy is more than 5 decimals.
- The iOS API and behavior of `measure` now is the same as Android.
- Makes the example works.

## [1.0.0-beta.5] - 2018-07-11
_Unpublished_
## \[1.0.0-beta.5] - Unpublished

- Preliminary implementation for iOS (thanks to @xuhom)
- The license is changed to BSD 2-Clause as [react-native-measure-text](https://github.com/airamrguez/react-native-measure-text), on which this library is based.

## [1.0.0-beta.4] - 2018-04-23
_Unpublished_
## \[1.0.0-beta.4] - Unpublished

### Changed

- Now the SDK versions are compatible with global rootProject.ext for flexible configuration.

## [1.0.0-beta.3] - 2018-02-17

Published to npm, tested with Android SDK 21.

### Changed

- Updates compileSdkVersion, buildToolsVersion and targetSdkVersion.
- Gradle plugin to 2.3.3

## [1.0.0-beta.2] - 2018-03-06
_Unpublished_
### Fixes
- Correction to the default export in the index
## \[1.0.0-beta.2] - Unpublished

### Changed

- Using ES6 for index.js

## [1.0.0-alpha.10] - 2018-02-20
_Unpublished_
### Fixed

- Correction to the default export in the index

## \[1.0.0-alpha.10] - Unpublished

### Changed

- compileSdkVersion 25, buildToolsVersion 25.0.3, targetSdkVersion 25

## [1.0.0-alpha.9] - 2018-02-19
_Unpublished_
## \[1.0.0-alpha.9] - Unpublished

### Changed

- Revision to README
- targetSdkVersion from 22 to 23.
### Fixes

### Fixed

- Fix error in android path
- Android package id is 'io.amarcruz.rnmeasuretext'

## [1.0.0-alpha.8] - 2018-01-29
_Unpublished_
## \[1.0.0-alpha.8] - Unpublished

### Added

- Suppport for `includeFontPadding`

### Changed

- Using gradle 2.2.3

## [1.0.0-alpha.7] - 2018-01-11
_Unpublished_
## \[1.0.0-alpha.7] - Unpublished

### Added

- Returned info includes `lineCount` with the number of lines and `lastLineWidth` with the last line width (Android).
- Uses scaled `fontSize` (with `allowFontScaling`, automatic).

### Changed

- Makes `width` property optional in parameters (Android).
- Minor fixes, now working.
- First commit, Android only.
Loading

0 comments on commit f2f9a31

Please sign in to comment.