Commit graph

208 commits

Author SHA1 Message Date
Erik Ernst f2907070d8 Added CHANGELOG.md entry on syntax-only generic methods.
R=lrn@google.com, mit@google.com

Review URL: https://codereview.chromium.org/2532863002 .
2016-11-30 13:36:02 +01:00
Erik Ernst 2812738546 Added CHANGELOG.md entry for initializing formal access.
R=kevmoo@google.com, lrn@google.com

Review URL: https://codereview.chromium.org/2540643002 .
2016-11-30 11:47:03 +01:00
Bob Nystrom 8daf4cfb73 Get the basics of deferred libraries working.
References to loadLibrary on a library prefix are compiled to a
helper function that returns a Future that always completes
successfully.

The deferred libraries aren't actually deferred, but code that uses
loadLibrary() now doesn't barf.

BUG=#27343
R=vsm@google.com

Review URL: https://codereview.chromium.org/2477673006 .
2016-11-07 10:41:23 -08:00
Jennifer Messerly 43bcc5945e fix #27766, allow implicit casts from dynamic to composite types
R=leafp@google.com

Review URL: https://codereview.chromium.org/2477093002 .
2016-11-04 17:37:13 -07:00
Lasse R.H. Nielsen be4b4c6338 Add changes to switch cases warnings to CHANGELOG.md.
R=floitsch@google.com

Review URL: https://codereview.chromium.org/2447173005 .
2016-11-02 14:31:04 +01:00
John McCutchan 63e4f69e5e Provide an API to dart:developer to control the web server hosting the Service Protocol
- [x] Add `ServiceProtocolnfo` class to dart:developer.
- [x] Add `Service` class to dart:developer.
- [x] Add `Service.getInfo` static method to dart:developer.
- [x] Add `Service.controlWebServer` static method to dart:developer.

API:

```dart

/// Information about the service protocol.
class ServiceProtocolInfo {
  /// The major version of the protocol.
  final int majorVersion;
  /// The minor version of the protocol.
  final int minorVersion;
  /// The Uri to access the service. If the web server is not running, this
  /// will be null.
  final Uri serverUri;
}

/// Access information about the service protocol and control the web server.
class Service {
  /// Get information about the service protocol.
  static Future<ServiceProtocolInfo> getInfo();

  /// Control the web server that the service protocol is accessed through.
  static Future<ServiceProtocolInfo> controlWebServer({bool enable: false});
}
```

... and add a randomly generated authentication token path prefix that must be passed in to access the service protocol.

Old base url:

Observatory listening on http://127.0.0.1:54804/

New base url:

Observatory listening on http://127.0.0.1:54804/<token>/

For example:

Observatory listening on http://127.0.0.1:54804/PTwjm8Ii8qg=/

Many tools will need to be updated.

Fixes #23320

BUG=
R=asiva@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/2438613002 .
2016-10-31 12:32:23 -07:00
Florian Loitsch 6beb1fdd11 Change Set.difference API to accept Set<Object>.
Fixes #27573
BUG= http://dartbug.com/27573
R=lrn@google.com

Review URL: https://codereview.chromium.org/2413233002 .
2016-10-20 14:37:15 +02:00
William Hesse bb91445e7e Update CHANGELOG.md with release dates and patch releases.
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/2423973002 .
2016-10-17 14:04:33 +02:00
Lasse R.H. Nielsen ac76d3eb9f Update CHANGELOG.md for commit efb9a12811 (allow = for named parameters)
(See efb9a12811)

R=floitsch@google.com

Review URL: https://codereview.chromium.org/2419893004 .
2016-10-14 11:34:53 +02:00
William Hesse 8c4db65326 Start working on version 1.21
BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2385633002 .
2016-09-30 11:49:21 +02:00
William Hesse c20e2a0883 Update pub, making --packages-dir false by default
BUG=https://github.com/dart-lang/sdk/issues/27399
BUG=https://github.com/dart-lang/pub/issues/1450
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2374143005 .
2016-09-29 14:01:13 +02:00
Kevin Moore f7e6c02e22 Document thrown errors during function parsing
Other cleanup
Closes https://github.com/dart-lang/sdk/issues/27376

R=whesse@google.com

Review URL: https://codereview.chromium.org/2368413003 .
2016-09-28 11:35:45 -07:00
John Messerly 361cd4c61c fix #27408, reverts "ignore dynamic in inference"
this reverts 8c25a41acc

R=vsm@google.com

