Skip to content

Commit

Permalink
chore: 4.0.0 migration instructions (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon authored Jan 11, 2024
1 parent c7ac14f commit e3562d5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ now:
name: my_project_workspace

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
```
The corresponding `pubspec.lock` file should also be committed. Make sure to
Expand Down
10 changes: 9 additions & 1 deletion docs/guides/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ description: How to migrate between major versions of Melos.

# Migrations

## 3.0.0 to 4.0.0

### `--no-git-tag-version` behavior change

If you were previously using `--no-git-tag-version` and were relying on that it
didn't create a commit you now have to also pass `--no-git-commit-version` to
prevent a commit from being automatically created after versioning.

## 2.0.0 to 3.0.0

### Versioning of Melos in workspaces
Expand All @@ -27,7 +35,7 @@ now:
name: my_project_workspace

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
```
The corresponding `pubspec.lock` file should also be committed. Make sure to
Expand Down
2 changes: 1 addition & 1 deletion packages/melos/test/test_assets/add_to_app_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "An example add to app module.",
"version": "1.0.0+1",
"environment": {
"sdk": ">=2.18.0 <3.0.0",
"sdk": ">=3.0.0 <4.0.0",
"flutter": ">=2.0.0 <=3.0.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/melos/test/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Future<Directory> createProject(
? partialPubSpec
: partialPubSpec.copy(
environment: Environment.fromJson(<Object?, Object?>{
'sdk': '>=2.18.0 <3.0.0',
'sdk': '>=3.0.0 <4.0.0',
}),
);

Expand Down
2 changes: 1 addition & 1 deletion packages/melos_flutter_deps_check/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
Package to test that Melos can be installed alongside Flutter dependencies.

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
flutter:
Expand Down

0 comments on commit e3562d5

Please sign in to comment.