-
Optimize
toFlatListOfStrings
. -
Added
trimListOfStrings
. -
sdk: '>=3.4.0 <4.0.0'
-
lints: ^4.0.0
-
test: ^1.25.14
-
dependency_validator: ^4.1.2
-
coverage: ^1.11.1
MimeType
:- Added
isYAML
,isFont
,isPDF
,isDart
,isOctetStream
, - Added
isZip
,isGZip
,isBZip2
,isXZ
,isCompressed
. - Added
isTar
,isTarGZip
,isTarBZip2
,isTarXZ
,isTarCompressed
.
-
MimeType
:- Added
applicationOctetStream
andbytes
.
- Added
-
test: ^1.25.8
-
coverage: ^1.9.0
-
sdk: '>=3.3.0 <4.0.0'
-
intl: ^0.19.0
-
lints: ^3.0.0
-
test: ^1.25.2
-
dependency_validator: ^3.2.3
-
collection: ^1.18.0
-
coverage: ^1.7.2
-
MimeType: fix charset for
text/html
type. -
sdk: '>=2.18.0 <4.0.0'
-
intl: ^0.18.1
-
resource_portable: ^3.1.0
MimeType
:parse
: optimize and update recognized types.byExtension
: add more extensions.
- Added
getCharsetEncoding
.
EventStream
:listen
: new parameteroverwriteSingletonSubscription
.cancelSingletonSubscription
: now ensures that the previous subscription is removed from internal handler.
- coverage: ^1.6.3
- Code adjustments for
lints: ^2.0.1
. - intl: ^0.18.0
- resource_portable: ^3.0.1
- lints: ^2.0.1
- test: ^1.22.1
DataURLBase64
:- Added constructor
DataURLBase64.from
. - Improved Null Safety code.
- Added constructor
- Fix typo.
- test: ^1.17.12
- dependency_validator: ^3.2.2
- collection: ^1.17.0
- coverage: ^1.6.1
parseBool
:- Improve possible valid values.
- Migrate to
lints
:- NOTE: some constants were renamed to lowercase camel case.
- Improved GitHub CI.
- Added browser tests.
- lints: ^1.0.1
- coverage: ^1.0.4
- Fixed
ResourceContent
load with errors. - Test coverage.
- Added FOSSA Status.
- Added
Math.clamp
. - Fixed
formatDecimal
for scientific notation.
- Added
UniqueCaller
andparseIntList
. - Null safety migration adjustments.
- Null safety migration adjustments.
collections
: improve Null Safety usage.
- Null safety migration adjustments.
- Null safety migration adjustments.
- Null safety migration adjustments.
- Dart 2.12.0:
- Sound null safety compatibility.
- Update CI dart commands.
- sdk: '>=2.12.0 <3.0.0'
- intl: ^0.17.0
- resource_portable: ^3.0.0
- collection: ^1.15.0
- pedantic: ^1.11.0
- test: ^1.16.5
- Optimize:
parseInt
,parseDouble
andparseNum
. - Fix:
listNotMatchesAll
andlistMatchesAny
when leading with lists withnull
elements. - Dart 2.12.0+ compliant:
dartfmt
anddartanalyzer
.
TreeReferenceMap
: ensure thatroot
is not null.EventStream
: AddedlistenOneShot
.
TreeReferenceMap
:- fix
getParentKey
.
- fix
- Added
TreeReferenceMap
: an alternative to Weak References (nonexistent in Dart).
MimeType.byExtension
: Added parameterdefaultAsApplication
.
MimeType
: AddedhtmlTag
andisAudio
.- Added
unquoteString
.
- Added
ObjectCache
. - Added
Dimension
. - Added
ContextualResource
andContextualResourceResolver
:- Resolves a resource based into a context, like screen dimension.
- Added:
parseFromInlineProperties
anddateFormat_YYYY_MM
. EventStream
:- Added
eventValidator
.
- Added
Math
:minMax
,maxInList
andminInList
: added optionalcomparator
parameter.
MimeType
: AddedisCharsetUTF16
,isText
,isXML
,isXHTML
,isFormURLEncoded
,isStringType
.dateFormat_YY*
: added optional parameterdelimiter
.InteractionCompleter
: Added fieldtriggerDelayLimit
.Math
:- Added collection methods:
subtract
,multiply
anddivide
.
- Added collection methods:
- Improve API Documentation.
- Added
resolveURL
, similar toresolveUri
. - Added
replaceStringMarks
. buildStringPattern
usingreplaceStringMarks
and now returns empty string for null parameters.- Added
EventStreamDelegator
, to point to instances ofEventStream
not instantiated yet. - Added
ListenerWrapper
, to handleStreamSubscription
related to a listener and useful to create one shot listeners.
- New
AsyncValue
: to handle values that comes fromFuture
. - Added
isEncodedJSON
,isEncodedJSONList
andisEncodedJSONMap
: to check if aString
is an encoded JSON. - ADded
isDigit
,isAlphaNumeric
,isDigitString
,isAlphaNumericString
. - Added
listMatchesAny
,isListValuesIdentical
,listContainsAll
,ensureNotEmptyString
,deepCatchesValues
. MimeType.fileExtension
: support forsvg
,xhtml
,mpeg
,mp3
,ico
.- Changed method signature:
getUriRootURL
,getUriBaseHostAndPort
,resolveUri
.
- Added:
isEmptyString
,isNotEmptyString
,isListEntriesAllOfType
. - Added
deepCopyMap
. deepCopy
: added parametercopier
.NNField
: Addedresolver
.MimeType
: added SVG support.InteractionCompleter
:interact
: Added parametersinteractionParameters
andignoreConsecutiveEqualsParameters
.- Added
dispose
.
encodeJSON
: Added parametertoEncodable
.- Added:
toEncodableJSON
. parseInt
,parseDouble
andparseNum
now returns default value (def
) in case of parsing error.- isDouble now can parse
.00
pattern. - Fix:
dataSizeFormat
.
MimeType
: Added new types.- Added constructor
MimeType.byExtension
. MimeType
: Fixed parsing ofgif
.EventStream
: AddedcancelAllSingletonSubscriptions
,cancelSingletonSubscription
,getSingletonSubscription
.- Added
listenStreamWithInteractionCompleter
. - pedantic: ^1.9.2
removeUriQueryString
: avoid blank fragment in the URL.
- Added
isPositiveNumber
,isNegativeNumber
. - Added
MimeType.APPLICATION_ZIP
. - Added
maxInIterable
,minInIterable
. - Added
deepReplaceValues
,deepReplaceListValues
,deepReplaceMapValues
. - Added
parseComparable
,removeEmptyEntries
,sortMapEntries
,sortMapEntriesByValue
,sortMapEntriesByKey
.
- Added
NNField
. - Added
clipNumber
. parseBool
: if value is a num: true = v > 0- More tests.
- Fix typo.
MimeType
: Addedcharset
.- Added:
parseJSON
,isBlankString
,isBlankStringInRange
,isEqualsSet
,isEqualsIterable
. - Added:
asTreeOfKeyString
,parseMapEntry
,groupIterableBy
,sumIterable
,averageIterable
. - Added:
parseJSON
,encodeJSON
. - Removed
splitRegExp
.split
now acceptsPattern
(String
andRegExp
). - Optimized
isBlankCodeUnit
.
- Added string helpers:
isBlankChar
,isBlankCodeUnit
,hasBlankChar
,hasBlankCharInRange
. - IO:
catFile
,catFileBytes
,saveFile
,saveFileBytes
. InteractionCompleter
:cancel
- `MimeType``: equals and hashcode.
- Added:
isEqualsList
,isEqualsMap
.
- Added:
isInUnixEpochRange
- New event handler:
InteractionCompleter
.
- dartfmt
- test_coverage: ^0.4.2
- Change
isEmptyValue
to isisEmptyObject
. - Added
isNotEmptyObject
.
- Fix
MimeType.parse
when parametermimeType
is empty anddefaultMimeType
is null. - Fix
DataURLBase64.asDataURLString
- dartfmt.
- fix buildStringPattern() extraParameters issue.
- Math.mean() returns 0 on empty lists.
- dartfmt.
- Add badges to README.md
- Math.sum()
- More API Documentation.
- dartfmt.
- Added API Documentation.
- dataSizeFormat() now accepts decimalBase and binaryBase parameters.
- Pair.swapAB().
- Scale and ScaleNum.
- getPathWithoutFileName(...).
- MimeType: added alias and file extension for gzip.
- (FIX) LoadController: _idCounter to private.
- (FIX) EventStream.listenAsFuture(): ensure that completer is called only once.
- isIPAddress()
- parseDateTime() accepts
int
: parsing withDateTime.fromMillisecondsSinceEpoch(v)
. - parseDuration()
- enum Unit: getUnitByIndex(), getUnitByName(), parseUnit(), getUnitAsMilliseconds(), getMillisecondsAsUnit()
- getDateTimeWeekDayByName(), getDateTimeStartOf(), getDateTimeEndOf()
- date.dart:
- parseDateTime(...), parseDateTimeFromInlineList(...)
- formatTimeMillis() change form to be ISO compliant.
- DateTimeWeekDay: getDateTimeWeekDay(), getDateTimeWeekDay_from_ISO_8601_index().
- getDateTimeDayStart(), getDateTimeDayEnd(), getDateTimeYesterday(), getDateTimeLastNDays(), getDateTimeThisWeek().
- getDateTimeLastWeek(), getDateTimeThisMonth(), getDateTimeLastMonth(), getDateTimePreviousMonth(), getDateTimeWeekStart(), getDateTimeWeekEnd().
- DateRangeType: getDateTimeRange(rangeType, ...)
- uri.dart:
- getUriBase(), getUriRoot(), getUriBaseScheme(), getUriBaseHost(), getUriBasePort(),
- getUriBaseHostAndPort(suppressPort80), getUriBaseURL(), buildUri(), resolveUri(), removeUriFragment().
- removeUriQueryString(), isUriBaseLocalhost(), isUriBaseIP(), isIPv4Address(), getPathFileName().
- utils.dart: toCamelCase()
- math.dart:
- events.dart: EventStream.isUsed: non used EventStream won't broadcast events (add() and addError() suppressed for optimization).
- data.dart:
- MimeType
- Base64: encodeArrayBuffer(), decodeAsArrayBuffer()
- DataURLBase64: parsePayloadAsBase64(), parsePayloadAsArrayBuffer(), parsePayloadAsString(), DataURLBase64.mimeType.
- collections.dart:
- Pair
- MapProperties: getPropertyAsDateTime(), findPropertyAsDateTime(), getPropertyAsDateTimeList(), findPropertyAsDateTimeList(), getPropertyAsStringMap(), findPropertyAsStringMap().
- sortMapEntries()
- toFlatListOfStrings()
- isListOfNum(), isListOfType(...), isListOfTypes<A,V>(...), listContainsType(...)
- parseListOf(...), parseListOfList(...)
- isMapOfStringKeysAndListValues(), isMapOfStringKeysAndNumValues().
- isEmptyValue(val).
- loader.dart: LoadController
- MapDelegate ; MapProperties
- isEmail()
- ResourceContent.isLoadedWithError
- deepCopy()
- buildStringPattern(), isHttpURL(), getPathExtension(), isAllEquals()
- findKeyPathValue(), parseFromInlineMap()
- ResourceContent, ResourceContentCache (moved from intl_messages)
- fix default value of parseNum().
- remove swiss_knife_browser.dart: moved to package 'dom_tools'.
- resource_portable: ^2.1.7
- Accepts dynamic value as input: parseStringFromInlineList, parseIntsFromInlineList, parseNumsFromInlineList, parseDoublesFromInlineList, parseBoolsFromInlineList
- New: isInt, isIntList, isNum, isNumList, isDouble, isDoubleList, isBool, isBoolList
- regExpReplaceAll(): allow ${1} marks (previously was only $1).
- fix regExpReplaceAll() when group match is optional.
- regExpDialect()
- isEqualsAsString()
- swiss_knife_vm.dart: catFile(), saveFile()
- regExpHasMatch
- regExpReplaceAll
- Fix return of parseIntsFromInlineList().
- Added default value for parseXXFromInlineList().
- deepHashCode
- splitRegExp().
- Tests: split() and splitRegExp() (limits: Java compliant).
- isEqualsDeep() ; parseFromInlineList() ;
- parseString() ; parseStringFromInlineList() ;
- parseBool() ; parseNumsFromInlineList() ; parseIntsFromInlineList() ; parseBoolsFromInlineList() ;
- Clean code.
- More tests.
- Math.min/max/ceil/floor/round/mean/standardDeviation
- parseNum(), parseInt(), parseDouble(), parsePercent(), getEntryIgnoreCase(), putIgnoreCase().
- dataSizeFormat()
- Base64 and DataURLBase64.
- Organize code in different dart files.
- Code analysis.
- Upgrade dependencies:
- intl: ^0.16.1
- remove "enum_to_string".
- Remove locales to package intl_messages.
- Remove rest_client to package mercury_client.
- Add LocalesManager.onDefineLocale and LocalesManager.onDefineLocaleGlobal
- Small fixes.
- Added Authorization and Credential/Token handling to REST Client.
- Update to Dart 2.0.1 and small fixes. Now able to import only utils (swiss_knife_utils.dart)
- Fix swiss_knife_browser.dart exports.
- Added events example.
- Initial version, created by Stagehand