Skip to content

Commit f210249

Browse files
author
Dart CI
committed
Version 2.19.0-318.0.dev
Merge b6d278b into dev
2 parents 77e83fc + b6d278b commit f210249

30 files changed

+724
-202
lines changed

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,19 @@ Updated the Linter to `1.28.0`, which includes changes that
156156

157157
#### Pub
158158

159+
- Treats packages with sdk constraint lower bound `>=2.12.0` or more and upper
160+
bound `<3.0.0` as compatible with `<4.0.0`.
161+
- Introduces content-hashes in pubspec.lock, to protect against corrupted
162+
package repositories.
163+
164+
These will show up in the lock file on the first run of `dart pub get`.
165+
166+
See https://dart.dev/go/content-hashes for more details.
159167
- Remove remaining support for `.packages` files. The flag
160168
`--legacy-packages-file` is no longer supported.
161-
- Support a new field `funding` in pubspec.yaml.
169+
- The client will now default to the `pub.dev` repository instead of `pub.dartlang.org`.
170+
This will cause a change in pubspec.lock.
171+
- Support a new field [`funding`](https://dart.dev/tools/pub/pubspec#funding) in pubspec.yaml.
162172
- Validate the CRC32c checksum of downloaded archives and retry on failure.
163173
- `dart pub add foo:<constraint>` with an existing dependency will now update
164174
the constraint rather than fail.
@@ -168,6 +178,7 @@ Updated the Linter to `1.28.0`, which includes changes that
168178
- Update `dart pub publish` to require a working resolution.
169179
If publishing a breaking release of mutually dependent packages use `dependency_overrides`
170180
to obtain a resolution.
181+
- `dart pub publish` will now give a warning if `dart analyze` reports any diagnostics.
171182
- `dart pub get` now fails gracefully when run from inside the pub-cache.
172183
- `dart pub publish` now shows the file sizes of large files in your package to
173184
prevent accidental publication of large unrelated files.

DEPS

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ vars = {
150150
"ply_rev": "604b32590ffad5cbb82e4afef1d305512d06ae93",
151151
"pool_rev": "fa84ddd0e39f45bf3f09dcc5d6b9fbdda7820fef",
152152
"protobuf_rev": "1d175bef6043bc4bdef5970f6dbd6d3001124373",
153-
"pub_rev": "28a2503d7f4806e6854e3ed0d783f065abfd1b5f", # manually rev'd
153+
"pub_rev": "b9afe9270c24d040b8ae465b4b37ba4f7f4b4cc5", # manually rev'd
154154
"pub_semver_rev": "7671359982b4be9bdf87e621dd1bcdeac242b4b9",
155155
"root_certificates_rev": "692f6d6488af68e0121317a9c2c9eb393eb0ee50",
156156
"shelf_rev": "39d820d4e32fc99c65f562786097487d597dcee1",

pkg/analyzer/lib/src/dart/error/hint_codes.g.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class HintCode extends AnalyzerErrorCode {
100100
/// 1: name of the supertype
101101
static const HintCode DEAD_CODE_ON_CATCH_SUBTYPE = HintCode(
102102
'DEAD_CODE_ON_CATCH_SUBTYPE',
103-
"Dead code: This on-catch block wont be executed because '{0}' is a "
103+
"Dead code: This on-catch block won't be executed because '{0}' is a "
104104
"subtype of '{1}' and hence will have been caught already.",
105105
correctionMessage:
106106
"Try reordering the catch clauses so that this block can be reached, "
@@ -1460,7 +1460,7 @@ class HintCode extends AnalyzerErrorCode {
14601460
/// 0: the name that is shown but not used
14611461
static const HintCode UNUSED_SHOWN_NAME = HintCode(
14621462
'UNUSED_SHOWN_NAME',
1463-
"The name {0} is shown, but isnt used.",
1463+
"The name {0} is shown, but isn't used.",
14641464
correctionMessage: "Try removing the name from the list of shown members.",
14651465
hasPublishedDocs: true,
14661466
);

pkg/analyzer/lib/src/error/codes.g.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
164164
static const CompileTimeErrorCode ASSIGNMENT_TO_FINAL_NO_SETTER =
165165
CompileTimeErrorCode(
166166
'ASSIGNMENT_TO_FINAL_NO_SETTER',
167-
"There isnt a setter named '{0}' in class '{1}'.",
167+
"There isn't a setter named '{0}' in class '{1}'.",
168168
correctionMessage:
169169
"Try correcting the name to reference an existing setter, or declare "
170170
"the setter.",
@@ -4825,7 +4825,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
48254825
static const CompileTimeErrorCode USE_OF_NATIVE_EXTENSION =
48264826
CompileTimeErrorCode(
48274827
'USE_OF_NATIVE_EXTENSION',
4828-
"Dart native extensions are deprecated and arent available in Dart 2.15.",
4828+
"Dart native extensions are deprecated and aren't available in Dart 2.15.",
48294829
correctionMessage: "Try using dart:ffi for C interop.",
48304830
hasPublishedDocs: true,
48314831
);

pkg/analyzer/messages.yaml

+24-24
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ CompileTimeErrorCode:
808808
}
809809
```
810810
ASSIGNMENT_TO_FINAL_NO_SETTER:
811-
problemMessage: "There isnt a setter named '{0}' in class '{1}'."
811+
problemMessage: "There isn't a setter named '{0}' in class '{1}'."
812812
correctionMessage: Try correcting the name to reference an existing setter, or declare the setter.
813813
hasPublishedDocs: true
814814
comment: |-
@@ -1262,7 +1262,7 @@ CompileTimeErrorCode:
12621262

12631263
The analyzer produces this diagnostic when the name used in the declaration
12641264
of a class, extension, mixin, typedef, type parameter, or import prefix is
1265-
a built-in identifier. Built-in identifiers cant be used to name any of
1265+
a built-in identifier. Built-in identifiers can't be used to name any of
12661266
these kinds of declarations.
12671267

12681268
#### Example
@@ -5652,7 +5652,7 @@ CompileTimeErrorCode:
56525652
the name doesn't shadow the imported name.
56535653

56545654
If the name is the name of an existing class or mixin that isn't being
5655-
imported, then add an import, with a prefix, for the library in which its
5655+
imported, then add an import, with a prefix, for the library in which it's
56565656
declared.
56575657

56585658
Otherwise, either replace the name in the `implements` clause with the name
@@ -6284,7 +6284,7 @@ CompileTimeErrorCode:
62846284
#### Example
62856285

62866286
The following code produces this diagnostic because `zero` is a static
6287-
field, but its being accessed as if it were an instance field:
6287+
field, but it's being accessed as if it were an instance field:
62886288

62896289
```dart
62906290
void f(C c) {
@@ -6492,7 +6492,7 @@ CompileTimeErrorCode:
64926492

64936493
The analyzer produces this diagnostic when a constructor invocation is
64946494
found where the type being instantiated is a type alias for one of the type
6495-
parameters of the type alias. This isnt allowed because the value of the
6495+
parameters of the type alias. This isn't allowed because the value of the
64966496
type parameter is a type rather than a class.
64976497

64986498
#### Example
@@ -6806,7 +6806,7 @@ CompileTimeErrorCode:
68066806
String s = i.toString();
68076807
```
68086808

6809-
If you cant change the value, then change the type of the variable to be
6809+
If you can't change the value, then change the type of the variable to be
68106810
compatible with the type of the value being assigned:
68116811

68126812
```dart
@@ -8269,7 +8269,7 @@ CompileTimeErrorCode:
82698269
#### Description
82708270

82718271
The analyzer produces this diagnostic when either the Dart or Flutter SDK
8272-
isnt installed correctly, and, as a result, one of the `dart:` libraries
8272+
isn't installed correctly, and, as a result, one of the `dart:` libraries
82738273
can't be found.
82748274

82758275
#### Common fixes
@@ -8911,7 +8911,7 @@ CompileTimeErrorCode:
89118911
#### Example
89128912

89138913
The following code produces this diagnostic because the initializer list
8914-
for `B`s constructor invokes both the constructor `one` and the
8914+
for `B`'s constructor invokes both the constructor `one` and the
89158915
constructor `two` from the superclass `A`:
89168916

89178917
```dart
@@ -9012,7 +9012,7 @@ CompileTimeErrorCode:
90129012
#### Description
90139013

90149014
The analyzer produces this diagnostic when an unnamed constructor is
9015-
invoked on a class that defines named constructors but the class doesnt
9015+
invoked on a class that defines named constructors but the class doesn't
90169016
have an unnamed constructor.
90179017

90189018
#### Example
@@ -10176,7 +10176,7 @@ CompileTimeErrorCode:
1017610176
}
1017710177
```
1017810178

10179-
If `null` isnt a valid value, and there's a reasonable default value, then
10179+
If `null` isn't a valid value, and there's a reasonable default value, then
1018010180
add an initializer:
1018110181

1018210182
```dart
@@ -10381,7 +10381,7 @@ CompileTimeErrorCode:
1038110381

1038210382
#### Common fixes
1038310383

10384-
If there's a reasonable default value for the field thats the same for all
10384+
If there's a reasonable default value for the field that's the same for all
1038510385
instances, then add an initializer expression:
1038610386

1038710387
```dart
@@ -12099,7 +12099,7 @@ CompileTimeErrorCode:
1209912099

1210012100
The analyzer produces this diagnostic when a redirecting factory
1210112101
constructor redirects to a type alias, and the type alias expands to one of
12102-
the type parameters of the type alias. This isnt allowed because the value
12102+
the type parameters of the type alias. This isn't allowed because the value
1210312103
of the type parameter is a type rather than a class.
1210412104

1210512105
#### Example
@@ -12141,7 +12141,7 @@ CompileTimeErrorCode:
1214112141
#### Description
1214212142

1214312143
The analyzer produces this diagnostic when a variable is referenced before
12144-
its declared. In Dart, variables are visible everywhere in the block in
12144+
it's declared. In Dart, variables are visible everywhere in the block in
1214512145
which they are declared, but can only be referenced after they are
1214612146
declared.
1214712147

@@ -13548,7 +13548,7 @@ CompileTimeErrorCode:
1354813548
}
1354913549
```
1355013550

13551-
Note, however, that there isnt a relationship between `T` and `S`, so this
13551+
Note, however, that there isn't a relationship between `T` and `S`, so this
1355213552
second option changes the semantics from what was likely to be intended.
1355313553
TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND:
1355413554
problemMessage: "'{0}' can't be a supertype of its upper bound."
@@ -13822,7 +13822,7 @@ CompileTimeErrorCode:
1382213822

1382313823
#### Common fixes
1382413824

13825-
If the name is correct, but it isnt declared yet, then declare the name as
13825+
If the name is correct, but it isn't declared yet, then declare the name as
1382613826
a constant value:
1382713827

1382813828
```dart
@@ -14865,7 +14865,7 @@ CompileTimeErrorCode:
1486514865
#### Description
1486614866

1486714867
The analyzer produces this diagnostic when an inherited member (method,
14868-
getter, setter, or operator) is referenced using `super`, but theres no
14868+
getter, setter, or operator) is referenced using `super`, but there's no
1486914869
member with that name in the superclass chain.
1487014870

1487114871
#### Examples
@@ -14900,7 +14900,7 @@ CompileTimeErrorCode:
1490014900
If the member you intend to invoke is defined in the same class, then
1490114901
remove the `super.`.
1490214902

14903-
If the member isnt defined, then either add the member to one of the
14903+
If the member isn't defined, then either add the member to one of the
1490414904
superclasses or remove the invocation.
1490514905
UNDEFINED_SUPER_OPERATOR:
1490614906
sharedName: UNDEFINED_SUPER_MEMBER
@@ -15106,7 +15106,7 @@ CompileTimeErrorCode:
1510615106
The analyzer produces this diagnostic when the string literal in an
1510715107
`import`, `export`, or `part` directive contains an interpolation. The
1510815108
resolution of the URIs in directives must happen before the declarations
15109-
are compiled, so expressions cant be evaluated while determining the
15109+
are compiled, so expressions can't be evaluated while determining the
1511015110
values of the URIs.
1511115111

1511215112
#### Example
@@ -15130,7 +15130,7 @@ CompileTimeErrorCode:
1513015130
var zero = min(0, 0);
1513115131
```
1513215132
USE_OF_NATIVE_EXTENSION:
15133-
problemMessage: Dart native extensions are deprecated and arent available in Dart 2.15.
15133+
problemMessage: Dart native extensions are deprecated and aren't available in Dart 2.15.
1513415134
correctionMessage: "Try using dart:ffi for C interop."
1513515135
hasPublishedDocs: true
1513615136
comment: No parameters.
@@ -17717,7 +17717,7 @@ HintCode:
1771717717
#### Description
1771817718

1771917719
The analyzer produces this diagnostic when a `catch` clause is found that
17720-
can't be executed because its after a `catch` clause of the form
17720+
can't be executed because it's after a `catch` clause of the form
1772117721
`catch (e)` or `on Object catch (e)`. The first `catch` clause that matches
1772217722
the thrown object is selected, and both of those forms will match any
1772317723
object, so no `catch` clauses that follow them will be selected.
@@ -17759,7 +17759,7 @@ HintCode:
1775917759
}
1776017760
```
1776117761
DEAD_CODE_ON_CATCH_SUBTYPE:
17762-
problemMessage: "Dead code: This on-catch block wont be executed because '{0}' is a subtype of '{1}' and hence will have been caught already."
17762+
problemMessage: "Dead code: This on-catch block won't be executed because '{0}' is a subtype of '{1}' and hence will have been caught already."
1776317763
correctionMessage: Try reordering the catch clauses so that this block can be reached, or removing the unreachable catch clause.
1776417764
hasPublishedDocs: true
1776517765
comment: |-
@@ -18133,7 +18133,7 @@ HintCode:
1813318133

1813418134
The analyzer produces this diagnostic when an import directive is found
1813518135
that is the same as an import before it in the file. The second import
18136-
doesnt add value and should be removed.
18136+
doesn't add value and should be removed.
1813718137

1813818138
#### Example
1813918139

@@ -19933,7 +19933,7 @@ HintCode:
1993319933
#### Description
1993419934

1993519935
The analyzer produces this diagnostic when a class member is annotated with
19936-
the `@override` annotation, but the member isnt declared in any of the
19936+
the `@override` annotation, but the member isn't declared in any of the
1993719937
supertypes of the class.
1993819938

1993919939
#### Example
@@ -21725,7 +21725,7 @@ HintCode:
2172521725
0: the name of the annotated method, property or function
2172621726
1: message details
2172721727
UNUSED_SHOWN_NAME:
21728-
problemMessage: "The name {0} is shown, but isnt used."
21728+
problemMessage: "The name {0} is shown, but isn't used."
2172921729
correctionMessage: Try removing the name from the list of shown members.
2173021730
hasPublishedDocs: true
2173121731
comment: |-

0 commit comments

Comments
 (0)