Releases: duke-git/lancet
Releases · duke-git/lancet
v2.3.3
What's Changed
- Update condition.go by @zyfxgo in #234
- feat: add RandFromGivenSlice function by @cannian1 in #235
- feat: add RandSliceFromGivenSlice function by @cannian1 in #236
- fix 删除文档中废弃的RetryDuration函数 by @DerekTond in #240
- feat(maputil): add GetValue by @yunxuanhao in #243
- fix(strutil): rename PadStart to Pad. by @kydance in #245
- doc: update contribution references by @emmanuel-ferdman in #246
New Contributors
- @zyfxgo made their first contribution in #234
- @DerekTond made their first contribution in #240
- @kydance made their first contribution in #245
- @emmanuel-ferdman made their first contribution in #246
Full Changelog: v2.3.2...v2.3.3
v1.4.4
Full Changelog: v1.4.4...v1.4.4
v2.3.2
What's Changed
- feat(slice): add UniqueByField.
- feat(maputil): add GetOrSet.
- perf(validator): check Ipv4、Ipv6 by more graceful method by @cannian1 in #220
- perf(slice): Concat() make a clearer panic description, like standard library by @cannian1 in #223
- 🐛 Fixing bug. about pointer package function, #227 #228 by @aide-cloud in #230
New Contributors
- @aide-cloud made their first contribution in #230
Full Changelog: v2.3.1...v2.3.2
v2.3.1
What's Changed
- Slice: break by @donutloop in #200
- Slice: padding by @donutloop in #201
- refactor(set): pop method randomly removes an element and return by @cannian1 in #202
- add Concat method by @cannian1 in #204
- feat(maputil): add ToSortedSlicesDefault method and ToSortedSlicesWithComparator method by @cannian1 in #206
- fix(netutil): Add proxy IP to send request by @Joker-desire in #210
- refactor(slice): optimize function by @cannian1 in #211
- refactor slice.Unique() by @coder-liyang in #215
- fix(maputil): json tag omitempty convert error by @ch3nnn in #218
New Contributors
- @Joker-desire made their first contribution in #210
- @coder-liyang made their first contribution in #215
- @ch3nnn made their first contribution in #218
Full Changelog: v2.3.0...v2.3.1
v2.3.0
Feature:
- convertor package: add
ToStdBase64
,ToUrlBase64
,ToRawStdBase64
,ToRawUrlBase64
functions. - datastructure package: add
Optional
datastructure, addReset
and refact itertor logic. addFilterByValue
for HashMap. - function package: add predicate function logic (Or, And, Nor...), add
AcceptIf
function. - fileutil package: add
CopyDir
,ParallelChunkRead
functions. - mathutil package: add
CeilToFloat
,CeilToString
,FloorToFloat
,FloorToString
functions. - strutil package: add
SubInBetween
,HammingDistance
functions. - slice package: add
SetToDefaultIf
functions.
Fix:
- maputil package: fix bug of MapTo(issue #169).
- strutil package: fix bug of After and Before function(issue #168).
- random package: fix MAXIMUM_CAPACITY bug (issue #166)
Break Change:
- retry package: Add retry backoff policy.
- datastructure pacakge: rename constructor of Set (NewSet->New, NewSetFromSlice->FromSlice),add
ToSlice
function for Set. - mathutil package: refact RoundToFloat, TruncRound, TruncRound.
Thanks @donutloop, @cannian1 , @coloraven to contribute high quality code!
v1.4.3
Feature:
- convertor package: add
MapToStruct
,ToStdBase64
,ToUrlBase64
,ToRawStdBase64
,ToRawUrlBase64
functions. - fileutil package: add
WriteMapsToCsv
,CopyDir
,ChunkRead
,ParallelChunkRead
functions. - mathutil package: add
CeilToFloat
,CeilToString
,FloorToFloat
,FloorToString
functions - strutil package: add
SubInBetween
,HammingDistance
functions.
Fix:
- strutil package: fix bug of After and Before function(issue #168).
v2.2.9
Feature:
- fileutil package: add WriteMapsToCsv function. Support delimiter param in ReadCsvFile and WriteCsvFile.
- slice package: add DeleteAt and add DeleteRange function.
Fix:
- math package: fix bug of Cos function.
- structs package: fix bug of ToMap function.
Refactor:
- random package: improve the performance of random function.
v2.2.8
Feature:
- random package: add RandFloat, RandFloats, RandSymbolChar.
- netutil package: http sendRequest support context param.
- slice package: add Random function to get a random item from slice.
Fix:
- validator package: fix IsChineseIdNum bug.
- datetime package: fix IsLeapYear bug.
v2.2.7
Feature:
- cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
- fileutil package: add ReadFile from path or url.
- strutil package: add IsNotBlank.
- datastructure package: ArrayQueue support auto scale.
Fix:
- fileutil package: fix CurrentPath to support windows and linux.
v1.4.2
Feature:
- cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
- fileutil package: add ReadFile from path or url.
- validator package: add IsBin, IsHex, IsBase64URL, IsJWT, IsVisa, IsMasterCard, IsAmericanExpress, IsUnionPay, IsChinaUnionPay.