Skip to content

Commit 4cac869

Browse files
authored
chore: Bump dependencies (#813)
<!-- Thanks for contributing! Provide a description of your changes below and a general summary in the title Please look at the following checklist to ensure that your PR can be accepted quickly: --> ## Description Bumping the dependencies, `pubspec_parse` in specific, so that `environment` isn't nullable anymore. ## Type of Change <!--- Put an `x` in all the boxes that apply: --> - [ ] ✨ `feat` -- New feature (non-breaking change which adds functionality) - [ ] 🛠️ `fix` -- Bug fix (non-breaking change which fixes an issue) - [ ] ❌ `!` -- Breaking change (fix or feature that would cause existing functionality to change) - [ ] 🧹 `refactor` -- Code refactor - [ ] ✅ `ci` -- Build configuration change - [ ] 📝 `docs` -- Documentation - [x] 🗑️ `chore` -- Chore
1 parent db82281 commit 4cac869

File tree

7 files changed

+16
-18
lines changed

7 files changed

+16
-18
lines changed

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v3
3232
- uses: dart-lang/setup-dart@v1
3333
with:
34-
sdk: 3.0.0 # Update when min sdk supported version of `melos` package changes.
34+
sdk: 3.2.0 # Update when min sdk supported version of `melos` package changes.
3535
- name: Run Melos
3636
run: ./.github/workflows/scripts/install-tools.sh
3737

melos.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ categories:
1111
command:
1212
bootstrap:
1313
environment:
14-
sdk: ">=3.0.0 <4.0.0"
14+
sdk: ">=3.2.0 <4.0.0"
1515
dependencies:
1616
ansi_styles: ^0.3.2+1
1717
args: ^2.4.2
@@ -31,12 +31,11 @@ command:
3131
prompts: ^2.0.0
3232
pub_semver: ^2.1.4
3333
pub_updater: ^0.4.0
34-
pubspec_parse: ^1.3.0
34+
pubspec_parse: ^1.4.0
3535
string_scanner: ^1.2.0
3636
yaml: ^3.1.2
3737
yaml_edit: ^2.1.1
3838
dev_dependencies:
39-
collection: ^1.18.0
4039
mockito: ^5.4.2
4140
test: ^1.24.9
4241
path: ^1.9.0
@@ -79,3 +78,5 @@ scripts:
7978
activate:pub:
8079
description: Activate the published version of melos.
8180
run: dart pub global activate melos --overwrite
81+
82+
upgrade: melos exec flutter pub upgrade

packages/conventional_commit/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ repository: https://github.com/invertase/melos/tree/main/packages/conventional_c
66
issue_tracker: https://github.com/invertase/melos/issues
77

88
environment:
9-
sdk: ">=3.0.0 <4.0.0"
9+
sdk: ">=3.2.0 <4.0.0"
1010

1111
dev_dependencies:
12-
collection: ^1.18.0
1312
test: ^1.24.9

packages/conventional_commit/test/conventional_commit_test.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:collection/collection.dart';
21
import 'package:conventional_commit/conventional_commit.dart';
32
import 'package:test/test.dart';
43

@@ -413,9 +412,9 @@ void main() {
413412
);
414413
// Footers should exclude the breaking change footer.
415414
expect(
416-
commitWithBodyParsed.footers.firstWhereOrNull(
417-
(element) => element.contains('BREAKING'),
418-
),
415+
commitWithBodyParsed.footers
416+
.where((element) => element.contains('BREAKING'))
417+
.firstOrNull,
419418
isNull,
420419
);
421420
expect(
@@ -432,9 +431,9 @@ void main() {
432431
ConventionalCommit.tryParse(commitMessageWithoutBodyExample)!;
433432
// Header should not leak into footers.
434433
expect(
435-
commitWithoutBodyParsed.footers.firstWhereOrNull(
436-
(element) => element.contains('refactor: did something'),
437-
),
434+
commitWithoutBodyParsed.footers
435+
.where((element) => element.contains('refactor: did something'))
436+
.firstOrNull,
438437
isNull,
439438
);
440439
expect(

packages/melos/lib/src/command_configs/bootstrap.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ class BootstrapCommandConfigs {
7676
? LifecycleHooks.fromYaml(hooksMap, workspacePath: workspacePath)
7777
: LifecycleHooks.empty;
7878

79-
// ignore: dead_null_aware_expression
80-
final environment = bootstrapConstraints.environment ?? {};
79+
final environment = bootstrapConstraints.environment;
8180
final dependencies = bootstrapConstraints.dependencies;
8281
final devDependencies = bootstrapConstraints.devDependencies;
8382

packages/melos/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ topics:
1616
- lerna
1717

1818
environment:
19-
sdk: ">=3.0.0 <4.0.0"
19+
sdk: ">=3.2.0 <4.0.0"
2020

2121
executables:
2222
melos:
@@ -42,7 +42,7 @@ dependencies:
4242
prompts: ^2.0.0
4343
pub_semver: ^2.1.4
4444
pub_updater: ^0.4.0
45-
pubspec_parse: ^1.3.0
45+
pubspec_parse: ^1.4.0
4646
string_scanner: ^1.2.0
4747
yaml: ^3.1.2
4848
yaml_edit: ^2.1.1

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: melos_workspace
22

33
environment:
4-
sdk: ">=3.0.0 <4.0.0"
4+
sdk: ">=3.2.0 <4.0.0"
55

66
# This allows us to use melos on itself during development.
77
executables:

0 commit comments

Comments
 (0)