Skip to content

Commit 7016851

Browse files
committed
Merge remote-tracking branch 'google/master' into #780
2 parents 3c6d717 + d096a39 commit 7016851

File tree

158 files changed

+884
-511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+884
-511
lines changed

_test_yaml/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ environment:
66

77
dev_dependencies:
88
build_runner: ^1.0.0
9-
build_verify: ^1.1.0
9+
build_verify: ^2.0.0
1010
checked_yaml: any
1111
json_annotation: any
1212
json_serializable: any

_test_yaml/test/ensure_build_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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-
// @dart=2.9
6-
75
@TestOn('vm')
86
@Tags(['presubmit-only'])
97
import 'package:build_verify/build_verify.dart';

checked_yaml/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 2.0.2-dev
2+
13
## 2.0.1
24

35
- If `CheckedFromJsonException` is caught for a key missing in the source map,

checked_yaml/pubspec.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: checked_yaml
2-
version: 2.0.1
2+
version: 2.0.2-dev
33

44
description: >-
55
Generate more helpful exceptions when decoding YAML documents using
@@ -15,13 +15,8 @@ dependencies:
1515

1616
dev_dependencies:
1717
build_runner: ^1.0.0
18-
build_verify: ^1.1.0
18+
build_verify: ^2.0.0
1919
json_serializable: ^4.0.0
2020
path: ^1.0.0
2121
test: ^1.16.0
2222
test_process: ^2.0.0
23-
24-
dependency_overrides:
25-
# Need to update dependencies on these packages
26-
build_config: ^0.4.4
27-
pubspec_parse: ^0.1.5

checked_yaml/test/ensure_build_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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-
// @dart=2.9
6-
75
@TestOn('vm')
86
@Tags(['presubmit-only'])
97
import 'package:build_verify/build_verify.dart';

example/lib/tuple_example.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dev_dependencies:
1111
build_runner: ^1.0.0
1212

1313
# Used by tests. Not required to use `json_serializable`.
14-
build_verify: ^1.0.0
14+
build_verify: ^2.0.0
1515

1616
json_serializable: ^4.0.0
1717

example/test/ensure_build_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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-
// @dart=2.9
6-
75
@Tags(['presubmit-only'])
86
import 'package:build_verify/build_verify.dart';
97
import 'package:test/test.dart';

json_annotation/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
## 4.0.1-dev
1+
## 4.0.1
22

33
- Fix a potential error with `checked: true` when `ArgumentError.message` is
44
`null`.
5+
- Updated `JsonSerializable.fromJson` to handle `null` values.
6+
- Deprecate `JsonSerializable` `defaults` and `withDefaults()`.
57

68
## 4.0.0
79

json_annotation/lib/src/json_serializable.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class JsonSerializable {
194194

195195
/// An instance of [JsonSerializable] with all fields set to their default
196196
/// values.
197+
@Deprecated('Was only ever included to support builder infrastructure.')
197198
static const defaults = JsonSerializable(
198199
anyMap: false,
199200
checked: false,
@@ -212,6 +213,7 @@ class JsonSerializable {
212213
///
213214
/// Otherwise, the returned value has the default value as defined in
214215
/// [defaults].
216+
@Deprecated('Was only ever included to support builder infrastructure.')
215217
JsonSerializable withDefaults() => JsonSerializable(
216218
anyMap: anyMap ?? defaults.anyMap,
217219
checked: checked ?? defaults.checked,

0 commit comments

Comments
 (0)