Skip to content

Commit 73e9554

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Update meta to correspond to the published 1.2.2
Change-Id: I9dcbd9237d25948eb62e3ba68403436c64c70845 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153822 Auto-Submit: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Commit-Queue: Jake Macdonald <[email protected]> Reviewed-by: Jake Macdonald <[email protected]>
1 parent c84c1cb commit 73e9554

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

pkg/meta/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
## 1.3.0-nullsafety
22

33
* Opt into null safety.
4+
5+
## 1.2.2
6+
7+
* Removed `unawaited` because the attempt to move it from `package:pedantic`
8+
caused too many issues. If you see errors about `unawaited` being declared in
9+
two places, please update the version constraints for `meta` to `1.2.2` or
10+
later.
11+
12+
## 1.2.1
13+
14+
* Fixed a bug by adding an import of dart:async so that the code really is
15+
compatible with the lower bound of the SDK constraints.
16+
17+
## 1.2.0
18+
19+
* Introduce `unawaited` to mark invocations that return a `Future` where it's
20+
intentional that the future is not being awaited. (Moved from
21+
`package:pedantic`.)
422
* Introduce `@doNotStore` to annotate methods, getters and functions to
523
indicate that values obtained by invoking them should not be stored in a
624
field or top-level variable.

pkg/meta/lib/meta.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
/// Constants for use in metadata annotations.
5+
/// Annotations that developers can use to express the intentions that otherwise
6+
/// can't be deduced by statically analyzing the source code.
67
///
78
/// See also `@deprecated` and `@override` in the `dart:core` library.
89
///
@@ -12,7 +13,7 @@
1213
/// function's name differently.
1314
///
1415
/// For information on installing and importing this library, see the [meta
15-
/// package on pub.dev](https://pub.dev/packages/meta). For examples of using
16+
/// package on pub.dev](https://pub.dev/packages/meta). For examples of using
1617
/// annotations, see
1718
/// [Metadata](https://dart.dev/guides/language/language-tour#metadata) in the
1819
/// language tour.

pkg/meta/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: meta
22
version: 1.3.0-nullsafety
3-
author: Dart Team <[email protected]>
43
homepage: https://github.com/dart-lang/sdk/tree/master/pkg/meta
54
description: >
6-
This library contains the definitions of annotations that provide additional
7-
semantic information about the program being annotated. These annotations are
8-
intended to be used by tools to provide a better user experience.
5+
This library contains the declarations of annotations that developers can use
6+
to express the intentions that otherwise can't be deduced by statically
7+
analyzing the source code. These annotations are intended to be used by tools
8+
to provide a better user experience.
99
environment:
1010
# This must remain a tight constraint (only allow dev versions) until nnbd is
1111
# stable.

0 commit comments

Comments
 (0)