Skip to content

Commit

Permalink
fix dep overrides issue (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Dec 4, 2024
1 parent 658e0d2 commit 0bb8da7
Show file tree
Hide file tree
Showing 7 changed files with 947 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.1

- Fix issue when package has dependency overrides.

## 4.0.0

- Support (Dart 3.6) workspaces.
Expand Down
3 changes: 2 additions & 1 deletion lib/src/deps_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ const _identifierRegExp = r'[a-zA-Z_]\w*';
/// when publishing a package to pub.dev.
const _pkgName = '$_identifierRegExp(?:\\.$_identifierRegExp)*';

final _sectionHeaderLine = RegExp(r'(dependencies|dev dependencies):\n');
final _sectionHeaderLine =
RegExp(r'(dependencies|dev dependencies|dependency overrides):\n');
final _transitiveDepsHeaderLine = RegExp(r'(transitive dependencies):\n');
final _packageLine = RegExp('($_pkgName) (\\d.+)\n');
final _usageLine = RegExp('- ($_pkgName) (.+)\n');
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pubviz
version: 4.0.0
version: 4.0.1
description: >-
A tool to visualize package dependencies and version constraints in your Dart
project.
Expand Down
Loading

0 comments on commit 0bb8da7

Please sign in to comment.