Skip to content

Commit 584a775

Browse files
authored
Merge pull request #298 from davidmorgan/release-4-5-0
Release 4.5.0
2 parents e80fc5d + 4f80666 commit 584a775

File tree

8 files changed

+36
-50
lines changed

8 files changed

+36
-50
lines changed

CHANGELOG.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@
22

33
## 4.5.0
44

5-
- Fix generated builder when fields hold function types.
6-
- Fix checks and generated builder when manually maintained builder has
7-
generics.
8-
- Explicitly disallow private fields; fail with an error during generation if
9-
one is found.
10-
- Add built in serializer for `Uri`.
11-
- Allow declaration of multiple `Serializers` in the same file.
12-
- Improve error message for field without type.
13-
- Fix name of classes generated from a private class.
5+
New features:
6+
147
- Add `serialize` field to `@BuiltValueField`. Use this to tag fields to skip
158
when serializing.
16-
- Fix builder and serializer generation when importing with a prefix.
179
- Add `wireName` field to `@BuiltValue` and `@BuiltValueField`. Use this to
1810
override the wire name for classes and fields when serializing.
1911
- Add `@BuiltValueEnum` and `@BuiltValueEnumConst` annotations for specifying
@@ -25,6 +17,22 @@
2517
- Add `BuiltListAsyncDeserializer`. It provides a way to deserialize large
2618
responses without blocking, provided the top level serialized type is
2719
`BuiltList`.
20+
- Add built in serializer for `Uri`.
21+
22+
Improvements:
23+
24+
- Allow declaration of multiple `Serializers` in the same file.
25+
- Explicitly disallow private fields; fail with an error during generation if
26+
one is found.
27+
- Improve error message for field without type.
28+
29+
Fixes:
30+
31+
- Fix generated builder when fields hold function types.
32+
- Fix checks and generated builder when manually maintained builder has
33+
generics.
34+
- Fix name of classes generated from a private class.
35+
- Fix builder and serializer generation when importing with a prefix.
2836

2937
## 4.4.1
3038

benchmark/pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: benchmark
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Benchmark, not for publishing.
55
authors:
@@ -12,16 +12,12 @@ environment:
1212
dependencies:
1313
browser: any
1414
built_collection: ^2.0.0
15-
# built_value: ^4.4.1
16-
built_value:
17-
path: ../built_value
15+
built_value: ^4.5.0
1816

1917
dev_dependencies:
2018
build: ^0.11.1
2119
build_runner: ^0.6.0
22-
# built_value_generator: ^4.4.1
23-
built_value_generator:
24-
path: ../built_value_generator
20+
built_value_generator: ^4.5.0
2521
source_gen: ^0.7.0
2622
quiver: '>=0.21.0 <0.26.0'
2723
test: any

built_value/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: built_value
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Value types with builders, Dart classes as enums, and serialization.
55
This library is the runtime dependency.

built_value_generator/pubspec.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: built_value_generator
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Value types with builders, Dart classes as enums, and serialization.
55
This library is the dev dependency.
@@ -14,9 +14,7 @@ dependencies:
1414
analyzer: '>=0.29.0 <0.31.0'
1515
build: ^0.11.1
1616
built_collection: ^2.0.0
17-
# built_value: ^4.4.1
18-
built_value:
19-
path: ../built_value
17+
built_value: ^4.5.0
2018
source_gen: ^0.7.0
2119
quiver: '>=0.21.0 <0.27.0'
2220

built_value_test/pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: built_value_test
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Value types with builders, Dart classes as enums, and serialization.
55
This library provides test support.
@@ -11,9 +11,7 @@ environment:
1111
sdk: '>=1.8.0 <2.0.0'
1212

1313
dependencies:
14-
# built_value: ^4.4.1
15-
built_value:
16-
path: ../built_value
14+
built_value: ^4.5.0
1715
built_collection: ^2.0.0
1816
collection: ^1.0.0
1917
quiver: '>=0.21.0 <0.27.0'
@@ -22,7 +20,5 @@ dependencies:
2220
dev_dependencies:
2321
build: ^0.11.1
2422
build_runner: ^0.6.0
25-
# built_value_generator: ^4.4.1
26-
built_value_generator:
27-
path: ../built_value_generator
23+
built_value_generator: ^4.5.0
2824
source_gen: ^0.7.0

chat_example/pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: chat_example
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Just an example, not for publishing.
55
authors:
@@ -12,9 +12,7 @@ environment:
1212
dependencies:
1313
browser: ^0.10.0
1414
built_collection: ^2.0.0
15-
# built_value: ^4.4.1
16-
built_value:
17-
path: ../built_value
15+
built_value: ^4.5.0
1816
shelf: ^0.6.0
1917
shelf_proxy: ^0.1.0
2018
shelf_web_socket: ^0.2.1
@@ -23,8 +21,6 @@ dependencies:
2321
dev_dependencies:
2422
build: ^0.11.1
2523
build_runner: ^0.6.0
26-
# built_value_generator: ^4.4.1
27-
built_value_generator:
28-
path: ../built_value_generator
24+
built_value_generator: ^4.5.0
2925
source_gen: ^0.7.0
3026
test: any

end_to_end_test/pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: end_to_end_test
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Tests, not for publishing.
55
authors:
@@ -11,16 +11,12 @@ environment:
1111

1212
dependencies:
1313
built_collection: ^2.0.0
14-
# built_value: ^4.4.1
15-
built_value:
16-
path: ../built_value
14+
built_value: ^4.5.0
1715

1816
dev_dependencies:
1917
build: ^0.11.1
2018
build_runner: ^0.6.0
21-
# built_value_generator: ^4.4.1
22-
built_value_generator:
23-
path: ../built_value_generator
19+
built_value_generator: ^4.5.0
2420
fixnum: ^0.10.0
2521
source_gen: ^0.7.0
2622
quiver: '>=0.21.0 <0.26.0'

example/pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: example
2-
version: 4.4.1
2+
version: 4.5.0
33
description: >
44
Just an example, not for publishing.
55
authors:
@@ -12,16 +12,12 @@ environment:
1212
dependencies:
1313
meta: ^1.0.4
1414
built_collection: ^2.0.0
15-
# built_value: ^4.4.1
16-
built_value:
17-
path: ../built_value
15+
built_value: ^4.5.0
1816

1917
dev_dependencies:
2018
build: ^0.11.1
2119
build_runner: ^0.6.0
22-
# built_value_generator: ^4.4.1
23-
built_value_generator:
24-
path: ../built_value_generator
20+
built_value_generator: ^4.5.0
2521
source_gen: ^0.7.0
2622
quiver: '>=0.21.0 <0.26.0'
2723
test: any

0 commit comments

Comments
 (0)