XmlUtil.encodeencodes'andXmlUtil.decodedecodes'
isWhitespace()added.StringUtildeprecated. String utilites no longer grouped underStringUtil.
- Removed:
gzip,ungzip,StreamTarget, andStreamProvider
- Deprecated:
gzip,ungzip,StreamTarget, andStreamProvider
defer()won't exceed the minimal maximal allowed time in a sequence of invocation.
- Migrate to Dart 3.7
NullNodeValidatorandNullNodeValidatorBuilderremoved
Browser.versioninterpret "version/16.3" as16.3instead of16.03Browser.parseVersionsupports the twoDigits version.
ReplaceAlladded
Pair.from()andTrio.from()added
convertListNSaccepts a null list.
convertListandconvertListNSadded.
isHttpStatusOKaccepts null.
getMimeTypeaddedgetContentTypesupportsheaderBytesand path- Also detect more mime types
- The constructors of HttpRequestWrapper, HttpResponseWrapper, HttpHeadersWrapper... accept
nullasorigin.
- Merged changes of 4.6 into 5.0
encodeNSanddecodeNSintroduced. They're null-safety version ofencodeanddecode
defer()replaces the key, so the invocation oftaskwill be the last key.
- BREAK CHANGE:
configureDefers()'sexecutorargument's signature is changed. - BREAK CHANGE:
defer'scategoryKeyis renamed tocategory
configureDefers()supportsexecutableto slow down if the system is busy.- BREAK CHANGE:
nameis removed fromBrowser - BREAK CHANGE:
onStatusCodeis removed fromajax
readAsJson,readAsStringandHttpUtil.decodePostedParameterssupportmaxLength- BREAK:
HttpUtil.decodePostedParametersanddecodeQueryuse named parameters.
InvokeUtil.invokeSafelyadded.MapUtil.parse'sdefaultValueis an empty string.- Rename
LIST_MIRRORand other mirrored types as static members ofMirror
StreamUtil.firstadded.
PairandTrioadded.
- Migrate to Dart 2.12 (null safety)
- Clean up deprecated methods:
Browser.edge,Browser.nameand theonStatusCodeargument of Ajax utilities.
InvokeUtil.invokeSafelyWithadded.
InvokeUtil.invokeSafelyadded.StreamUtil.firstadded.PairandTrioadded.
Browser.legacyEdgeandBrowser.newEdgeare addded, andBrowser.nameandBrowser.edgeare deprecated.- Also, we also consider
Browser.newEdgeandBrowser.legacyEdgeas a variant of Chrome, soBrowser.chromeis also true in this case.
Browser.linuxandBrowser.windowsadded
ajax/head/post: TheonResponseargument is supported, and theonStatusCodeargument deprecated.
- The
maxBusysetting was introduced toconfigureDefers. - The following
defer()will wait for the executing one to complete.
- Extension to support the comparators for
DateTime, such as<,>, and-.
- Fix #6 The method 'HttpHeadersWrapper.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'. [Dart 2.8]
- Limit Dart SDK version for Dart 2.8 version breaking change.
- add links to github repo in pubspec.yaml.
- Fix #5
defer()'staskcallback takes the key as the argument. It helps to reuse the same closure for different keys.
cancelDeferred()added.
- Upgrade to Dart 2.5 or later
- Prepare for upcoming breaking changes to
HttpRequestin the Dart SDK.
XmlUtil.encode()supports theentityparameter to escape XML entities.
ajax()added to simplify HTTP request at server side or flutter.
- The signature of flushDefers() was changed. Use
repeatLater: Duration.zeroinstead ofrepeat: true.
Browser.dartnot supported.
- Dart 2 required
- The signature of flushDefers() was changed.
- flushDefers() introduced to flush all deferred tasks.
- Browser.version considers, say,
12.1as a double,12.01. Thus,12.10is larger than12.1.
- NullTreeSanitizer is removed. Please use NodeTreeSanitizer.trusted instead which was introduced in Dart 1.12.
- NullTreeSanitizer, NullNodeValidator, setUncheckedInnerHtml and createUncheckedHtml are added.
- MapWrapper is introduced to simplify the extension of a map instance.
- XmlUtil.encode() supports the space argument to preserve the right space also able to break lines
- StringUtil's toHexString, addCharCodes, encodeId, filterIn and filterOut have been removed.
- MapUtil.onDemand has been renamed to MapUtil.auto
- The html library has been removed.
- addContentType() is introduced to add extra content types that the mime package might not support yet.
- TreeLink is removed.
- TreeLink is deprecated and will be removed soon.
- AbstractBufferedResponse is added.
- XmlUtil.encode() changed: multiline renamed to multiLine, and maxlength not supported.
November 20, 2013
- EMPTY_SET is added.
- contentTypes and httpStatusMessages are added.
- ObjectUtil.injectAsync() is removed since Dart removes asynchronous Mirrors API.
- encodeString and decodeString are removed. Please use dart:convert directly.
- IOUtil is removed and replace with convert.dart.
- defer() in async.dart was introduced to run a costly operation smartly.
- gzip and gzipString were introduced.
- BufferedResponse renamed to StringBufferedResponse, while BufferedResponse reserved for bytes
- IOUtil.decode and IOUtil.encode became public methods: decodeString and encodeString.
- The js package was removed (part of Rikulo Gap).
- MapUtil.copy was introduced.
- The signature CssUtil.copy has been changed. To be consistent with others, the first argument is now the source.
- Browser.size was removed. Use DomUtil.windowSize or window.innerWidth/innerHeight instead.
- ClassUtil and ObjectUtil are both synchronous (no Future required)
- ClassUtil: renamed invokeObjectMirror to invokeByMirror; newInstanceByClassMirror to newInstanceByMirror
- HttpUtil.decodePostedParameter was introduced to decode the parameters of a POST requests.
- Css was renamed to CssUtil
- DomAgent was removed and replaced with DomUtil, which is a collection of static utilities.
- encodeString and decodeString are put into IOUtil, and renamed to encode and decode
- IOUtil.readAsString and readAsJson are added.
- StreamWrapper is added
- HttpRequestWrapper and HttpResponseWrapper are upgraded to new Dart API
- ObjectUtil is added to inject values into the given object
- ClassUtil.coerce is added to coerce types
- HttpHeadersWrapper is added.
- Upgrade to new Dart SDK.
- StreamProvider and CapturableStreamProvider are added.
Features
- StringUtil, MapUtil and many others are added.
- HttpRequestWrapper and HttpRespnseWrapper are added.