Releases: meezwhite/OpString
Releases · meezwhite/OpString
v0.5.1
v0.5.0
🧙 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
🌅 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
andgetCharCodeForLabel
.
- Labels can be defined when creating a new instance using the
- Added
index(id)
method to find the index of an operation with the provided id in the sequence.
Changed
- Changed the
append
,prepend
, andinsert
methods to returnfalse
in cases of failure, rather thannull
.
Breaking changes
- If you've been checking the outcome of
append
,prepend
, orinsert
operations for failure by comparing againstnull
, update your checks to compare againstfalse
instead.
Full Changelog: v0.3.1...v0.4.0
v0.3.1
🥶 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
🀄 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