Commit graph

235 commits

Author SHA1 Message Date
Sigmund Cherem 0549e8caef Add note to changelog about support for importing dart:io in dart2js.
R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2754453004 .
2017-03-15 16:54:12 -07:00
Zach Anderson 8be1856589 Update CHANGELOG for Platform.ansiSupported
fixes #29079

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2756493002 .
2017-03-15 10:33:03 -07:00
William Hesse 77ff7cf727 Revert "Bring in the latest pub."
This reverts commit b3997dfc0c.
Many pub tests are failing on Mac OS.

BUG=
R=sortie@google.com

Review-Url: https://codereview.chromium.org/2749643005 .
2017-03-15 11:00:23 +01:00
Natalie Weizenbaum b3997dfc0c Bring in the latest pub. 2017-03-14 13:12:52 -07:00
Lasse R.H. Nielsen 5ae186153c Make Analyzer, VM and dart2js accept URI strings as part-of library identifier.
R=brianwilkerson@google.com, floitsch@google.com, hausner@google.com, johnniwinther@google.com, sigmund@google.com

Committed: ef097edad6
Review-Url: https://codereview.chromium.org/2640853005 .
2017-03-13 08:31:40 +01:00
Dmitry Stefantsov 9c340f9eb1 Revert last 4 commits by @lrn
Reverted commits:
* ef097edad6. ("Make Analyzer, VM and
  dart2js accept URI strings as part-of library identifier.")
* e8e1857814. ("Fix bad example of URI
  part-of to be bad, not good.")
* 58f7a92ede. ("Add changelog entry for
  allowing URI in part-of.")
* a4a7d98dce. ("Use FutureOr in
  Completer.complete.")

TBR=lrn@google.com

Review-Url: https://codereview.chromium.org/2724853002 .
2017-03-01 16:44:52 +01:00
Lasse R.H. Nielsen 58f7a92ede Add changelog entry for allowing URI in part-of.
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2722183002 .
2017-03-01 14:04:44 +01:00
Dan Rubel bfb8e82c6e Document dartanalyzer analysis options changes (#28928) 2017-02-28 15:19:52 -08:00
Zach Anderson feb64964cc Updates CHANGELOG.md for windows console unicode
related #28571

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2709323002 .
2017-02-22 13:35:27 -08:00
Lasse R.H. Nielsen dccdd1b981 Normalize UriData.parse result.
Validates base64 encoding, normalizes padding.
Normalizes non-base64 data using URI percent-escapes for all invalid characters.

Fixes issue #28728, #28700
BUG= http://dartbug.com/28728 http://dartbug.com/28700
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2694373003 .
2017-02-17 11:02:38 +01:00
Zachary Anderson 3f5458cdcb [dart:io] Adds functions to set file access and modification time
fixes #27877

R=asiva@google.com, floitsch@google.com

Review-Url: https://codereview.chromium.org/2681683005 .
2017-02-09 09:45:25 -08:00
Bob Nystrom 9b4210433b Fix typo in CHANGELOG.
Fix #28613.

R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2674803002 .
2017-02-02 16:21:23 -08:00
Bob Nystrom c3f1212a9c Add 1.22 features to CHANGELOG.
R=eernst@google.com, kevmoo@google.com, lrn@google.com, mit@google.com

Review-Url: https://codereview.chromium.org/2648203003 .
2017-01-30 08:11:04 -08:00
Lasse R.H. Nielsen dd561d513b Add Uri.isScheme test function.
Allows checking the scheme of a URI against a known value.
Example: `uri.isScheme("http")`.
Has two advantages over `uri.scheme == "http"`:
* It's case insensitive, so you can do `uri.isScheme("HTTP")` as well, and
* for simple URIs, it doesn't need to allocate a new string.

R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2664453003 .
2017-01-30 13:26:39 +01:00
Sigmund Cherem 139d5d15db Roll pub to the latest version.
BUG=
R=nweiz@google.com

Review-Url: https://codereview.chromium.org/2659083002 .
2017-01-27 16:48:58 -08:00
Zachary Anderson 624299811f Update changelog for GN change
R=asiva@google.com

Review-Url: https://codereview.chromium.org/2638383005 .
2017-01-20 11:00:51 -08:00
Florian Loitsch b002a17811 Add a changelog entry for Null.
Fixes #28024
BUG= http://dartbug.com/28024
R=lrn@google.com

Review-Url: https://codereview.chromium.org/2640163005 .
2017-01-19 15:18:23 +01:00
Bob Nystrom f0fcb81292 Bring in the latest pub.
This rolls back the "tar --name" fix which breaks pub lish on Mac.

R=nweiz@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/2636593003 .
2017-01-13 13:12:22 -08:00
Michael Thomsen 55b62121b0 Update CHANGELOG.md (#28221) 2016-12-30 12:11:15 +01:00
Kevin Moore bcd63e598b Add dart syntax to changelog 2016-12-20 10:04:29 -08:00
Michael Thomsen c95423bc49 Update changelog.md to mention new assert with message feature (#28156)
* Update changelog.md to mention new assert with message feature

Fixes https://github.com/dart-lang/sdk/issues/28134

* Fix typo per review feedback
2016-12-20 05:20:59 -08:00
Sam Rawlins f85d65badb CHANGELOG: add issue links, an article link, and an example (#28112) 2016-12-15 12:09:39 +01:00
Bob Nystrom 1d74db1e2d Add assert messages in DDC to the CHANGELOG.
(Also, alphabetize the tools.)

R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2574283002 .
2016-12-14 12:57:35 -08:00
Florian Loitsch 7374ec71bd Remove support for mixin typedefs in dart2js.
Fixes #14410.
BUG= http://dartbug.com/14410
R=johnniwinther@google.com, sigmund@google.com

Review-Url: https://codereview.chromium.org/2567943003 .
2016-12-13 14:04:06 +01:00
Natalie Weizenbaum 73a9897d20 Bring in the latest pub. (#28035) 2016-12-08 13:17:30 -08:00
William Hesse b214f5fa7e Start working on Version 1.22 of Dart
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/2552373003 .
2016-12-07 18:03:20 +01:00
Kevin Moore b7be77cf92 update docs on dart:developer Service class
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2544153003 .
2016-12-02 10:28:42 -08:00
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