Review URL: https://codereview.chromium.org/2360973004 .
2016-09-23 17:01:33 -07:00
Bob Nystrom f8bca9b5bc Bump dart_style to 0.2.10.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/2365503004 .
2016-09-23 13:56:57 -07:00
John Messerly 8c25a41acc ignore dynamic when doing inference
R=leafp@google.com

Review URL: https://codereview.chromium.org/2343863004 .
2016-09-20 09:59:08 -07:00
John Messerly 865e808f15 support @virtual fields, fix #27384
R=leafp@google.com

Review URL: https://codereview.chromium.org/2352433002 .
2016-09-19 09:45:24 -07:00
John Messerly cbdfa87b88 add a changelog entry for #27151
R=leafp@google.com

Review URL: https://codereview.chromium.org/2338293003 .
2016-09-16 16:06:19 -07:00
Zachary Anderson 3360b3cef9 Update CHANGELOG for tcmalloc change
R=asiva@google.com

Review URL: https://codereview.chromium.org/2345273002 .
2016-09-16 09:30:45 -07:00
Zachary Anderson 139db22be5 Use OS-provided trusted root certs on Linux
First, the look for trusted root certificates
in standard locations on the file system
(/etc/pki/tls/certs/ca-bundle.crt followed by
/etc/ssl/certs), and only if these do not exist
will we fall back on the compiled-in trusted root
certificates. This behavior can be overridden
with the new flags --root-certs-file and
--root-certs-cache.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2346683003 .
2016-09-16 09:08:51 -07:00
John Messerly 05e945d1c0 follow up for #25578, add @checked to package:meta
R=pquitslund@google.com

Review URL: https://codereview.chromium.org/2334413002 .
2016-09-13 17:26:24 -07:00
Florian Loitsch 6255638cd0 Return futures on Stream.cancel when possible.
Deprecate returning `null`.

Also, fixes cases where transformations on a stream didn't forward the cancel future

Fixes #26777.

BUG= http://dartbug.com/26777.
R=lrn@google.com

Review URL: https://codereview.chromium.org/2202533003 .

Committed: 395e7aaa69
Reverted: 99e5328eac
Committed: 1905ddafaa
Reverted: 46a8579c1e
2016-09-05 17:41:22 +02:00
John Messerly f57ed4d894 fix #26992, inference failures are now an error
R=leafp@google.com

Review URL: https://codereview.chromium.org/2295853002 .
2016-09-01 13:38:09 -07:00
Zachary Anderson b990bc3794 Fix native extension lookup
This CL allows native extension lookup to defer to the platform's
library lookup (e.g. dlopen) when the library cannot be found next to
the importing Dart library. It also allows dart-ext: to accept an
absolute path to the native library.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2285223003 .
2016-08-30 09:31:47 -07:00
Lasse R.H. Nielsen 99ec987a09 Remove deprecated Resource class from dart:core.
BUG=
R=floitsch@google.com, mit@google.com

Review URL: https://codereview.chromium.org/2272373002 .

Committed: f61143153a
Committed: 35437dda1f
2016-08-26 11:58:04 +02:00
Lasse Nielsen 35437dda1f Remove deprecated Resource class from dart:core.
BUG=
R=floitsch@google.com, mit@google.com

Review URL: https://codereview.chromium.org/2272373002 .

Committed: f61143153a
2016-08-26 10:50:58 +02:00
Lasse Nielsen f61143153a Remove deprecated Resource class from dart:core.
BUG=
R=floitsch@google.com, mit@google.com

Review URL: https://codereview.chromium.org/2272373002 .
2016-08-26 10:31:08 +02:00
Ryan Macnak aa38062a23 Add WebSocket.addUtf8Text to allow sending pre-encoded text without a round-trip UTF-8 conversion.
Use it to implement the vm-service, where in particular we are concerned about the space overhead of the conversion leading to the process being killed on iOS.

Closes #27129

R=johnmccutchan@google.com, lrn@google.com

Review URL: https://codereview.chromium.org/2260073002 .
2016-08-24 16:15:07 -07:00
Florian Loitsch 33b7b45252 Deal with synchronous errors in Future.wait.
Synchronous errors are caught and piped into the returned future. This makes handling errors in Future.wait uniform.

Fixes #23656
BUG= http://dartbug.com/23656
R=lrn@google.com

Review URL: https://codereview.chromium.org/2252823004 .
2016-08-18 14:09:20 +02:00
Kevin Moore 10508d48b5 fixed merge issue in CHANGELOG
Review URL: https://codereview.chromium.org/2252113002 .
2016-08-17 10:54:48 -07:00
Kevin Moore c1a0a039ee Changelog tweaks
Remove not on glibc upgrade - reverted
Moved tool notes above strong mode notes - more important to more people
Remove dart:io notes – bug fixes don't meet the bar for changelog

