Skip to content

Commit

Permalink
Release 8.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorgan committed May 3, 2023
1 parent c1fd668 commit b68ebfb
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 74 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Changelog

# 8.4.5
# 8.5.0

- Stop using deprecated analyzer API.
- Add `Uint8ListSerializer`.
- Generate Dart-3-compatible code if needed.
- Stop using deprecated analyzer API.
- Fix codegen for optional fields with `$` in the name.

# 8.4.4

Expand Down
12 changes: 3 additions & 9 deletions benchmark/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: benchmark
version: 8.4.4
version: 8.5.0
publish_to: none
description: >
Benchmark, not for publishing.
Expand All @@ -10,17 +10,11 @@ environment:

dependencies:
built_collection: ^5.0.0
built_value: ^8.4.0
built_value: ^8.5.0

dev_dependencies:
build_runner: '>=1.0.0 <3.0.0'
built_value_generator: ^8.4.4
built_value_generator: ^8.5.0
pedantic: ^1.4.0
quiver: '>=0.21.0 <4.0.0'
test: ^1.0.0

dependency_overrides:
built_value:
path: ../built_value
built_value_generator:
path: ../built_value_generator
4 changes: 2 additions & 2 deletions built_value/lib/serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'package:built_value/src/duration_serializer.dart';
import 'package:built_value/src/int64_serializer.dart';
import 'package:built_value/src/json_object_serializer.dart';
import 'package:built_value/src/num_serializer.dart';
import 'package:built_value/src/uint8list_serializer.dart';
import 'package:built_value/src/uint8_list_serializer.dart';
import 'package:built_value/src/uri_serializer.dart';

