unmodifiable constructor to
List - r45334
priority parameter of
Isolate.kill methods a named parameter.
response parameter to
Isolate.addOnExitListener - r45092
end positional arguments.
CssClassSet method arguments must now be ‘tokens’, i.e. non-empty strings with no white-space characters. The implementation was incorrect for class names containing spaces. The fix is to forbid spaces and provide a faster implementation. Announcement
ProcessResult now exposes a constructor.
Isolate.spawnUri now supports the Data URI scheme on the VM.
pub run foo within a package now runs the
foo executable defined by the
foo package. The previous behavior ran
bin/foo. This makes it easy to run binaries in dependencies, for instance
pub run test.
On Mac and Linux, signals sent to
pub run and forwarded to the child command.
This is a bug fix release which merges a number of commits from
Editor: Fixes accidental updating of files in the pub cache during rename refactoring - r44677
await for. See the the language tour for more details.
Enum support is fully enabled. See the language tour for more details.
The formatter is much more comprehensive and generates much more readable code. See its tool page for more details.
The analysis server is integrated into the IntelliJ plugin and the Dart editor. This allows analysis to run out-of-process, so that interaction remains smooth even for large projects.
Analysis supports more and better hints, including unused variables and unused private members.
There's a new model for shared server sockets with no need for a
A new, much faster regular expression engine.
The Isolate API now works across the VM and
For more information on any of these changes, see the corresponding documentation on the Dart API site.
Future.wait added a new named argument,
cleanUp, which is a callback that releases resources allocated by a successful
SynchronousStreamController class was added as an explicit name for the type returned when the
sync argument is passed to
new SplayTreeSet.from(Iterable) constructor was added.
Utf8Decoder.convert added optional
RangeError added new static helper functions:
int added the
String added the
Support for locking files to prevent concurrent modification was added. This includes the
File.unlockSync functions as well as the
Support for starting detached processes by passing the named
mode argument (a
Process.start. A process can be fully attached, fully detached, or detached except for its standard IO streams.
HttpServer.bindSecure added the
v6Only named argument. If this is true, only IPv6 connections will be accepted.
RawSecureServerSocket.bind added the
shared named argument. If this is true, multiple servers or sockets in the same Dart process may bind to the same address, and incoming requests will automatically be distributed between them.
Deprecation: the experimental
RawServerSocketReference classes, as well as getters that returned them, are marked as deprecated. The
shared named argument should be used instead. These will be removed in Dart 1.10.
RawSocket.connect added the
sourceAddress named argument, which specifies the local address to bind when making a connection.
Process.killPid method was added to kill a process with a given PID.
Stdout added the
nonBlocking instance property, which returns a non-blocking
IOSink that writes to standard output.
The static getter
Isolate.current was added.
removeOnErrorListener now work on the VM.
Isolates spawned via
Isolate.spawn now allow most objects, including top-level and static functions, to be sent between them.
Code generation for SIMD on ARM and ARM64 is fixed.
A possible crash on MIPS with newer GCC toolchains has been prevented.
A segfault when using
rethrow was fixed (issue 21795).
Breakpoints can be set in the Editor using file suffixes (issue 21280).
IPv6 addresses are properly handled by
dart:io, fixing a crash in pub (issue 21698).
Issues with the experimental
await syntax have been fixed.
Issues with a set of number operations in the VM have been fixed.
dart:collection always returns an
Iterable with the correct type argument.
SplayTree added the
JsonUtf8Encoder class was added.
IndexError class was added for errors caused by an index being outside its expected range.
new RangeError.index constructor was added. It forwards to
RangeError added three new properties.
invalidProperty is the value that caused the error, and
end are the minimum and maximum values that the value is allowed to assume.
new RangeError.value and
new RangeError.range added an optional
new String.fromCharCodes constructor added optional
Support was added for the Application-Layer Protocol Negotiation extension to the TLS protocol for both the client and server.
RawSecureServerSocket.bind added a
supportedProtocols named argument for protocol negotiation.
RawSecureServerSocket added a
SecureSocket added a
selectedProtocol field which contains the protocol selected during protocol negotiation.
pub now generates binstubs for packages that are globally activated so that they can be put on the user's
PATH and used as normal executables. See the
pub global activate documentation.
dart2js, deferred loading now works with multiple Dart apps on the same page.
ZoneSpecification added the
errorCallback function, which allows errors that have been programmatically added to a
Stream to be intercepted.
HttpClient.close must be called for all clients or they will keep the Dart process alive until they time out. This fixes the handling of persistent connections. Previously, the client would shut down immediately after a request.
HttpServer no longer compresses all traffic by default. The new
autoCompress property can be set to
true to re-enable compression.
Isolate.spawnUri added the optional
packageRoot argument, which controls how it resolves