Skip to content

Commit 8f3a730

Browse files
committed
Remove jsonPartBuilder function from public API
1 parent 6a9a80b commit 8f3a730

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

json_serializable/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* The builder factory is now exposed in `json_serializable.dart` with the name
1010
`createBuilderForJsonSerializable`.
1111

12+
* **BREAKING** Removed `jsonPartBuilder` function from public API.
13+
1214
* Support the latest `package:source_gen`.
1315

1416
* Private and ignored fields are now excluded when generating serialization and

json_serializable/lib/json_serializable.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
export 'src/builder.dart';
66
export 'src/json_literal_generator.dart';
7-
export 'src/json_part_builder.dart';
87
export 'src/json_serializable_generator.dart';

json_serializable/lib/src/json_part_builder.dart

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// https://github.com/dart-lang/sdk/issues/31761
6-
// ignore_for_file: comment_references
7-
85
import 'package:build/build.dart';
96
import 'package:source_gen/source_gen.dart';
107

@@ -22,21 +19,6 @@ import 'json_serializable_generator.dart';
2219
/// [Map] and [List] instances created during serialization. This will
2320
/// increase the code size, but it may improve runtime performance, especially
2421
/// for large object graphs.
25-
///
26-
/// Usage:
27-
///
28-
/// ```dart
29-
/// new BuildAction(
30-
/// jsonPartBuilder(),
31-
/// 'my_package',
32-
/// inputs: const ['lib/*.dart']
33-
/// )
34-
/// ```
35-
///
36-
/// See the [example] to understand how to configure your project for
37-
/// `json_serializable`.
38-
///
39-
/// [example]: https://github.com/dart-lang/json_serializable/tree/master/example
4022
Builder jsonPartBuilder({String header, bool useWrappers: false}) {
4123
useWrappers ??= false;
4224
return new PartBuilder([

json_serializable/tool/build.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:async';
88
import 'package:build/build.dart';
99
import 'package:build_config/build_config.dart';
1010
import 'package:build_runner/build_runner.dart';
11-
import 'package:json_serializable/json_serializable.dart';
11+
import 'package:json_serializable/src/json_part_builder.dart';
1212
import 'package:path/path.dart' as p;
1313
import 'package:source_gen/source_gen.dart';
1414

0 commit comments

Comments
 (0)