Uri.queryParametersAllto handle multiple query parameters with the same name.
Base64Decoder.convertnow takes optional
Uriclass added support for data URIs
data:URIs with a new
UriDataclass for the return type.
secureconstructor returning a cryptographically secure random generator which reads from the entropy source provided by the embedder for every generated random value.
Platformadded a static
Platform.operatingSystemmay now return
Platformadded a static
compressionon the methods
WebSocketTransformerconstructor can be used to modify or disable compression using the new
packageRootinstance getters to
Better line splitting in a variety of cases.
Other optimizations and bug fixes.
Breaking: Pub now eagerly emits an error when a pubspec's “name” field is not a valid Dart identifier. Since packages with non-identifier names were never allowed to be published, and some of them already caused crashes when being written to a
.packages file, this is unlikely to break many people in practice.
Breaking: Support for
barback versions prior to 0.15.0 (released July 2014) has been dropped. Pub will no longer install these older barback versions.
pub serve now GZIPs the assets it serves to make load times more similar to real-world use-cases.
pub deps now supports a
--no-dev flag, which causes it to emit the dependency tree as it would be if no
dev_dependencies were in use. This makes it easier to see your package's dependency footprint as your users will experience it.
pub global run now detects when a global executable's SDK constraint is no longer met and errors out, rather than trying to run the executable anyway.
Pub commands that check whether the lockfile is up-to-date (
pub serve, and
pub build) now do additional verification. They ensure that any path dependencies' pubspecs haven't been changed, and they ensure that the current SDK version is compatible with all dependencies.
Fixed a crashing bug when using
pub global run on a global script that didn't exist.
Fixed a crashing bug when a pubspec contains a dependency without a source declared.
Patch release, resolves one issue:
Patch release, resolves three issues:
VM type propagation fix: Resolves a potential crash in the Dart VM (SDK commit [dff13be] (https://github.com/dart-lang/sdk/commit/dff13bef8de104d33b04820136da2d80f3c835d7))
dart2js crash fix: Resolves a crash in pkg/js and dart2js (SDK issue  (https://github.com/dart-lang/sdk/issues/24974))
Pub get crash on ARM: Fixes a crash triggered when running ‘pub get’ on ARM processors such as those on a Raspberry Pi (SDK issue  (https://github.com/dart-lang/sdk/issues/24855))
StreamControlleradded getters for
onResumewith the corresponding new
typedef void ControllerCallback().
StreamControlleradded a getter for
onCancelwith the corresponding new
StreamTransformerinstances created with
handleErrorcallback now forward stack traces along with errors to the resulting streams.
const Base64Codec BASE64.
Pattern.allMatches) is now lazy, as all
allMatchesimplementations are intended to be.
Resourceis deprecated, and will be removed in a future release.
Timelineclass for interacting with Observatory's timeline feature.
registerExtensionwhich enable developers to provide their own VM service protocol extensions.
num. Dartium is now using JS interop for most operations. JS does not distinguish between numeric types, and will return a number as an int if it fits in an int. This will mostly cause an error if you assign to something typed
doublein checked mode. You may need to insert a
toDouble()call or accept
num. Examples of APIs that are affected include
Breaking: Secure networking has changed, replacing the NSS library with the BoringSSL library.
HttpServer now all use a
SecurityContext object which contains the certificates and keys used for secure TLS (SSL) networking.
This is a breaking change for server applications and for some client applications. Certificates and keys are loaded into the
SecurityContext from PEM files, instead of from an NSS certificate database. Information about how to change applications that use secure networking is at https://www.dartlang.org/server/tls-ssl.html
HttpClient no longer sends URI fragments in the request. This is not allowed by the HTTP protocol. The
HttpServer still gracefully receives fragments, but discards them before delivering the request.
To allow connections to be accepted on the same port across different isolates, set the
shared argument to
true when creating server socket and
RawServerSocketReferenceclasses have been removed.
RawServerSockethave been removed.
dartdocgen no longer ship in the SDK. The
docgen sources have been removed from the repository.
This is the last release to ship the VM's “legacy debug protocol”. We intend to remove the legacy debug protocol in Dart VM 1.14.
The VM's Service Protocol has been updated to version 3.0 to take care of a number of issues uncovered by the first few non-observatory clients. This is a potentially breaking change for clients.
Dartium has been substantially changed. Rather than using C++ calls into Chromium internals for DOM operations it now uses JS interop. The DOM objects in
Pub will now respect
.gitignore when validating a package before it's published. For example, if a
LICENSE file exists but is ignored, that is now an error.
If the package is in a subdirectory of a Git repository and the entire subdirectory is ignored with
.gitignore, pub will act as though nothing was ignored instead of uploading an empty package.
The heuristics for determining when
pub get needs to be run before various commands have been improved. There should no longer be false positives when non-dependency sections of the pubspec have been modified.
??: if null operator.
expr1 ?? expr2evaluates to
??=: null-aware assignment.
v ??= exprcauses
vto be assigned
x?.p: null-aware access.
null, otherwise evaluates to
x?.m(): null-aware method invocation.
StreamControlleradded setters for the
splitstatic method returning an
Uriclass now perform path normalization when a URI is created. This removes most
.sequences from the URI path. Purely relative paths (no scheme or authority) are allowed to retain some leading “dot” segments. Also added
logfunction to transmit logging events to Observatory.
const trustedfield. It can be used instead of defining a
NullTreeSanitizerclass when calling
setInnerHtmlor other methods that create DOM from text. It is also more efficient, skipping the creation of a
InstanceMirror.delegatemoved up to
dartdoc is now the default tool to generate static HTML for API docs. Learn more.
dartdocgen have been deprecated. Currently plan is to remove them in 1.13.
Over 50 bugs fixed.
Optimized line splitter is much faster and produces better output on complex code.
New feature to display output from logging.
Heap snapshot analysis works for 64-bit VMs.
Improved ability to inspect typed data, regex and compiled code.
Ability to break on all or uncaught exceptions from Observatory's debugger.
Ability to set closure-specific breakpoints.
‘anext’ - step past await/yield.
Preserve when a variable has been expanded/unexpanded in the debugger.
Keep focus on debugger input box whenever possible.
Echo stdout/stderr in the Observatory debugger. Standalone-only so far.
Minor fixes to service protocol documentation.
Breaking: various commands that previously ran
pub get implicitly no longer do so. Instead, they merely check to make sure the “.packages” file is newer than the pubspec and the lock file, and fail if it's not.
Added support for
pub serve now collapses multiple GET requests into a single line of output. For full output, use
pub deps has improved formatting for circular dependencies on the entrypoint package.
pub run and
pub global run
Breaking: to match the behavior of the Dart VM, executables no longer run in checked mode by default. A
--checked flag has been added to run them in checked mode manually.
Faster start time for executables that don't import transformed code.
Binstubs for globally-activated executables are now written in the system encoding, rather than always in
UTF-8. To update existing executables, run
pub cache repair.
pub get and
Pub will now generate a “.packages” file in addition to the “packages” directory when running
pub get or similar operations, per the package spec proposal. Pub now has a
--no-package-symlinks flag that will stop “packages” directories from being generated at all.
An issue where HTTP requests were sometimes made even though
--offline was passed has been fixed.
A bug with
--offline that caused an unhelpful error message has been fixed.
Pub will no longer time out when a package takes a long time to download.
Pub will emit a non-zero exit code when it finds a violation while publishing.
.gitignore files will be respected even if the package isn't at the top level of the Git repository.
A crashing bug involving transformers that only apply to non-public code has been fixed.
A deadlock caused by declaring transformer followed by a lazy transformer (such as the built-in
$dart2js transformer) has been fixed.
A stack overflow caused by a transformer being run multiple times on the package that defines it has been fixed.
A transformer that tries to read a non-existent asset in another package will now be re-run if that asset is later created.
BREAKING The service protocol now sends JSON-RPC 2.0-compatible server-to-client events. To reflect this, the service protocol version is now 2.0.
The service protocol now includes a
"jsonrpc" property in its responses, as opposed to
The service protocol now properly handles requests with non-string ids. Numeric ids are no longer converted to strings, and null ids now don't produce a response.
Some RPCs that didn't include a
"jsonrpc" property in their responses now include one.
WebSocket.close()would crash if called after
pubexecutable was run, even if a
DART_SDKenvironment variable is set.
Iterablecan now be extended directly. An alternative to extending
ConcurrentModificationErroras eagerly in release mode. In checked mode, the modification check is still as eager as possible. r45198
dart:developer - NEW
treeSanitizerparameters, and the inputs are consistently sanitized. r45818 announcement
Isolate.killis now a named parameter named
addOnExitListenernow have a named parameter
Isolate.spawnUriadded a named argument
dart:profiler - DEPRECATED
dart2js --output-type=dart) utility as part of dart2js
CssClassSetmethod 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
ProcessResultnow exposes a constructor.
Isolate.spawnUrinow 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