Releases: rawpixel-vincent/string-literal-list
Releases · rawpixel-vincent/string-literal-list
v1.5.2
Full Changelog: v1.5.1...v1.5.2
v1.5.1
Full Changelog: v1.5.0...v1.5.1
v1.5.0
What's Changed
- add
value(T):T
method to get a constant from the list by @rawpixel-vincent in #3
// Get a copy of the underlying array -> string[]
const arr = list.mutable(); // => ["foo", "bar"]
// access a value in the list
list.value('foo'); // 'foo'
list.value('n'); // throws error
Full Changelog: v1.4.1...v1.5.0
v1.4.1
Full Changelog: v1.4.0...v1.4.1
v1.4.0
What's Changed
- allow list or string in concat arguments
- add support for node >=16
- fix the literals type when updating an empty list
- rename the StringList class to SL
- add tests for empty lists, older node versions and concat of list and strings
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- clean tests, exports and ci by @rawpixel-vincent in #1
Full Changelog: v1.2.1...v1.3.0
v1.2.1
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Full Changelog: v1.1.1...v1.2.0
v1.1.1
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Full Changelog: v1.0.5...v1.1.0