R=mit@google.com

Review URL: https://codereview.chromium.org/2252803002 .
2016-08-17 10:48:58 -07:00
Lasse R.H. Nielsen afbbbb97cf Reapply fast-URI patch.
Review URL: https://codereview.chromium.org/2245533004 .
2016-08-17 10:54:24 +02:00
Natalie Weizenbaum 38dccc88ff Bring in the latest pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2250053004 .
2016-08-16 15:48:20 -07:00
Natalie Weizenbaum 279c5d6334 Bring in the latest pub.
This time bring in its dependencies as well.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2252493002 .
2016-08-15 14:57:49 -07:00
Natalie Weizenbaum 9c0364edca Revert "Bring in the latest pub."
This reverts commit bb65edde0d.

TBR

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2246213002 .
2016-08-15 14:25:53 -07:00
Natalie Weizenbaum bb65edde0d Bring in the latest pub.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2243553002 .
2016-08-15 14:21:59 -07:00
John Messerly e36fa2b3be fix #26120, sideways casts no longer supported
R=vsm@google.com

Review URL: https://codereview.chromium.org/2231273002 .
2016-08-12 14:32:36 -07:00
John Messerly e0a6e71c75 update changelog for recent strong mode fixes to future
R=shaza@google.com

Review URL: https://codereview.chromium.org/2232583002 .
2016-08-10 12:40:37 -07:00
Lasse R.H. Nielsen 3502fd5fd7 Revert "Reapply fast-URI patch."
Seems to trigger VM bug.

Review URL: https://codereview.chromium.org/2225243003 .
2016-08-09 12:51:58 +02:00
Lasse R.H. Nielsen 99e94db85b Reapply fast-URI patch.
R=whesse@google.com

Review URL: https://codereview.chromium.org/2220373002 .
2016-08-09 09:38:47 +02:00
Florian Loitsch 46a8579c1e Revert "Return futures on Stream.cancel when possible."
This reverts commit 1905ddafaa.

Review URL: https://codereview.chromium.org/2223133002 .
2016-08-08 19:31:04 +02:00
Florian Loitsch 1905ddafaa Return futures on Stream.cancel when possible.
Deprecate returning `null`.

Also, fixes cases where transformations on a stream didn't forward the cancel future

Fixes #26777.

BUG= http://dartbug.com/26777.
R=lrn@google.com

Committed: 395e7aaa69

Review URL: https://codereview.chromium.org/2202533003 .

Reverted: 99e5328eac
2016-08-08 17:30:36 +02:00
Zachary Anderson 33d2787483 Fix typo in CHANGELOG
Review URL: https://codereview.chromium.org/2226733002 .
2016-08-08 07:57:18 -07:00
Søren Gjesse f9404b969b Handle HTTP header parameters with empty values better
This handles the null issue reported.

Closes #26598

BUG= https://github.com/dart-lang/sdk/issues/26958
R=floitsch@google.com

Review URL: https://codereview.chromium.org/2225003002 .
2016-08-08 16:35:15 +02:00
Michael Thomsen 7482613351 Add trailing comma support to changelog
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/2220963002 .

Committed: 8770a64d91
Committed: 06ccf2882c
2016-08-08 11:08:37 +02:00
Michael Thomsen 06ccf2882c Add trailing comma support to changelog
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/2220963002 .

Committed: 8770a64d91
2016-08-08 11:04:46 +02:00
Michael Thomsen 8770a64d91 Add trailing comma support to changelog
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/2220963002 .
2016-08-08 10:42:15 +02:00
Michael Thomsen cfc2f577e1 Add link to building wiki page
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/2220353002 .
2016-08-08 10:41:51 +02:00
Zachary Anderson b2c771263f Update changelog for BoringSSL roll
R=asiva@google.com

Review URL: https://codereview.chromium.org/2217103003 .
2016-08-05 11:03:06 -07:00
John Messerly efe9f1140d fix #26965, allow promotion from type param upper bound in strong mode
Also updates the changelog with this, and adds notes on a few other missing strong mode features.

R=leafp@google.com

Review URL: https://codereview.chromium.org/2214833002 .
2016-08-05 08:51:44 -07:00
John Messerly 1bb6da7937 fix #26414, infer return types of local functions
R=leafp@google.com

Review URL: https://codereview.chromium.org/2209293002 .
2016-08-05 07:25:14 -07:00