Skip to content

Commit def2a2a

Browse files
authored
feat: bump dart_frog_gen on bricks (#845)
1 parent a694d08 commit def2a2a

File tree

7 files changed

+42
-5
lines changed

7 files changed

+42
-5
lines changed

bricks/create_dart_frog/__brick__/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
sdk: ">=3.0.0 <4.0.0"
88

99
dependencies:
10-
dart_frog: ^0.3.0
10+
dart_frog: ^1.0.0
1111

1212
dev_dependencies:
1313
mocktail: ^0.3.0

bricks/dart_frog_dev_server/hooks/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ environment:
55
sdk: ">=3.0.0 <4.0.0"
66

77
dependencies:
8-
dart_frog_gen: ^0.4.0
8+
dart_frog_gen: ^1.0.0
99
mason: ^0.1.0-dev.39
1010
pubspec_parse: ^1.2.0
1111

bricks/dart_frog_dev_server/hooks/test/pre_gen_test.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void main() {
7373
path: 'index.dart',
7474
route: '/',
7575
params: [],
76+
wildcard: false,
7677
),
7778
],
7879
'/hello': [
@@ -81,12 +82,14 @@ void main() {
8182
path: 'hello.dart',
8283
route: '/hello',
8384
params: [],
85+
wildcard: false,
8486
),
8587
RouteFile(
8688
name: 'hello_index',
8789
path: 'hello/index.dart',
8890
route: '/',
8991
params: [],
92+
wildcard: false,
9093
)
9194
]
9295
},
@@ -118,6 +121,7 @@ void main() {
118121
path: 'hello.dart',
119122
route: '/hello',
120123
params: [],
124+
wildcard: false,
121125
),
122126
],
123127
endpoints: {},
@@ -310,12 +314,14 @@ dev_dependencies:
310314
path: 'index.dart',
311315
route: '/',
312316
params: [],
317+
wildcard: false,
313318
),
314319
RouteFile(
315320
name: 'hello',
316321
path: 'hello.dart',
317322
route: '/hello',
318323
params: [],
324+
wildcard: false,
319325
),
320326
],
321327
params: [],
@@ -327,12 +333,14 @@ dev_dependencies:
327333
path: 'index.dart',
328334
route: '/',
329335
params: [],
336+
wildcard: false,
330337
),
331338
RouteFile(
332339
name: 'hello',
333340
path: 'hello.dart',
334341
route: '/hello',
335342
params: [],
343+
wildcard: false,
336344
),
337345
],
338346
endpoints: {
@@ -342,6 +350,7 @@ dev_dependencies:
342350
path: 'index.dart',
343351
route: '/',
344352
params: [],
353+
wildcard: false,
345354
),
346355
],
347356
'/hello': [
@@ -350,6 +359,7 @@ dev_dependencies:
350359
path: 'hello.dart',
351360
route: '/hello',
352361
params: [],
362+
wildcard: false,
353363
),
354364
]
355365
},
@@ -379,12 +389,14 @@ dev_dependencies:
379389
'path': 'index.dart',
380390
'route': '/',
381391
'file_params': <String>[],
392+
'wildcard': false,
382393
},
383394
{
384395
'name': 'hello',
385396
'path': 'hello.dart',
386397
'route': '/hello',
387398
'file_params': <String>[],
399+
'wildcard': false,
388400
}
389401
],
390402
'directory_params': <String>[],
@@ -396,12 +408,14 @@ dev_dependencies:
396408
'path': 'index.dart',
397409
'route': '/',
398410
'file_params': const <String>[],
411+
'wildcard': false,
399412
},
400413
{
401414
'name': 'hello',
402415
'path': 'hello.dart',
403416
'route': '/hello',
404417
'file_params': const <String>[],
418+
'wildcard': false,
405419
}
406420
],
407421
'middleware': [

bricks/dart_frog_new/hooks/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ environment:
55
sdk: ">=3.0.0 <4.0.0"
66

77
dependencies:
8-
dart_frog_gen: ^0.4.0
8+
dart_frog_gen: ^1.0.0
99
mason: ^0.1.0-dev.49
1010
path: ^1.8.0
1111

bricks/dart_frog_new/hooks/test/pre_gen_test.dart

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,21 @@ const validRouteConfiguration = RouteConfiguration(
7373
path: '../routes/index.dart',
7474
route: '/',
7575
params: [],
76+
wildcard: false,
7677
),
7778
RouteFile(
7879
name: r'$id_existing_as_file',
7980
path: '../routes/[id]/existing_as_file.dart',
8081
route: '/existing_as_file',
8182
params: [],
83+
wildcard: false,
8284
),
8385
RouteFile(
8486
name: r'$id_existing_as_dir_index',
8587
path: '../routes/[id]/existing_as_dir/index.dart',
8688
route: '/',
8789
params: [],
90+
wildcard: false,
8891
)
8992
],
9093
endpoints: {
@@ -94,6 +97,7 @@ const validRouteConfiguration = RouteConfiguration(
9497
path: '../routes/index.dart',
9598
route: '/',
9699
params: [],
100+
wildcard: false,
97101
)
98102
],
99103
'/<id>/existing_as_file': <RouteFile>[
@@ -102,6 +106,7 @@ const validRouteConfiguration = RouteConfiguration(
102106
path: '../routes/[id]/existing_as_file.dart',
103107
route: '/existing_as_file',
104108
params: [],
109+
wildcard: false,
105110
)
106111
],
107112
'/<id>/existing_as_dir': <RouteFile>[
@@ -110,6 +115,7 @@ const validRouteConfiguration = RouteConfiguration(
110115
path: '../routes/[id]/existing_as_dir/index.dart',
111116
route: '/',
112117
params: [],
118+
wildcard: false,
113119
)
114120
],
115121
},
@@ -130,7 +136,12 @@ void main() {
130136
test('preGen completes', () {
131137
expect(
132138
ExitOverrides.runZoned(
133-
() async => preGen(_FakeHookContext()),
139+
() async => preGen(
140+
_FakeHookContext(),
141+
buildConfiguration: (_) {
142+
throw Exception('oops');
143+
},
144+
),
134145
exit: (_) {},
135146
),
136147
completes,
@@ -158,6 +169,7 @@ void main() {
158169
path: 'hello.dart',
159170
route: '/hello',
160171
params: [],
172+
wildcard: false,
161173
),
162174
],
163175
);

bricks/dart_frog_new/hooks/test/src/route_configuration_utils_test.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ void main() {
2525
path: 'hello.dart',
2626
route: '/hello',
2727
params: [],
28+
wildcard: false,
2829
),
2930
],
3031
);
@@ -49,6 +50,7 @@ void main() {
4950
path: 'index.dart',
5051
route: '/',
5152
params: [],
53+
wildcard: false,
5254
),
5355
],
5456
'/hello': const [
@@ -57,12 +59,14 @@ void main() {
5759
path: 'hello.dart',
5860
route: '/hello',
5961
params: [],
62+
wildcard: false,
6063
),
6164
RouteFile(
6265
name: 'hello_index',
6366
path: 'hello/index.dart',
6467
route: '/',
6568
params: [],
69+
wildcard: false,
6670
)
6771
]
6872
});
@@ -91,6 +95,7 @@ void main() {
9195
path: '../routes/index.dart',
9296
route: '/',
9397
params: [],
98+
wildcard: false,
9499
)
95100
],
96101
'/<id>': const <RouteFile>[
@@ -99,6 +104,7 @@ void main() {
99104
path: '../routes/[id]/index.dart',
100105
route: '/',
101106
params: [],
107+
wildcard: false,
102108
)
103109
],
104110
'/<id>/existing_as_file': const <RouteFile>[
@@ -107,6 +113,7 @@ void main() {
107113
path: '../routes/[id]/existing_as_file.dart',
108114
route: '/existing_as_file',
109115
params: [],
116+
wildcard: false,
110117
)
111118
],
112119
'/<id>/existing_as_dir': const <RouteFile>[
@@ -115,6 +122,7 @@ void main() {
115122
path: '../routes/[id]/existing_as_dir/index.dart',
116123
route: '/',
117124
params: [],
125+
wildcard: false,
118126
)
119127
],
120128
});
@@ -147,6 +155,7 @@ void main() {
147155
path: '../routes/[id]/existing_as_file.dart',
148156
route: '/existing_as_file',
149157
params: [],
158+
wildcard: false,
150159
),
151160
);
152161
});
@@ -192,6 +201,7 @@ void main() {
192201
path: '../routes/[id]/existing_as_file.dart',
193202
route: '/existing_as_file',
194203
params: [],
204+
wildcard: false,
195205
),
196206
);
197207
});
@@ -209,6 +219,7 @@ void main() {
209219
path: '../routes/[id]/existing_as_file.dart',
210220
route: '/existing_as_file',
211221
params: [],
222+
wildcard: false,
212223
),
213224
);
214225
});

bricks/dart_frog_prod_server/hooks/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ environment:
55
sdk: ">=3.0.0 <4.0.0"
66

77
dependencies:
8-
dart_frog_gen: ^0.4.0
8+
dart_frog_gen: ^1.0.0
99
io: ^1.0.3
1010
mason: ^0.1.0-dev.39
1111
path: ^1.8.1

0 commit comments

Comments
 (0)