Skip to content

Releases: QuestionCove/nbbcjs

1.1.2 Quality of Life

18 Aug 03:25
Compare
Choose a tag to compare

Improvements

Improvements to quality of life, specifically:

  • The parser now supports escape characters for bbcode, for example, so \[b] can become [b] without parsing.
  • Getter/Setter functions are now all documented with descriptions.
  • The repo now includes the default Emoji, however, they are not included in the NPM release, make sure they are included on the site they are being used on and the path is set in the parser.
  • Remove the source maps being generated for the web releases
  • Improved Code Coverage

Full Changelog: 1.1.0...1.1.2

1.1.0 Improvements and Fixes

17 Aug 03:23
Compare
Choose a tag to compare

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

1.0.0 - The First Release

12 Aug 19:25
Compare
Choose a tag to compare

The first release of the NBBCjs Parser