Skip to content

1.1.0 Improvements and Fixes

Compare
Choose a tag to compare
@Jaynator495 Jaynator495 released this 17 Aug 03:23
· 21 commits to master since this release

This release improves the readme, documentation, performance and also bug fixes.

Breaking

All Smiley identifiers have been renamed to Emoji, this is a fairly small change but brings the package up to the modern era. Refer to the new documentation for a complete list of methods.

Changes

  • Convert all php polyfills from locutus into native js, this means this package has no more runtime dependencies!
  • Convert from ts-loader to babel for compiling for browsers
  • Add multiple types of releases, full and minified, and for each also a legacy version and normal version. (Legacy allows for compatibility on older browsers that don't support things like the spread operator, but might suffer slightly in performance)
  • Major code cleanup
    • All PHP-Like variables have been converted to JS-Like
    • Improves the typing/types of the code (There is still some more work to do here)
    • Convert webpack config to TS
    • Improves documentation
  • New documentation page that gets generated as code gets updated
  • Adds extra tests to make sure most cases work fine.

Bugs Fixed

  • Issue with [acronym] not being properly parsed if the input isn't exactly right
  • Issue with [list] where in some circumstances the closing tag would break the function
  • Likely other similar issues related to the above. This should improve the stability of the parser greatly.

Final note

I'm not sure what to do about the default emoji that would normally be included with the PHP version of this package. I am conflicted on including the original emoji since they are very outdated, and instead I'm considering including modern emoji (potentially Twemoji? (Twitter Emoji), or alternatively the custom emoji we use on QuestonCove?) and updating the default emoji definitions in the file. Any feedback about this would be welcome.

Full Changelog: 1.0.0...1.1.0