Skip to content

Commit fbc7d37

Browse files
committed
Remove jsonPartBuilder function from public API
1 parent bcbeefa commit fbc7d37

File tree

5 files changed

+4
-21
lines changed

5 files changed

+4
-21
lines changed

json_serializable/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
* **BREAKING** Removed the deprecated `generators.dart` library.
77

8+
* **BREAKING** Removed `jsonPartBuilder` function from public API.
9+
810
* Support the latest `package:source_gen`.
911

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

json_serializable/lib/builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'package:build/build.dart';
66
import 'package:logging/logging.dart';
77

8-
import 'json_serializable.dart';
8+
import 'src/json_part_builder.dart';
99

1010
// TODO: until we can use `log` here - github.com/dart-lang/build/issues/1223
1111
final _logger = new Logger('json_serializable');

json_serializable/lib/json_serializable.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
export 'src/json_literal_generator.dart';
6-
export 'src/json_part_builder.dart';
76
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)