6
6
7
7
### Core libraries
8
8
9
- * ** Breaking change:** As part of (Issue [ 36900] [ ] ), the following methods and
9
+ * ** Breaking change** [ #36900 ] ( https://github.com/dart-lang/sdk/issues/36900 ) :
10
+ The following methods and
10
11
properties across various core libraries, which used to declare a return type
11
12
of ` List<int> ` , were updated to declare a return type of ` Uint8List ` :
12
13
46
47
* ` Uint32List.sublist() ` → ` Uint32List `
47
48
* ` Uint64List.sublist() ` → ` Uint64List `
48
49
49
- [ 36900 ] : https://github.com/dart-lang/sdk/issues/36900
50
-
50
+
51
51
#### ` dart:core `
52
52
53
53
* Update ` Uri ` class to support [ RFC6874] ( https://tools.ietf.org/html/rfc6874 ) :
60
60
61
61
#### ` dart:io `
62
62
63
- * ** Breaking Change:** The ` Cookie ` class's constructor's ` name ` and ` value `
64
- optional positional parameters are now mandatory (Issue [ 37192] [ ] ). The
63
+ * ** Breaking change** [ #37192 ] ( https://github.com/dart-lang/sdk/issues/37192 ) :
64
+ The ` Cookie ` class's constructor's ` name ` and ` value `
65
+ optional positional parameters are now mandatory. The
65
66
signature changes from:
66
67
67
68
Cookie([String name, String value])
77
78
Since code could not previously correctly omit the parameters, this is not
78
79
really a breaking change.
79
80
80
- * ** Breaking Change:** The ` Cookie ` class's ` name ` and ` value ` setters now
81
+ * ** Breaking change** [ #37192 ] ( https://github.com/dart-lang/sdk/issues/37192 ) :
82
+ The ` Cookie ` class's ` name ` and ` value ` setters now
81
83
validates that the strings are made from the allowed character set and are not
82
- null (Issue [ 37192 ] [ ] ) . The constructor already made these checks and this
84
+ null. The constructor already made these checks and this
83
85
fixes the loophole where the setters didn't also validate.
84
86
85
- [ 37192 ] : https://github.com/dart-lang/sdk/issues/37192
86
-
87
87
### Dart VM
88
88
89
89
### Tools
@@ -131,28 +131,29 @@ communication of `Uint8List` data.
131
131
[ 33327 ] : https://github.com/dart-lang/sdk/issues/33327
132
132
[ 35804 ] : https://github.com/dart-lang/sdk/issues/35804
133
133
134
- * The ` HttpClientResponse ` interface has been extended with the addition of a
134
+ * ** Breaking change** [ #36971 ] ( https://github.com/dart-lang/sdk/issues/36971 ) :
135
+ The ` HttpClientResponse ` interface has been extended with the addition of a
135
136
new ` compressionState ` getter, which specifies whether the body of a
136
137
response was compressed when it was received and whether it has been
137
- automatically uncompressed via ` HttpClient.autoUncompress ` (Issue [ 36971 ] [ ] ) .
138
+ automatically uncompressed via ` HttpClient.autoUncompress ` .
138
139
139
140
As part of this change, a corresponding new enum was added to ` dart:io ` :
140
141
` HttpClientResponseCompressionState ` .
141
142
142
- [ 36971 ] : https://github.com/dart-lang/sdk/issues/36971
143
-
144
- * ** Breaking change** : For those implementing the ` HttpClientResponse `
145
- interface, this is a breaking change, as implementing classes will need to
146
- implement the new getter.
143
+ For those implementing the ` HttpClientResponse `
144
+ interface, this is a breaking change, as implementing classes will need to
145
+ implement the new getter.
147
146
148
147
#### ` dart:async `
149
148
150
- * ** Breaking change:** The ` await for ` allowed ` null ` as a stream due to a bug
149
+ * ** Breaking change** [ #36382 ] ( https://github.com/dart-lang/sdk/issues/36382 ) :
150
+ The ` await for ` allowed ` null ` as a stream due to a bug
151
151
in ` StreamIterator ` class. This bug has now been fixed.
152
152
153
153
#### ` dart:core `
154
154
155
- * ** Breaking change:** The ` RegExp ` interface has been extended with two new
155
+ * ** Breaking change** [ #36171 ] ( https://github.com/dart-lang/sdk/issues/36171 ) :
156
+ The ` RegExp ` interface has been extended with two new
156
157
constructor named parameters:
157
158
158
159
* ` unicode: ` (` bool ` , default: ` false ` ), for Unicode patterns
@@ -175,8 +176,9 @@ communication of `Uint8List` data.
175
176
176
177
### Language
177
178
178
- * ** Breaking change:** Covariance of type variables used in super-interfaces
179
- is now enforced (issue [ 35097] [ ] ). For example, the following code was
179
+ * ** Breaking change** [ #35097 ] ( https://github.com/dart-lang/sdk/issues/35097 ) :
180
+ Covariance of type variables used in super-interfaces
181
+ is now enforced. For example, the following code was
180
182
previously accepted and will now be rejected:
181
183
182
184
``` dart
@@ -187,8 +189,6 @@ class B<X> extends A<void Function(X)> {};
187
189
* The identifier ` async ` can now be used in asynchronous and generator
188
190
functions.
189
191
190
- [ 35097 ] : https://github.com/dart-lang/sdk/issues/35097
191
-
192
192
### Dart for the Web
193
193
194
194
#### Dart Dev Compiler (DDC)
0 commit comments