duke-git/lancet
 Watch   
 Star   
 Fork   
2024-10-09 15:20:30
lancet

v2.3.3

What's Changed

New Contributors

Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.2...v2.3.3

2024-07-18 10:52:54
lancet

v2.3.2

What's Changed

New Contributors

Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.1...v2.3.2

2024-05-14 10:47:27
lancet

v2.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/duke-git/lancet/compare/v2.3.0...v2.3.1

2024-03-05 14:57:16
lancet

v2.3.0

Feature:

  1. convertor package: add ToStdBase64, ToUrlBase64, ToRawStdBase64, ToRawUrlBase64 functions.
  2. datastructure package: add Optional datastructure, add Reset and refact itertor logic. add FilterByValue for HashMap.
  3. function package: add predicate function logic (Or, And, Nor...), add AcceptIf function.
  4. fileutil package: add CopyDir, ParallelChunkRead functions.
  5. mathutil package: add CeilToFloat,CeilToString,FloorToFloat,FloorToString functions.
  6. strutil package: add SubInBetween, HammingDistance functions.
  7. slice package: add SetToDefaultIf functions.

Fix:

  1. maputil package: fix bug of MapTo(issue #169).
  2. strutil package: fix bug of After and Before function(issue #168).
  3. random package: fix MAXIMUM_CAPACITY bug (issue #166)

Break Change:

  1. retry package: Add retry backoff policy.
  2. datastructure pacakge: rename constructor of Set (NewSet->New, NewSetFromSlice->FromSlice),add ToSlice function for Set.
  3. mathutil package: refact RoundToFloat, TruncRound, TruncRound.

Thanks @donutloop, @cannian1 , @coloraven to contribute high quality code!

2024-03-05 14:53:54
lancet

v1.4.3

Feature:

  1. convertor package: add MapToStruct,ToStdBase64, ToUrlBase64, ToRawStdBase64, ToRawUrlBase64 functions.
  2. fileutil package: add WriteMapsToCsv, CopyDir, ChunkRead, ParallelChunkRead functions.
  3. mathutil package: add CeilToFloat,CeilToString,FloorToFloat,FloorToString functions
  4. strutil package: add SubInBetween, HammingDistance functions.

Fix:

  1. strutil package: fix bug of After and Before function(issue #168).
2024-02-01 10:03:26
lancet

v2.2.9

Feature:

  1. fileutil package: add WriteMapsToCsv function. Support delimiter param in ReadCsvFile and WriteCsvFile.
  2. slice package: add DeleteAt and add DeleteRange function.

Fix:

  1. math package: fix bug of Cos function.
  2. structs package: fix bug of ToMap function.

Refactor:

  1. random package: improve the performance of random function.
2023-12-11 15:04:54
lancet

v2.2.8

Feature:

  1. random package: add RandFloat, RandFloats, RandSymbolChar.
  2. netutil package: http sendRequest support context param.
  3. slice package: add Random function to get a random item from slice.

Fix:

  1. validator package: fix IsChineseIdNum bug.
  2. datetime package: fix IsLeapYear bug.
2023-10-07 11:40:38
lancet

v2.2.7

Feature:

  1. cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
  2. fileutil package: add ReadFile from path or url.
  3. strutil package: add IsNotBlank.
  4. datastructure package: ArrayQueue support auto scale.

Fix:

  1. fileutil package: fix CurrentPath to support windows and linux.
2023-10-07 11:25:36
lancet

v1.4.2

Feature:

  1. cryptor package: add GenerateRsaKeyPair, RsaEncryptOAEP, RsaDecryptOAEP.
  2. fileutil package: add ReadFile from path or url.
  3. validator package: add IsBin, IsHex, IsBase64URL, IsJWT, IsVisa, IsMasterCard, IsAmericanExpress, IsUnionPay, IsChinaUnionPay.