Releases: alexaubry/HTMLString
π v6.0.1 β 2020-10-01
π v6.0.0 β 2020-09-28
Changes
- Require iOS 9 and Swift 5
- Removed mutate-in-place methods
Fixes
- Improve overall performance
- Fix build warnings with Xcode 12
Migration Guide
- Adding Unicode Entities
- Replace
addingUnicodeEntitiesbyaddingUnicodeEntities() - Replace
addUnicodeEntities()byaddingUnicodeEntities()
- Adding ASCII Entities
- Replace
addingASCIIEntitiesbyaddingASCIIEntities() - Replace
addASCIIEntities()byaddingASCIIEntities()
- Removing Entities
- Replace
removingHTMLEntitiesbyremovingHTMLEntities() - Replace
removeHTMLEntitiesbyremovingHTMLEntities()
4.1.0-beta.1
π v4.1.0-beta.1
π v4.0.2
Update for Xcode 9.3 and Swift 4.1
- Update project for Swift 4.1
- Improve tests and documentation
π v4.0.0
Update for Xcode 9 and Swift 4
- Update project for Swift 4
- Improve tests and documentation
- Run CI tests on mutliple platforms
- Update metadata
π v3.0.0
HTMLString 3.0.0 makes everything Swiftier.
β οΈ οΈ Source-breaking changes
The old API has been deprecated in favor of a new one that aligns to Foundation's API to add/remove percent encoding.
Swift API
escapingForUnicodeHTMLhas been renamed toaddingUnicodeEntitiesescapingForASCIIHTMLhas been renamed toaddingASCIIEntitiesunescapingFromHTMLhas been renamed toremovingHTMLEntities
NSString Swift API
stringByEscapingForUnicodeHTML()has been renamed toaddingUnicodeEntities()stringByEscapingForASCIIHTML()has been renamed toaddingASCIIEntities()stringByUnescapingFromHTML()has been renamed toremovingHTMLEntities()
NSString Objective-C API
stringByEscapingForUnicodeHTMLhas been renamed tostringByAddingUnicodeEntitiesstringByEscapingForASCIIHTMLhas been renamed tostringByAddingASCIIEntitiesstringByUnescapingFromHTMLhas been renamed tostringByRemovingHTMLEntities
Xcode fix-its should be able to help you migrate to the latest syntax.
β Fixed/Improved
- The Xcode project has now 1 target/platform
- Fixed an error with build settings that caused the library to be unusable with Carthage
- Better Objective-C annotation
- More expressive and instructive README and docs
π v2.1.2
This release extends the library's compatibility to Objective-C projects using Mix and Match interoperability.
π v2.1.1
This minor release focuses on code, security and performance improvements.
New APIs
- You can now perform custom escaping by escaping Unicode scalars individually.
Improvements
- Further improved the escaping algorithm, which is now up to 6 times faster.
- Changed the escaping strategy: special characters are now escaped with decimal sequences. This allows for better compatibility with browsers (HTML 4.0 compatible) and better speed
- Changed the Unicode escaping strategy: only escape characters that could cause an XSS injection
- Added an asymptotic complexity approximation calculator (every algorithm is now O(N))
Fixed
- Removed .DS_Store
π v2.1.0
Meet HTMLString v2.1.0 and its huge performance improvements!
Escaping is now up to 6.5 times faster and unescaping up to 98 times faster. Check out the new benchmark reports for more details.
Internal Changes
- Change the escaping algorithm (
reduceinstead ofmap) - Reduced the size of the escaping mappings
And also
- Improved documentation
β οΈ Source breaking changes
- The
Characterextensions have been removed.
π v2.0.1
This release focuses on improving the library's performance : escaping is 99.37% (!) faster and unescaping is 10,38% faster in average (π)
And also:
- Changed the escaping/unescaping tables model
- Better tests and coverage