Skip to content

refactor: remove colorize, colorize_lumberdash, console, and lumberdash dependencies - #263

Draft
mosuem wants to merge 2 commits into
bmw-tech:mainfrom
mosuem:remove-remaining-3p-deps
Draft

mosuem wants to merge 2 commits into
bmw-tech:mainfrom
mosuem:remove-remaining-3p-deps

Conversation

@mosuem

@mosuem mosuem commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
  • Remove package:colorize in favor of standard ANSI escape sequences in ColorUtils
  • Remove package:console in favor of standard ANSI terminal cursor control and a custom ASCII tree formatter (_createTree)
  • Remove package:lumberdash and package:colorize_lumberdash in favor of standard stderr.writeln warnings and errors
  • Removes 6 more dependencies from the package graph, leaving only Google-authored packages and compile-time annotation freezed_annotation in runtime dependencies

@lrhn lrhn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contains the changes of the other PR too?
See comments on that.

Comment thread lib/src/diff/report/console_diff_reporter.dart Outdated
Comment thread lib/src/diff/report/console_diff_reporter.dart Outdated
final childPrefix = prefix + (isLast ? ' ' : '│ ');
final node = nodes[i];
if (node is Map) {
final label = node['label']?.toString() ?? '';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the same logic as in _createTree, if that was parameterized by a prefix and called with '$prefix$connector'.

Can it be reused?

Comment thread lib/src/diff/report/console_diff_reporter.dart Outdated
…ndencies

- Remove unused pubspec_manager dependency from root pubspec.yaml
- Replace package:stack Stack<Declaration> with standard Dart List<Declaration>
- Replace package:tuple Tuple2 with Dart 3 Records
- Replace package:plist_parser with regular expression matching for MinimumOSVersion in plist files
- Bump version to 0.23.3 for semver check
@mosuem
mosuem force-pushed the remove-remaining-3p-deps branch from d94e6f6 to 64b6e78 Compare August 6, 2026 14:44
…sh dependencies

- Remove package:colorize in favor of standard ANSI escape sequences in ColorUtils
- Remove package:console in favor of standard ANSI terminal cursor control and a custom ASCII tree formatter
- Remove package:lumberdash and package:colorize_lumberdash in favor of standard stderr.writeln warnings and errors
@mosuem
mosuem force-pushed the remove-remaining-3p-deps branch from 64b6e78 to 6e94a06 Compare August 6, 2026 15:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants