Skip to content

Releases: meezwhite/OpString

v0.5.1

31 Aug 14:10
Compare
Choose a tag to compare

💃 OpString.salsa

Fixed

  • Fixed a validation issue preventing non-string symbols to be used for labels.

v0.5.0

31 Aug 13:09
Compare
Choose a tag to compare

🧙 OpString.quest

Added

  • Added getNextId method to retrieve the id to be assigned to the next appended operation.

Full Changelog: v0.4.0...v0.5.0

v0.4.0

08 Aug 13:58
Compare
Choose a tag to compare

🌅 OpString.horizons

Added

  • Added labels functionality to better represent symbols with labels.
    • Labels can be defined when creating a new instance using the config.labels property or the new methods: registerLabel, registerLabels, setLabels, getLabels, getCharForLabel and getCharCodeForLabel.
  • Added index(id) method to find the index of an operation with the provided id in the sequence.

Changed

  • Changed the append, prepend, and insert methods to return false in cases of failure, rather than null.

Breaking changes

  • If you've been checking the outcome of append, prepend, or insert operations for failure by comparing against null, update your checks to compare against false instead.

Full Changelog: v0.3.1...v0.4.0

v0.3.1

26 Jul 23:14
Compare
Choose a tag to compare

🥶 OpString.freeze

Fixed

  • Fixed issue preventing detection of value mappings with certain values, such as 0.

Full Changelog: v0.3.0...v0.3.1

v0.3.0

13 Jul 12:24
Compare
Choose a tag to compare

🀄 OpString.symbol

Added

  • Added getCharForValue to retrieve the corresponding character for the provided value, if it is registered.
  • Added getCharCodeForValue to retrieve the corresponding character code for the provided value, if it is registered.

Full Changelog: v0.2.0...v0.3.0

v0.2.0

12 Jul 22:15
Compare
Choose a tag to compare

✨ new OpString