All notable changes to Hylo Utils (shared utils for all Hylo products) will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Custom timezone support to TextHelpers.formatDatePair
- New AnalyticsEvents.GROUP_NEW_MEMBER
- New AnalyticsEvents: COMMENT_REACTION, EVENT_RSVP, POST_OPENED, POST_REACTION, SIGNUP_EMAIL_VERIFICATION_SENT, SIGNUP_EMAIL_VERIFIED, SIGNUP_REGISTERED
TextHelpers.sanitizeURL
adds "https" to URLs without a specified protocol
LocationHelpers.generalLocationString
used for presenting a location object
- AnalyticsEvents.POST_SHARED
- Turns autolinking on for
TextHelpers.markdown
by default, but allows it to be turned off withdisableAutolinking
option
...
HyloApp
for handling nativeWebView
messaging between Web and AppLocationHelpers.parseCoordinate
andconvertCoordinateToLocation
relocated fromhylo-evo
LocationHelpers.parseCoordinate
andconvertCoordinateToLocation
relocated fromhylo-evo
LocationHelpers.convertMapboxToLocation
function to concvert the response from mapbpx geocoding into the format we use for locations
- Changed markdown library is configured to work in transpiled distribution
- Disable GFM autolinking in markdown: all autolinking should be handled by linkify at point of display
- BREAKING CHANGES: text, validators have been changed to TextHelpers, PathHelpers, Validators
- Input sanitization removed on TextHelpers#markdown
- Add shared DraftJS
contentState
related conversion routines - Remove unused code
- Change build to dist directory
- Sanitize text when using marked for markdown
- Update marked library to latest release
- CHANGELOG
- Use updated cheerio dependency to make compatible with latest enzyme's use of the htmlparser2 peer depdency which is polluting NPM space
- Whitelisted more attributes for text#sanitize to accomodate saving of mentions and topics from HyloEditor
- Updated linkify > cleanupLink function to expand mention links with URL as is currently done with topics (hashtags)
- Added threadNames which accepts an array of names and displays them in a screen size friendly way
- Linkify's handling of hashtags
- Simple validation scheme for model properties
div
to tag whitelist for sanitize (required in comments).
- dToP: Cheerio dependency, converts div tags from mobile client to p.
- text > present to accept noLinks option to not convert links and hashtags into anchors
- Topic name validator