Skip to content

Commit 4d9d0e3

Browse files
authored
Support the latest pkg:build, prepare to release (#833)
1 parent ae33c43 commit 4d9d0e3

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

json_serializable/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 4.0.3-dev
1+
## 4.0.3
22

33
- Correctly handle nullable values with `genericArgumentFactories`.
4+
- Require the latest `package:build`.
45

56
## 4.0.2
67

json_serializable/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json_serializable
2-
version: 4.0.3-dev
2+
version: 4.0.3
33
description: >-
44
Automatically generate code for converting to and from JSON by annotating
55
Dart classes.
@@ -11,7 +11,7 @@ environment:
1111

1212
dependencies:
1313
analyzer: '>=0.41.2 <2.0.0'
14-
build: ^1.6.1
14+
build: ^2.0.0
1515
build_config: ^0.4.4
1616

1717
# Use a tight version constraint to ensure that a constraint on

json_serializable/tool/doc_builder.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ class _DocBuilder extends Builder {
3333
? 'latest'
3434
: jsonAnnotationVersion.toString();
3535

36-
final lib = LibraryReader(await buildStep.resolver.libraryFor(
37-
AssetId.resolve('package:json_annotation/json_annotation.dart')));
36+
final lib = LibraryReader(
37+
await buildStep.resolver.libraryFor(
38+
AssetId.resolve(
39+
Uri.parse('package:json_annotation/json_annotation.dart'),
40+
),
41+
),
42+
);
3843

3944
final descriptionMap = <String, _FieldInfo>{};
4045

0 commit comments

Comments
 (0)