import 'src/bool_serializer.dart';
Expand Down Expand Up @@ -73,7 +73,7 @@ abstract class Serializers {
..add(NumSerializer())
..add(RegExpSerializer())
..add(StringSerializer())
..add(UInt8ListSerializer())
..add(Uint8ListSerializer())
..add(UriSerializer())
..addBuilderFactory(const FullType(BuiltList, [FullType.object]),
() => ListBuilder<Object>())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import 'dart:typed_data';
import 'package:built_collection/built_collection.dart';
import 'package:built_value/serializer.dart';

class UInt8ListSerializer implements PrimitiveSerializer<Uint8List> {
class Uint8ListSerializer implements PrimitiveSerializer<Uint8List> {
@override
final String wireName = 'UInt8List';

@override
Object serialize(Serializers serializers, Uint8List uint8list,
{FullType specifiedType = FullType.unspecified}) {
return base64Encode(uint8list).toString();
return base64Encode(uint8list);
}

@override
Uint8List deserialize(Serializers serializers, Object serialized,
{FullType specifiedType = FullType.unspecified}) {
return base64Decode(serialized.toString());
return base64Decode(serialized as String);
}

@override
Expand Down
7 changes: 2 additions & 5 deletions built_value/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: built_value
version: 8.4.4
version: 8.5.0
description: >
Value types with builders, Dart classes as enums, and serialization.
This library is the runtime dependency.
repository: https://github.com/google/built_value.dart/tree/master/built_value
topics:
- built-value

environment:
Expand All @@ -18,7 +19,3 @@ dependencies:
dev_dependencies:
pedantic: ^1.4.0
test: ^1.16.0

dependency_overrides:
built_value_generator:
path: ../built_value_generator
10 changes: 2 additions & 8 deletions built_value_analyzer_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: built_value_analyzer_plugin
version: 8.4.4
version: 8.5.0
description: >
Experimental analyzer plugin for the built_value code generator.
homepage: https://github.com/google/built_value.dart
Expand All @@ -12,15 +12,9 @@ dependencies:
analyzer: '>=0.39.0 <0.40.0'
analyzer_plugin: '>=0.1.0 <0.3.0'
built_value: '>=7.0.0 <7.1.0'
built_value_generator: ^8.4.4
built_value_generator: ^8.5.0

dev_dependencies:
build_test: ^0.10.3
pedantic: ^1.4.0
test: ^1.0.0

dependency_overrides:
built_value:
path: ../built_value
built_value_generator:
path: ../built_value_generator
10 changes: 3 additions & 7 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: 8.4.4
version: 8.5.0
description: >
Value types with builders, Dart classes as enums, and serialization.
This library is the dev dependency.
Expand All @@ -8,7 +8,7 @@ topics:
- built-value
- codegen
- build-runner

environment:
sdk: '>=2.14.0 <3.0.0'

Expand All @@ -17,7 +17,7 @@ dependencies:
build: '>=1.0.0 <3.0.0'
build_config: '>=0.3.1 <2.0.0'
built_collection: ^5.0.0
built_value: '>=8.1.0 <8.5.0'
built_value: '>=8.1.0 <8.6.0'
collection: ^1.15.0
source_gen: '>=0.9.0 <2.0.0'

Expand All @@ -26,7 +26,3 @@ dev_dependencies:
build_runner: '>=1.0.0 <3.0.0'
pedantic: ^1.4.0
test: ^1.0.0

dependency_overrides:
built_value:
path: ../built_value
6 changes: 3 additions & 3 deletions built_value_generator/tools/analyzer_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: built_value_analyzer_plugin_loader
version: 8.4.4
version: 8.5.0
description: This pubspec determines the version of the analyzer plugin to load.
environment:
sdk: '>=2.14.0 <3.0.0'
dependencies:
built_value_analyzer_plugin: ^8.4.4
built_value_generator: ^8.4.4
built_value_analyzer_plugin: ^8.5.0
built_value_generator: ^8.5.0
12 changes: 3 additions & 9 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: 8.4.4
version: 8.5.0
description: >
Value types with builders, Dart classes as enums, and serialization.
This library provides test support.
Expand All @@ -14,20 +14,14 @@ environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
built_value: ^8.4.0
built_value: ^8.5.0
built_collection: ^5.0.0
collection: ^1.0.0
matcher: ^0.12.0
quiver: '>=0.21.0 <4.0.0'

dev_dependencies:
built_value_generator: ^8.4.4
built_value_generator: ^8.5.0
build_runner: '>=1.0.0 <3.0.0'
pedantic: ^1.4.0
test: ^1.0.0

dependency_overrides:
built_value:
path: ../built_value
built_value_generator:
path: ../built_value_generator
12 changes: 3 additions & 9 deletions chat_example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: chat_example
version: 8.4.4
version: 8.5.0
publish_to: none
description: >
Just an example, not for publishing.
Expand All @@ -10,7 +10,7 @@ environment:

dependencies:
built_collection: ^5.0.0
built_value: ^8.4.0
built_value: ^8.5.0
shelf: ^1.0.0
shelf_proxy: ^1.0.0
shelf_web_socket: ^1.0.0
Expand All @@ -20,12 +20,6 @@ dev_dependencies:
build_runner: any
build_test: any
build_web_compilers: any
built_value_generator: ^8.4.4
built_value_generator: ^8.5.0
pedantic: ^1.4.0
test: ^1.0.0

dependency_overrides:
built_value:
path: ../built_value
built_value_generator:
path: ../built_value_generator
12 changes: 3 additions & 9 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: 8.4.4
version: 8.5.0
publish_to: none
description: >
Tests, not for publishing.
Expand All @@ -10,19 +10,13 @@ environment:

dependencies:
built_collection: ^5.0.0
built_value: ^8.4.0
built_value: ^8.5.0

dev_dependencies:
build: '>=1.0.0 <3.0.0'
build_runner: '>=1.0.0 <3.0.0'
built_value_generator: ^8.4.4
built_value_generator: ^8.5.0
fixnum: ^1.0.0
pedantic: ^1.4.0
quiver: '>=0.21.0 <4.0.0'
test: ^1.16.0

dependency_overrides:
built_value:
path: ../built_value
built_value_generator:
path: ../built_value_generator
10 changes: 2 additions & 8 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ environment:

dependencies:
built_collection: ^5.0.0
built_value: ^8.4.0
built_value: ^8.5.0

dev_dependencies:
build_runner: '>=1.0.0 <3.0.0'
built_value_generator: ^8.4.4
built_value_generator: ^8.5.0
pedantic: ^1.4.0
quiver: '>=0.21.0 <4.0.0'
test: ^1.0.0

dependency_overrides:
built_value:
path: ../built_value
built_value_generator:
path: ../built_value_generator

0 comments on commit b68ebfb

Please sign in to comment.