Skip to content

Releases: gmpassos/swiss_knife

v2.5.16

25 Oct 08:28
Compare
Choose a tag to compare
- New `AsyncValue`: to handle values that comes from `Future`.
- Added `isEncodedJSON`, `isEncodedJSONList` and `isEncodedJSONMap`: to check if a `String` is an encoded JSON.
- ADded `isDigit`, `isAlphaNumeric`, `isDigitString`, `isAlphaNumericString`.
- Added `listMatchesAny`, `isListValuesIdentical`, `listContainsAll`, `ensureNotEmptyString`, `deepCatchesValues`.
- `MimeType.fileExtension`: support for `svg`, `xhtml`, `mpeg`, `mp3`, `ico`.
- Changed method signature: `getUriRootURL`, `getUriBaseHostAndPort`, `resolveUri`.

v2.5.15

08 Oct 23:34
Compare
Choose a tag to compare
- Added: `isEmptyString`, `isNotEmptyString`, `isListEntriesAllOfType`.
- Added `deepCopyMap`.
- `deepCopy`: added parameter `copier`.
- `NNField`: Added `resolver`.
- `MimeType`: added SVG support.
- `InteractionCompleter`:
  - `interact`: Added parameters `interactionParameters` and `ignoreConsecutiveEqualsParameters`.
  - Added `dispose`.
- `encodeJSON`: Added parameter `toEncodable`.
- Added: `toEncodableJSON`.
- `parseInt`, `parseDouble` and `parseNum` now returns default value (`def`) in case of parsing error.
- isDouble now can parse `.00` pattern.
- Fix: `dataSizeFormat`.

v2.5.14

18 Sep 10:39
Compare
Choose a tag to compare
- `MimeType`: Added new types.
- Added constructor `MimeType.byExtension`.
- `MimeType`: Fixed parsing of `gif`.
- `EventStream`: Added `cancelAllSingletonSubscriptions`, `cancelSingletonSubscription`, `getSingletonSubscription`.
- Added `listenStreamWithInteractionCompleter`.
- pedantic: ^1.9.2

v2.5.13

04 Sep 10:59
Compare
Choose a tag to compare
- `removeUriQueryString`: avoid blank fragment in the URL.

v2.5.12

03 Sep 09:24
Compare
Choose a tag to compare
- Added `isPositiveNumber`, `isNegativeNumber`.
- Added `MimeType.APPLICATION_ZIP`.
- Added `maxInIterable`, `minInIterable`.
- Added `deepReplaceValues`, `deepReplaceListValues`, `deepReplaceMapValues`.
- Added `parseComparable`, `removeEmptyEntries`, `sortMapEntries`, `sortMapEntriesByValue`, `sortMapEntriesByKey`.

v2.5.11

17 Aug 04:59
Compare
Choose a tag to compare
- Added `NNField`.
- Added `clipNumber`.
- `parseBool`: if value is a num: true = v > 0
- More tests.

v2.5.10

16 Aug 07:16
Compare
Choose a tag to compare
- Fix typo.

v2.5.9

16 Aug 06:12
Compare
Choose a tag to compare
- `MimeType`: Added `charset`.
- Added: `parseJSON`, `isBlankString`, `isBlankStringInRange`, `isEqualsSet`, `isEqualsIterable`.
- Added: `asTreeOfKeyString`, `parseMapEntry`, `groupIterableBy`, `sumIterable`, `averageIterable`.
- Added: `parseJSON`, `encodeJSON`.
- Removed `splitRegExp`. `split` now accepts `Pattern` (`String` and `RegExp`).
- Optimized `isBlankCodeUnit`.

v2.5.8

02 Aug 07:07
Compare
Choose a tag to compare
- Added string helpers: `isBlankChar`, `isBlankCodeUnit`, `hasBlankChar`, `hasBlankCharInRange`.
- IO: `catFile`, `catFileBytes`, `saveFile`, `saveFileBytes`.
- `InteractionCompleter`: `cancel`
- `MimeType``: equals and hashcode.
- Added: `isEqualsList`, `isEqualsMap`.

v2.5.7

18 Jul 06:22
Compare
Choose a tag to compare
  • Added: isInUnixEpochRange
  • New event handler: InteractionCompleter.