Prep to publish dwds (#1456)
* Prep to publish dwds
* Prep to publish dwds
diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md
index 7c2ed1a..50e586e 100644
--- a/dwds/CHANGELOG.md
+++ b/dwds/CHANGELOG.md
@@ -1,4 +1,4 @@
-## 11.5.0-dev
+## 11.5.0
- Support hot restart in a multi-app scenario with legacy modules.
- Rename `$dartHotRestart` in the injected client to `$dartHotRestartDwds`.
@@ -13,7 +13,7 @@
- Fix chrome detection in iPhone emulation mode in chrome or edge browsers.
- Reliably find unused port for extension backend http service.
-- Ignore offset / count parameters in getObject if the object has no length
+- Ignore offset / count parameters in getObject if the object has no length.
- Include static member information for classes
## 11.4.0
diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js
index f0b162b..80cd7ea 100644
--- a/dwds/lib/src/injected/client.js
+++ b/dwds/lib/src/injected/client.js
@@ -1,4 +1,4 @@
-// Generated by dart2js (NullSafetyMode.unsound, no-legacy-javascript, new-holders, csp), the Dart to JavaScript compiler version: 2.16.0-21.0.dev.
+// Generated by dart2js (NullSafetyMode.unsound, no-legacy-javascript, new-holders, csp), the Dart to JavaScript compiler version: 2.16.0-55.0.dev.
// The code supports the following hooks:
// dartPrint(message):
// if this function is defined it is called instead of the Dart [print]
@@ -5112,16 +5112,16 @@
return (codeUnit | 32) - 97 + 10;
},
_BigIntImpl__parseHex(source, startPos, isNegative) {
- var t3, i, chunk, j, i0, digitValue, digitIndex, digitIndex0,
+ var i, chunk, j, i0, digitValue, digitIndex, digitIndex0,
t1 = source.length,
sourceLength = t1 - startPos,
chunkCount = B.JSNumber_methods.ceil$0(sourceLength / 4),
digits = new Uint16Array(chunkCount),
t2 = chunkCount - 1,
lastDigitLength = sourceLength - t2 * 4;
- for (t3 = J.getInterceptor$s(source), i = startPos, chunk = 0, j = 0; j < lastDigitLength; ++j, i = i0) {
+ for (i = startPos, chunk = 0, j = 0; j < lastDigitLength; ++j, i = i0) {
i0 = i + 1;
- digitValue = A._BigIntImpl__codeUnitToRadixValue(t3._codeUnitAt$1(source, i));
+ digitValue = A._BigIntImpl__codeUnitToRadixValue(B.JSString_methods._codeUnitAt$1(source, i));
if (digitValue >= 16)
return null;
chunk = chunk * 16 + digitValue;
@@ -5580,7 +5580,7 @@
var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, userInfoStart, userInfo, host, portNumber, port, path, query, _null = null,
end = uri.length;
if (end >= 5) {
- delta = ((J._codeUnitAt$1$s(uri, 4) ^ 58) * 3 | B.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | B.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | B.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | B.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
+ delta = ((B.JSString_methods._codeUnitAt$1(uri, 4) ^ 58) * 3 | B.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | B.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | B.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | B.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
if (delta === 0)
return A.UriData__parse(end < end ? B.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
else if (delta === 32)
@@ -5625,8 +5625,8 @@
scheme = _null;
isSimple = false;
} else {
- if (!(queryStart < end && queryStart === pathStart + 2 && J.startsWith$2$s(uri, "..", pathStart)))
- t2 = queryStart > pathStart + 2 && J.startsWith$2$s(uri, "/..", queryStart - 3);
+ if (!(queryStart < end && queryStart === pathStart + 2 && B.JSString_methods.startsWith$2(uri, "..", pathStart)))
+ t2 = queryStart > pathStart + 2 && B.JSString_methods.startsWith$2(uri, "/..", queryStart - 3);
else
t2 = true;
if (t2) {
@@ -5634,7 +5634,7 @@
isSimple = false;
} else {
if (schemeEnd === 4)
- if (J.startsWith$2$s(uri, "file", 0)) {
+ if (B.JSString_methods.startsWith$2(uri, "file", 0)) {
if (hostStart <= 0) {
if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) {
schemeAuth = "file:///";
@@ -5672,12 +5672,12 @@
scheme = "http";
} else
scheme = _null;
- else if (schemeEnd === 5 && J.startsWith$2$s(uri, "https", 0)) {
- if (t1 && portStart + 4 === pathStart && J.startsWith$2$s(uri, "443", portStart + 1)) {
+ else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) {
+ if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) {
fragmentStart -= 4;
pathStart0 = pathStart - 4;
queryStart -= 4;
- uri = J.replaceRange$3$s(uri, portStart, pathStart, "");
+ uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
end -= 3;
pathStart = pathStart0;
}
@@ -5691,9 +5691,8 @@
else
scheme = _null;
if (isSimple) {
- t1 = uri.length;
- if (end < t1) {
- uri = J.substring$2$s(uri, 0, end);
+ if (end < uri.length) {
+ uri = B.JSString_methods.substring$2(uri, 0, end);
schemeEnd -= 0;
hostStart -= 0;
portStart -= 0;
@@ -5719,7 +5718,7 @@
host = A._Uri__makeHost(uri, hostStart, portStart, false);
t1 = portStart + 1;
if (t1 < pathStart) {
- portNumber = A.Primitives_parseInt(J.substring$2$s(uri, t1, pathStart), _null);
+ portNumber = A.Primitives_parseInt(B.JSString_methods.substring$2(uri, t1, pathStart), _null);
port = A._Uri__makePort(portNumber == null ? A.throwExpression(A.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
} else
port = _null;
@@ -6393,7 +6392,7 @@
_Uri__escapeScheme(path) {
var i, char, t2,
t1 = path.length;
- if (t1 >= 2 && A._Uri__isAlphabeticCharacter(J._codeUnitAt$1$s(path, 0)))
+ if (t1 >= 2 && A._Uri__isAlphabeticCharacter(B.JSString_methods._codeUnitAt$1(path, 0)))
for (i = 1; i < t1; ++i) {
char = B.JSString_methods._codeUnitAt$1(path, i);
if (char === 58)
@@ -7888,7 +7887,7 @@
DeserializationError_DeserializationError(json, type, error) {
var limitedJson = J.toString$0$(json),
t1 = limitedJson.length;
- return new A.DeserializationError(t1 > 80 ? J.replaceRange$3$s(limitedJson, 77, t1, "...") : limitedJson, type, error);
+ return new A.DeserializationError(t1 > 80 ? B.JSString_methods.replaceRange$3(limitedJson, 77, t1, "...") : limitedJson, type, error);
},
Serializers_Serializers_closure: function Serializers_Serializers_closure() {
},
@@ -9105,24 +9104,15 @@
remove$1$x(receiver, a0) {
return J.getInterceptor$x(receiver).remove$1(receiver, a0);
},
- replaceRange$3$s(receiver, a0, a1, a2) {
- return J.getInterceptor$s(receiver).replaceRange$3(receiver, a0, a1, a2);
- },
skip$1$ax(receiver, a0) {
return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
},
sort$1$ax(receiver, a0) {
return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
},
- startsWith$2$s(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).startsWith$2(receiver, a0, a1);
- },
sublist$2$ax(receiver, a0, a1) {
return J.getInterceptor$ax(receiver).sublist$2(receiver, a0, a1);
},
- substring$2$s(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
- },
then$1$1$x(receiver, a0, $T1) {
return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1);
},
@@ -14918,39 +14908,39 @@
A.JsonDecoder.prototype = {};
A._JsonStringifier.prototype = {
writeStringContent$1(s) {
- var t1, offset, i, charCode, t2, t3, _this = this,
+ var offset, i, charCode, t1, t2, _this = this,
$length = s.length;
- for (t1 = J.getInterceptor$s(s), offset = 0, i = 0; i < $length; ++i) {
- charCode = t1._codeUnitAt$1(s, i);
+ for (offset = 0, i = 0; i < $length; ++i) {
+ charCode = B.JSString_methods._codeUnitAt$1(s, i);
if (charCode > 92) {
if (charCode >= 55296) {
- t2 = charCode & 64512;
- if (t2 === 55296) {
- t3 = i + 1;
- t3 = !(t3 < $length && (B.JSString_methods._codeUnitAt$1(s, t3) & 64512) === 56320);
+ t1 = charCode & 64512;
+ if (t1 === 55296) {
+ t2 = i + 1;
+ t2 = !(t2 < $length && (B.JSString_methods._codeUnitAt$1(s, t2) & 64512) === 56320);
} else
- t3 = false;
- if (!t3)
- if (t2 === 56320) {
- t2 = i - 1;
- t2 = !(t2 >= 0 && (B.JSString_methods.codeUnitAt$1(s, t2) & 64512) === 55296);
+ t2 = false;
+ if (!t2)
+ if (t1 === 56320) {
+ t1 = i - 1;
+ t1 = !(t1 >= 0 && (B.JSString_methods.codeUnitAt$1(s, t1) & 64512) === 55296);
} else
- t2 = false;
+ t1 = false;
else
- t2 = true;
- if (t2) {
+ t1 = true;
+ if (t1) {
if (i > offset)
_this.writeStringSlice$3(s, offset, i);
offset = i + 1;
_this.writeCharCode$1(92);
_this.writeCharCode$1(117);
_this.writeCharCode$1(100);
- t2 = charCode >>> 8 & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- t2 = charCode >>> 4 & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- t2 = charCode & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
+ t1 = charCode >>> 8 & 15;
+ _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
+ t1 = charCode >>> 4 & 15;
+ _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
+ t1 = charCode & 15;
+ _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
}
}
continue;
@@ -14980,10 +14970,10 @@
_this.writeCharCode$1(117);
_this.writeCharCode$1(48);
_this.writeCharCode$1(48);
- t2 = charCode >>> 4 & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- t2 = charCode & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
+ t1 = charCode >>> 4 & 15;
+ _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
+ t1 = charCode & 15;
+ _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
break;
}
} else if (charCode === 34 || charCode === 92) {
@@ -15159,7 +15149,7 @@
t1 = new Uint8Array($length * 3);
encoder = new A._Utf8Encoder(t1);
if (encoder._fillBuffer$3(string, 0, end) !== end) {
- J.codeUnitAt$1$s(string, end - 1);
+ B.JSString_methods.codeUnitAt$1(string, end - 1);
encoder._writeReplacementCharacter$0();
}
return B.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
@@ -18200,9 +18190,7 @@
t3 = t2._as(child);
++t1.numTreeModifications;
t4 = t3.parentNode;
- t4 = node == null ? t4 != null : node !== t4;
- if (t4) {
- t4 = t3.parentNode;
+ if (node == null ? t4 != null : node !== t4) {
if (t4 != null)
t4.removeChild(t3);
} else
@@ -22925,8 +22913,7 @@
t1.toString;
effectiveLevel = t1;
} else {
- t1 = $.$get$Logger_root();
- t1 = t1._level;
+ t1 = $.$get$Logger_root()._level;
t1.toString;
effectiveLevel = t1;
}
@@ -23224,7 +23211,7 @@
call$0() {
var $async$goto = 0,
$async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, e, e0, e1, exception, t1, t2, $async$exception;
+ $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, e, e0, e1, exception, t1, $async$exception;
var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
if ($async$errorCode === 1) {
$async$currentError = $async$result;
@@ -23263,8 +23250,7 @@
$async$exception = $async$currentError;
e1 = A.unwrapException($async$exception);
t1 = $async$self.$this;
- t2 = "Failed to send " + A.S($async$self.message) + ":\n " + A.S(e1);
- t1._logger.log$4(B.Level_SEVERE_1000, t2, null, null);
+ t1._logger.log$4(B.Level_SEVERE_1000, "Failed to send " + A.S($async$self.message) + ":\n " + A.S(e1), null, null);
t1.close$0(0);
// goto after finally
$async$goto = 5;
diff --git a/dwds/lib/src/version.dart b/dwds/lib/src/version.dart
index 3cf16e6..42ce62c 100644
--- a/dwds/lib/src/version.dart
+++ b/dwds/lib/src/version.dart
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
-const packageVersion = '11.5.0-dev';
+const packageVersion = '11.5.0';
diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml
index 0152403..2ad6e49 100644
--- a/dwds/pubspec.yaml
+++ b/dwds/pubspec.yaml
@@ -1,6 +1,6 @@
name: dwds
# Every time this changes you need to run `pub run build_runner build`.
-version: 11.5.0-dev
+version: 11.5.0
homepage: https://github.com/dart-lang/webdev/tree/master/dwds
description: >-
A service that proxies between the Chrome debug protocol and the Dart VM