Skip to content

Commit ea11c3c

Browse files
committed
chore: bump latest deps
1 parent e80b2da commit ea11c3c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ linter:
2323
- literal_only_boolean_expressions
2424
- missing_whitespace_between_adjacent_strings
2525
- no_runtimeType_toString
26-
- package_api_docs
2726
- prefer_const_declarations
2827
- prefer_expression_function_bodies
2928
- prefer_final_locals

dartfn/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ dev_dependencies:
2828
dart_flutter_team_lints: ^3.0.0
2929
glob: ^2.0.0
3030
grinder: ^0.9.0
31-
source_gen: ^1.0.0
31+
source_gen: '>=1.0.0 <3.0.0'
3232
test: ^1.16.6
3333
yaml: ^3.1.0

functions_framework_builder/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 0.4.11-wip
22

3+
- Support the latest versions of `analyzer`, `dart_style` and `source_gen`.
34
- Require Dart 3.5
45

56
## 0.4.10

functions_framework_builder/lib/builder.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ class _FunctionsFrameworkBuilder implements Builder {
4848
Future<void> build(BuildStep buildStep) async {
4949
final entries = <String, FactoryData>{};
5050

51-
final input = buildStep.inputId;
52-
53-
final libraryElement = await buildStep.resolver.libraryFor(input);
51+
final libraryElement = await buildStep.inputLibrary;
5452
final validator = await FunctionTypeValidator.create(buildStep.resolver);
5553

5654
for (var annotatedElement in _fromLibrary(libraryElement)) {
@@ -89,7 +87,7 @@ class _FunctionsFrameworkBuilder implements Builder {
8987

9088
final importDirectives = [
9189
"'package:functions_framework/serve.dart'",
92-
"'${input.uri}' as $functionsLibraryPrefix",
90+
"'${buildStep.inputId.uri}' as $functionsLibraryPrefix",
9391
]..sort();
9492

9593
var output = '''
@@ -122,7 +120,9 @@ ${cases.join('\n')}
122120
''';
123121

124122
try {
125-
output = DartFormatter().format(output);
123+
output = DartFormatter(
124+
languageVersion: libraryElement.languageVersion.effective,
125+
).format(output);
126126
} on FormatterException catch (e, stack) {
127127
log.warning('Could not format output.', e, stack);
128128
}

functions_framework_builder/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ environment:
88
sdk: ^3.5.0
99

1010
dependencies:
11-
analyzer: '>=5.12.0 <7.0.0'
11+
analyzer: '>=6.9.0 <8.0.0'
1212
build: ^2.3.1
1313
build_config: ^1.0.0
1414
collection: ^1.17.0
15-
dart_style: ^2.2.4
15+
dart_style: '>=2.3.7 <4.0.0'
1616
# There is a tight version constraint because the builder has a strict
1717
# dependency on all features exposed.
1818
functions_framework: '>=0.4.0 <0.4.5'
1919
glob: ^2.0.0
2020
meta: ^1.7.0
2121
path: ^1.8.0
2222
shelf: ^1.0.0
23-
source_gen: ^1.2.3
23+
source_gen: '>=1.4.0 <3.0.0'
2424
source_helper: ^1.3.3
2525

2626
dev_dependencies:

0 commit comments

Comments
 (0)