Releases: mautrix/go-util
Releases · mautrix/go-util
v0.9.8
v0.9.7
v0.9.6
v0.9.5
v0.9.4
- (exsync) Added methods to swap entire map data and a GetOrSet equivalent with a factory method.
- (ffmpeg/waveform) Added package for generating waveform data using ffmpeg.
- (cmd/maubuild) Added tool to replace the
build.shscript in bridges. - (lottie) Fixed animated webp output not being looped properly.
v0.9.3
- (unicodeurls,confusables,emojirunes,variationselector) Updated to Unicode v17.
- (dbutil) Added option to log all queries without arguments.
- (exmaps) Added non-synchronous equivalent of
exsync.Set. - (exslices) Added utilities for deleting items by value.
- (exslices) Added non-synchronous
Stacktype. - (exstrings) Added
LongestCommonPrefix. - (shlex) Added support for line continuations with backslashes.
- (progver) Fixed linkified version for tags.
v0.9.2
- (progver) Added program version calculation utility like the one used by mautrix bridges and Meowlnir.
- (dbutil) Added
sqlite3-fk-wal-fullsyncdriver which is otherwise equivalent tosqlite3-fk-wal, but setsPRAGMA synchronous=FULLfor better crash resistance. - (dbutil) Added explicit error if comment prefix (
--) isn't at the start of the line when using dialect filters with the(lines commented)modifier. - (exsync) Added NewMapWithData, Clear, Len and CopyFrom methods for maps.
- (exsync) Added iterators for maps and sets.
- (jsontime) Changed
Unix*()methods andjsontime.U*Int()functions to treat 0 and the zerotime.Timevalue as the same.
v0.9.1
- (dbutil) Added general documentation.
- (random) Added
StringCharsetfor generating a random string with a custom character set andAppendSequencefor generating a random slice with a completely arbitrary types. - (exslices) Added methods for deduplicating a slice by custom key.
- (exsync) Added
WaitTimeoutCtxfor waiting for anEventwith both a timeout and a context.
v0.9.0
- Bumped minimum Go version to 1.24.
- Breaking change (exhttp) Refactored HandleErrors middleware to take raw response data instead of functions returning response data.
- (requestlog) Added option to recover and log panics.
- (exhttp) Added
syscall.EPIPEtoIsNetworkErrorchecks. - (exsync) Added
Notifymethod for waking up allEventwaiters without setting the flag. This is the atomic equivalent ofSet()immediately followed byClear(). - (exbytes) Added
UnsafeStringmethod for converting a byte slice to a string without copying. - (exstrings) Added
CollapseSpacesto replace multiple sequential spaces with one. - (exstrings) Added
PrefixByteRunLengthto count the number of occurrences of a given byte at the start of a string. - (base58) Fixed panic when input contains non-ASCII characters.