Skip to content

Commit

Permalink
Merge pull request #298 from davidmorgan/release-4-5-0
Browse files Browse the repository at this point in the history
Release 4.5.0
  • Loading branch information
davidmorgan authored Dec 20, 2017
2 parents e80fc5d + 4f80666 commit 584a775
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 50 deletions.
28 changes: 18 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@

## 4.5.0

- Fix generated builder when fields hold function types.
- Fix checks and generated builder when manually maintained builder has
generics.
- Explicitly disallow private fields; fail with an error during generation if
one is found.
- Add built in serializer for `Uri`.
- Allow declaration of multiple `Serializers` in the same file.
- Improve error message for field without type.
- Fix name of classes generated from a private class.
New features:

- Add `serialize` field to `@BuiltValueField`. Use this to tag fields to skip
when serializing.
- Fix builder and serializer generation when importing with a prefix.
- Add `wireName` field to `@BuiltValue` and `@BuiltValueField`. Use this to
override the wire name for classes and fields when serializing.
- Add `@BuiltValueEnum` and `@BuiltValueEnumConst` annotations for specifying
Expand All @@ -25,6 +17,22 @@
- Add `BuiltListAsyncDeserializer`. It provides a way to deserialize large
responses without blocking, provided the top level serialized type is
`BuiltList`.
- Add built in serializer for `Uri`.

Improvements:

- Allow declaration of multiple `Serializers` in the same file.
- Explicitly disallow private fields; fail with an error during generation if
one is found.
- Improve error message for field without type.

Fixes:

- Fix generated builder when fields hold function types.
- Fix checks and generated builder when manually maintained builder has
generics.
- Fix name of classes generated from a private class.
- Fix builder and serializer generation when importing with a prefix.

## 4.4.1

Expand Down
10 changes: 3 additions & 7 deletions benchmark/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: benchmark
version: 4.4.1
version: 4.5.0
description: >
Benchmark, not for publishing.
authors:
Expand All @@ -12,16 +12,12 @@ environment:
dependencies:
browser: any
built_collection: ^2.0.0
# built_value: ^4.4.1
built_value:
path: ../built_value
built_value: ^4.5.0

dev_dependencies:
build: ^0.11.1
build_runner: ^0.6.0
# built_value_generator: ^4.4.1
built_value_generator:
path: ../built_value_generator
built_value_generator: ^4.5.0
source_gen: ^0.7.0
quiver: '>=0.21.0 <0.26.0'
test: any
2 changes: 1 addition & 1 deletion built_value/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: built_value
version: 4.4.1
version: 4.5.0
description: >
Value types with builders, Dart classes as enums, and serialization.
This library is the runtime dependency.
Expand Down
6 changes: 2 additions & 4 deletions built_value_generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: built_value_generator
version: 4.4.1
version: 4.5.0
description: >
Value types with builders, Dart classes as enums, and serialization.
This library is the dev dependency.
Expand All @@ -14,9 +14,7 @@ dependencies:
analyzer: '>=0.29.0 <0.31.0'
build: ^0.11.1
built_collection: ^2.0.0
# built_value: ^4.4.1
built_value:
path: ../built_value
built_value: ^4.5.0
source_gen: ^0.7.0
quiver: '>=0.21.0 <0.27.0'

Expand Down
10 changes: 3 additions & 7 deletions built_value_test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: built_value_test
version: 4.4.1
version: 4.5.0
description: >
Value types with builders, Dart classes as enums, and serialization.
This library provides test support.
Expand All @@ -11,9 +11,7 @@ environment:
sdk: '>=1.8.0 <2.0.0'

dependencies:
# built_value: ^4.4.1
built_value:
path: ../built_value
built_value: ^4.5.0
built_collection: ^2.0.0
collection: ^1.0.0
quiver: '>=0.21.0 <0.27.0'
Expand All @@ -22,7 +20,5 @@ dependencies:
dev_dependencies:
build: ^0.11.1
build_runner: ^0.6.0
# built_value_generator: ^4.4.1
built_value_generator:
path: ../built_value_generator
built_value_generator: ^4.5.0
source_gen: ^0.7.0
10 changes: 3 additions & 7 deletions chat_example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: chat_example
version: 4.4.1
version: 4.5.0
description: >
Just an example, not for publishing.
authors:
Expand All @@ -12,9 +12,7 @@ environment:
dependencies:
browser: ^0.10.0
built_collection: ^2.0.0
# built_value: ^4.4.1
built_value:
path: ../built_value
built_value: ^4.5.0
shelf: ^0.6.0
shelf_proxy: ^0.1.0
shelf_web_socket: ^0.2.1
Expand All @@ -23,8 +21,6 @@ dependencies:
dev_dependencies:
build: ^0.11.1
build_runner: ^0.6.0
# built_value_generator: ^4.4.1
built_value_generator:
path: ../built_value_generator
built_value_generator: ^4.5.0
source_gen: ^0.7.0
test: any
10 changes: 3 additions & 7 deletions end_to_end_test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: end_to_end_test
version: 4.4.1
version: 4.5.0
description: >
Tests, not for publishing.
authors:
Expand All @@ -11,16 +11,12 @@ environment:

dependencies:
built_collection: ^2.0.0
# built_value: ^4.4.1
built_value:
path: ../built_value
built_value: ^4.5.0

dev_dependencies:
build: ^0.11.1
build_runner: ^0.6.0
# built_value_generator: ^4.4.1
built_value_generator:
path: ../built_value_generator
built_value_generator: ^4.5.0
fixnum: ^0.10.0
source_gen: ^0.7.0
quiver: '>=0.21.0 <0.26.0'
Expand Down
10 changes: 3 additions & 7 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: example
version: 4.4.1
version: 4.5.0
description: >
Just an example, not for publishing.
authors:
Expand All @@ -12,16 +12,12 @@ environment:
dependencies:
meta: ^1.0.4
built_collection: ^2.0.0
# built_value: ^4.4.1
built_value:
path: ../built_value
built_value: ^4.5.0

dev_dependencies:
build: ^0.11.1
build_runner: ^0.6.0
# built_value_generator: ^4.4.1
built_value_generator:
path: ../built_value_generator
built_value_generator: ^4.5.0
source_gen: ^0.7.0
quiver: '>=0.21.0 <0.26.0'
test: any

0 comments on commit 584a775

Please sign in to comment.