isTrueMinimumNumberOfTimes
: use any type (fix build)
objMergeNewKey
: Added options to customize behavior for arrays
- Fix import crypto module
- Fix import of type declaration files
- Fix critical import issue
NOTE: This version is broken. Please use 1.6.1
or later.
- BREAKING CHANGES: The
qsu
package no longer uses classes, so if you want to import the entire module at once, you must use something likeimport * as _ from 'qsu'
. (_
->* as _
) - BREAKING CHANGES: The
objectTo1d
method have been renamed toobjTo1d
- Separate files for each module purpose. Improved tree-shaking.
- BREAKING CHANGES: The
md5
,sha1
, andsha256
methods have been renamed tomd5Hash
,sha1Hash
, andsha256Hash
. objMergeNewKey
: AddobjMergeNewKey
method
isObject
: use more accurate detect logic
safeJSONParse
: AddsafeJSONParse
methodsafeParseInt
: AddsafeParseInt
method
- BREAKING CHANGES: Removed the
msToTime
andsecToTime
methods, which are unstable and have been replaced with theduration
method to provide a more stable utility. duration
: Addduration
method
objectTo1d
: AddobjectTo1d
method- Strictly check object types on some methods
trim
: handle error when value isnull
- BREAKING CHANGES: The
trim
, Now there is no second argument, and the default behavior is to remove leading and trailing spaces, and change spaces in more than two letters to spaces in the sentence - BREAKING CHANGES: The
getPlatform
method has been deleted
numberFormat
: allow string type parameterisTrueMinimumNumberOfTimes
: AddisTrueMinimumNumberOfTimes
method
objDeleteKeyByValue
: AddobjDeleteKeyByValue
methodobjUpdate
: AddobjUpdate
methodarrGroupByMaxCount
: AddarrGroupByMaxCount
method
objFindItemRecursiveByKey
: AddobjFindItemRecursiveByKey
methodurlJoin
: AddurlJoin
methodobjToArray
: AddobjToArray
method
strToNumberHash
: AddstrToNumberHash
methodobjToQueryString
: AddobjToQueryString
methodobjToPrettyStr
: AddobjToPrettyStr
method
encrypt
,decrypt
: Add toBase64 params for result string encodingcreateDateListFromRange
: Use regex instead of string checkgetPlatform
: Android is not linux os (This method has now been removed in version 1.3.6)
objectId
: AddobjectId
methodsortByObjectKey
: AddsortByObjectKey
methodsortNumeric
: AddsortNumeric
method- Documentation improvements
truncateExpect
: do not add a closing character to the last character for sentences without a closing character
replaceBetween
: AddreplaceBetween
method
capitalizeEverySentence
: AddcapitalizeEverySentence
methodarrUnique
: Use fast algorithm for 2d array uniquedebounce
: Adddebounce
method
BREAKING CHANGES: The isBotAgent
, license
methods were separated from qsu
to the qsu-web
package. These methods are no longer available after version 1.2.0.
- Explore the
qsu-web
package: https://github.com/jooy2/qsu-web - Also, I've split the documentation page into the following sites: https://qsu.cdget.com
strToAscii
: AddstrToAscii
methodtruncateExpect
: AddtruncateExpect
method
- NodeJS 12 version deprecation
removeSpecialChar
: UsingexceptionCharacters
instead ofwithoutSpace
isValidDate
: Only theyyyy-mm-dd
format can be verifieddateToYYYYMMDD
: AdddateToYYYYMMDD
methodcreateDateListFromRange
: AddcreateDateListFromRange
methodarrCount
: AddarrCount
method
isEmail
: AddisEmail
methodsub
: Addsub
methoddiv
: Adddiv
method
arrTo1dArray
: AddarrTo1dArray
methodisObject
: AddisObject
methodarrRepeat
: AddarrRepeat
methodisValidDate
: RenameisRealDate
toisValidDate
funcTimes
: AddfuncTimes
methodgetPlatform
: AddgetPlatform
method (This method has now been removed in version 1.3.6)sum
,mul
,split
: Fix type errorarrUnique
,capitalizeEachWords
,strBlindRandom
: Fix correct use static method- Support named import
- Change test script to TypeScript
trim
: Add new trim methodfileSize
: When byte is null, returns 0 bytesstrCount
: Use indexOf instead of regular expression to use better performancestrNumberOf
: Rename method name to strCount- Add prettier and reformat all codes
- Change require nodejs version to >= 12
- Remove unused ts-node package
- Upgrade package dependencies
- Upgrade package dependencies
- Reduced bundle size due to minify executable code
isBotAgent
: Remove duplicate string
str
: Handling of null str values
- Add GitHub workflows
truncate
: Return empty string when str is nullfileName
: Resolves windows path regardless of system environment
- Add
CHANGELOG.md
to.npmignore
isBotAgent
: Addchrome-lighthouse
in bot listssplit
: Fix incorrect return typeisEqual
: Add new isEqual methodisEqualStrict
: Add new isEqualStrict method- Import only the methods needed in the path and crypto module
contains
: When the length of the str parameter value of string type is 0, no error is thrown and false is returned
BREAKING CHANGES: convertDate
is no longer supported due to the removal of moment
as a dependent module.
The today
method has changed its usage. We no longer support custom date formats.
split
: Add new split methodtoday
: Remove dependent modules, change parameters to use pure codeconvertDate
: Remove methodencrypt
,decrypt
: Add basic validation check (more fix)
encrypt
,decrypt
: Add basic validation check
encrypt
decrypt
: Add basic validation checkstrBlindRandom
: Override the deprecated substr method
- Minimize bundle size and clean up code
- First version release
- This is for the Alpha release and is not recommended for use