Releases: alexaubry/HTMLString
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
addingUnicodeEntities
byaddingUnicodeEntities()
- Replace
addUnicodeEntities()
byaddingUnicodeEntities()
- Adding ASCII Entities
- Replace
addingASCIIEntities
byaddingASCIIEntities()
- Replace
addASCIIEntities()
byaddingASCIIEntities()
- Removing Entities
- Replace
removingHTMLEntities
byremovingHTMLEntities()
- Replace
removeHTMLEntities
byremovingHTMLEntities()
4.1.0-beta.1
🔖 v4.1.0-beta.1
🔖 v4.0.2
🔖 v4.0.0
🔖 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
escapingForUnicodeHTML
has been renamed toaddingUnicodeEntities
escapingForASCIIHTML
has been renamed toaddingASCIIEntities
unescapingFromHTML
has 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
stringByEscapingForUnicodeHTML
has been renamed tostringByAddingUnicodeEntities
stringByEscapingForASCIIHTML
has been renamed tostringByAddingASCIIEntities
stringByUnescapingFromHTML
has 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
🔖 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 (
reduce
instead ofmap
) - Reduced the size of the escaping mappings
And also
- Improved documentation
⚠️ Source breaking changes
- The
Character
extensions have been removed.