Skip to content

Commit abd65b3

Browse files
committed
upgrade melos
1 parent 524fc9f commit abd65b3

File tree

36 files changed

+813
-628
lines changed

36 files changed

+813
-628
lines changed

builders/json_serializable_fic/example/main.g.dart

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builders/json_serializable_fic/lib/builder.dart

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,16 @@ Builder jsonSerializable(BuilderOptions options) {
1414
try {
1515
final config = JsonSerializable.fromJson(options.config);
1616
return SharedPartBuilder([
17-
JsonSerializableGenerator.withDefaultHelpers(
18-
[
19-
FICIListTypeHelper(),
20-
FICISetTypeHelper(),
21-
FICIMapTypeHelper(),
22-
],
23-
config: config,
24-
),
25-
const JsonLiteralGenerator()
17+
JsonSerializableGenerator.withDefaultHelpers([
18+
FICIListTypeHelper(),
19+
FICISetTypeHelper(),
20+
FICIMapTypeHelper(),
21+
], config: config),
22+
const JsonLiteralGenerator(),
2623
], 'json_serializable');
2724
} on CheckedFromJsonException catch (e) {
2825
final lines = <String>[
29-
'Could not parse the options provided for `json_serializable`.'
26+
'Could not parse the options provided for `json_serializable`.',
3027
];
3128

3229
if (e.key != null) {

builders/json_serializable_fic/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version: 1.1.2
44
homepage: https://github.com/knaeckeKami/immutable_json_list_serializer
55

66
environment:
7-
sdk: ">=3.0.0 <4.0.0"
7+
sdk: ">=3.9.0 <4.0.0"
8+
9+
resolution: workspace
810

911
dev_dependencies:
1012
test: ^1.16.8

builders/json_serializable_fic/test/integration/model.dart

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ part 'model.g.dart';
66

77
@JsonSerializable()
88
class MyModel {
9-
const MyModel(
10-
{required this.myList,
11-
required this.builtMapString,
12-
required this.myString,
13-
required this.dynamicMap,
14-
required this.myNested,
15-
required this.normalList,
16-
required this.builtMap,
17-
required this.builtMapNested,
18-
required this.nullList,
19-
required this.nullMap,
20-
required this.nullSet,
21-
required this.normalSet,
22-
required this.nullablelistWithNullable,
23-
required this.listWithNullable,
24-
required this.nullableMap,
25-
required this.nullableSet,
26-
required this.enumMap});
9+
const MyModel({
10+
required this.myList,
11+
required this.builtMapString,
12+
required this.myString,
13+
required this.dynamicMap,
14+
required this.myNested,
15+
required this.normalList,
16+
required this.builtMap,
17+
required this.builtMapNested,
18+
required this.nullList,
19+
required this.nullMap,
20+
required this.nullSet,
21+
required this.normalSet,
22+
required this.nullablelistWithNullable,
23+
required this.listWithNullable,
24+
required this.nullableMap,
25+
required this.nullableSet,
26+
required this.enumMap,
27+
});
2728

2829
final IList<int> myList;
2930

@@ -131,8 +132,4 @@ class Nested {
131132
int get hashCode => a.hashCode;
132133
}
133134

134-
enum MyEnum {
135-
one,
136-
two,
137-
three,
138-
}
135+
enum MyEnum { one, two, three }

builders/json_serializable_fic/test/integration/model.g.dart

Lines changed: 77 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builders/json_serializable_fic/test/integration/model_test.dart

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ final model = MyModel(
1717
nullList: null,
1818
nullSet: null,
1919
nullMap: null,
20-
dynamicMap: {
21-
"a": 1,
22-
"b": "string",
23-
}.toIMap(),
20+
dynamicMap: {"a": 1, "b": "string"}.toIMap(),
2421
listWithNullable: ["1", null].toIList(),
2522
nullablelistWithNullable: ["1", null].toIList(),
2623
nullableMap: {"a": null}.toIMap(),
2724
nullableSet: {"", null}.toISet(),
28-
enumMap: IMap<MyEnum, String>({
29-
MyEnum.one: "1",
30-
MyEnum.two: "2",
31-
}),
25+
enumMap: IMap<MyEnum, String>({MyEnum.one: "1", MyEnum.two: "2"}),
3226
);
3327

3428
const jsonMapExpected = {
@@ -39,18 +33,15 @@ const jsonMapExpected = {
3933
"builtMap": {"1": "a", "2": "b"},
4034
"builtMapString": {"a": "a"},
4135
"builtMapNested": {
42-
"1": {"a": 1}
36+
"1": {"a": 1},
4337
},
4438
"myNested": [
45-
{"a": 1}
39+
{"a": 1},
4640
],
4741
"nullList": null,
4842
"nullSet": null,
4943
"nullMap": null,
50-
"dynamicMap": {
51-
"a": 1,
52-
"b": "string",
53-
},
44+
"dynamicMap": {"a": 1, "b": "string"},
5445
"listWithNullable": ["1", null],
5546
"nullablelistWithNullable": ["1", null],
5647
"nullableMap": {"a": null},

builders/json_serializable_immutable_collections/example/main.g.dart

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builders/json_serializable_immutable_collections/lib/builder.dart

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,19 @@ Builder jsonSerializable(BuilderOptions options) {
1313
try {
1414
final config = JsonSerializable.fromJson(options.config);
1515
return SharedPartBuilder([
16-
JsonSerializableGenerator.withDefaultHelpers(
17-
[
18-
BuiltListTypeHelper(),
19-
BuiltSetTypeHelper(),
20-
BuiltMapTypeHelper(),
21-
KtListTypeHelper(),
22-
KtSetTypeHelper(),
23-
KtMapTypeHelper()
24-
],
25-
config: config,
26-
),
27-
const JsonLiteralGenerator()
16+
JsonSerializableGenerator.withDefaultHelpers([
17+
BuiltListTypeHelper(),
18+
BuiltSetTypeHelper(),
19+
BuiltMapTypeHelper(),
20+
KtListTypeHelper(),
21+
KtSetTypeHelper(),
22+
KtMapTypeHelper(),
23+
], config: config),
24+
const JsonLiteralGenerator(),
2825
], 'json_serializable');
2926
} on CheckedFromJsonException catch (e) {
3027
final lines = <String>[
31-
'Could not parse the options provided for `json_serializable`.'
28+
'Could not parse the options provided for `json_serializable`.',
3229
];
3330

3431
if (e.key != null) {

builders/json_serializable_immutable_collections/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version: 1.1.2
44
homepage: https://github.com/knaeckeKami/immutable_json_list_serializer
55

66
environment:
7-
sdk: ">=3.0.0 <4.0.0"
7+
sdk: ">=3.9.0 <4.0.0"
8+
9+
resolution: workspace
810

911
dev_dependencies:
1012
test: ^1.16.8

0 commit comments

Comments
 (0)