File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
* ** BREAKING** Removed the deprecated ` generators.dart ` library.
7
7
8
+ * ** BREAKING** Removed ` package:json_serializable/builder.dart ` .
9
+ * The builder factory is now exposed in ` json_serializable.dart ` with the name
10
+ ` createBuilderForJsonSerializable ` .
11
+
8
12
* Support the latest ` package:source_gen ` .
9
13
10
14
* Private and ignored fields are now excluded when generating serialization and
Original file line number Diff line number Diff line change 2
2
builders :
3
3
json_serializable :
4
4
target : " :json_serializable"
5
- import : " package:json_serializable/builder .dart"
6
- builder_factories : ["jsonSerializable "]
5
+ import : " package:json_serializable/json_serializable .dart"
6
+ builder_factories : ["createBuilderForJsonSerializable "]
7
7
build_extensions : {".dart": [".g.dart"]}
8
8
auto_apply : dependents
9
9
build_to : source
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
+ export 'src/builder.dart' ;
5
6
export 'src/json_literal_generator.dart' ;
6
7
export 'src/json_part_builder.dart' ;
7
8
export 'src/json_serializable_generator.dart' ;
Original file line number Diff line number Diff line change 5
5
import 'package:build/build.dart' ;
6
6
import 'package:logging/logging.dart' ;
7
7
8
- import 'json_serializable .dart' ;
8
+ import 'json_part_builder .dart' ;
9
9
10
10
// TODO: until we can use `log` here - github.com/dart-lang/build/issues/1223
11
11
final _logger = new Logger ('json_serializable' );
12
12
13
13
/// Supports `package:build_runner` creation and configuration of `build_cli` .
14
14
///
15
15
/// Not meant to be invoked by hand-authored code.
16
- Builder jsonSerializable (BuilderOptions options) {
16
+ Builder createBuilderForJsonSerializable (BuilderOptions options) {
17
17
// Paranoid copy of options.config - don't assume it's mutable or needed
18
18
// elsewhere.
19
19
var optionsMap = new Map <String , dynamic >.from (options.config);
You can’t perform that action at this time.
0 commit comments