Releases: Solvro/lib-solvro-utils
Releases · Solvro/lib-solvro-utils
Release list
v1.6.0
new method on ExtendedMap in map.ts:
update- applies a transformation function to a given map entry- can insert new values if an entry doesn't exist yet (transformation function will be given an
undefinedvalue) - can delete existing values if transformation function returns
undefined
- can insert new values if an entry doesn't exist yet (transformation function will be given an
v1.5.0
new function in misc.ts:
assertExhaustive- utility function for getting TS to yell at you if you ever forget to cover every single possibility in a switch statement- useful when switching on an enum value
- see test cases for usage examples
v1.4.0
new minilib: misc.ts:
isPlainObject: simple function to verify that a value is just a plain JS object: not null, not undefined, not an array, not a class instance - just an object
v1.3.0
v1.2.0
new mini-libs:
option.ts*Mapfunctions: basically Rust's Option::map ported to JSassert*functions: null/undefined asserts
ics.ts- an ICS file parser (to JSON)
v1.1.2
- fixed the autorelease workflow
- the package structure should be correct now
v1.1.1 [broken]
- new autorelease workflow
- which broke the package directory structure
v1.1.0
- added the
promisesminilib:wait(): a promise that resolves after a set amount of time
v1.0.0
Initial release:
- all the utils used in backend-topwr:
- arrays: chunkArray and zip
- map: getOrInsert*
- semaphore: the simple Semaphore
- plus unit tests