/dart-helper-utils:upgrade-dart-helper-utilsfrom Dart Helper Utils
Audits and sequences upgrades of the dart_helper_utils package across v2-v7, detecting current version and applying migration hops with project test verification.
Ships in Dart Helper Utils. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Version-aware audit. Determine the CURRENT resolved version first, apply only the hops that cross it, and verify with the project's own tests.
grep -n "dart_helper_utils" pubspec.yaml # declared constraint
dart pub deps --style=compact | grep '^- dart_helper_utils ' # resolved version
In a Flutter app, use flutter pub deps. If the resolved version already
equals the target: report "no migration needed" and stop (do not invent
work).
| From | To | Size | What changes |
|---|---|---|---|
| 1.x | 2.x | small | toDateWithFormat to toDateFormatted; dateFormat became a method with optional locale; firstDayOfWeek/lastDayOfWeek became methods with startOfWeek:; flatJson to flatMap; makeEncodable/safelyEncodedJson to encodableCopy/encodedJsonString |
| 2.x | 3.x | small | removed deprecated String.toDateTime (use toDate/toDateFormatted) and DateTime.format (use formatted) |
| 3.x | 4.x | medium | paginators rebuilt on BasePaginator (lifecycle, transform caching, CancelableOperation); generic delay() replaced by unit methods (2.secondsDelay()); disposal became no-op instead of throwing |
| 4.x/5.x | 6.x | LARGE | use the dedicated migrate-dart-helper-utils-v5-to-v6 skill (conversion moved to convert_object, renames, removals, behavior changes) |
| 6.0.x | 6.0.y | none | patch releases are docs/tooling unless the CHANGELOG says otherwise - read it first |
| 6.0.x | 6.1.x | small | string text transformations moved to the re-exported stringo package. Call sites are UNCHANGED. Two things to fix: (1) explicit extension type names - DHUCaseConversionExtensions to StringCaseExtensions, DHUNullSafeCaseConversionExtensions to NullableStringCaseExtensions, moved members of DHUStringExtensions/DHUNullSafeStringExtensions to StringTransformExtensions/NullableStringTransformExtensions/StringChecksExtensions; (2) toTitleCase/toTitle now capitalize the first word |
| 6.x | 7.x | medium, mostly automated | Dart 3.13.5 and stringo 3 required; run dart fix --apply for the renames (deprecated aliases keep compiling until 8.0.0, except the removed Iterable.find and DHUNullableSetExtensions), then review the behavior changes. Use the dedicated migrate-dart-helper-utils-v6-to-v7 skill |
Shortcut when crossing several majors: paginator work in the 3-to-4 hop is
WASTED if the target is 6.x (paginators were removed in v6) - go straight
to choosing a pagination replacement. The same applies to
encodableCopy/encodedJsonString (renamed again in v6 to
toJsonSafe/toJsonString). Likewise, when the target is 7.x, keep or
restore date.format(pattern): the formatted name from the 2.x-to-3.x hop
no longer exists.
dart pub get (or
dart pub upgrade dart_helper_utils).dart analyze and run the full test suite; compare failures against the
pre-upgrade baseline (record it first).^3.13.5 and stringo ^3.0.0. 6.0.2
through 6.1.x need SDK ^3.10.0 and convert_object ^1.1.0; 6.0.1 needs
the same SDK with convert_object ^1.0.4, and 6.0.0 needs SDK >=3.2.0
with convert_object ^1.0.2. A direct dependency pinning
convert_object <1.1 (6.0.2 and later) or stringo <3 (7.x), or an older
SDK, blocks resolution.alternativeKeys, percentile range) are catalogued in the
migrate-dart-helper-utils-v5-to-v6 skill's behavior-changes section.grep -rn "DHUCaseConversionExtensions\|DHUNullSafeCaseConversionExtensions\|DHUStringExtensions\|DHUNullSafeStringExtensions" lib test.
Most projects get zero hits.dart fix does not rename the 6.1.0
extension types.dart fix --apply on 7.x BEFORE that bump.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub omar-hanafy/dart_helper_utils --plugin dart-helper-utils5 skills in this plugin
/async-with-dart-helper-utilsUse when Dart/Flutter code in a project that depends on the dart_helper_utils package needs debouncing, throttling, stream shaping, or bounded-concurrency async work - search-input debounce, rate-limited event streams, Debouncer/DebouncedCallback/Throttler lifecycle and disposal, TimeUtils.debounce/throttle/runWithTimeout, stream bufferCount/window/rateLimit/asPausable/withLatestValue/retry/replaceOnError, StreamController safeAdd/safeClose, Future minWait/timeoutOrNull, retry with exponential backoff, waitConcurrency, or mapConcurrent./migrate-dart-helper-utils-v5-to-v6Use when upgrading a project from dart_helper_utils 5.x or earlier to 6.x, or fixing compile errors after that bump - ConvertObject/toString1/ParsingException renames, altKeys to alternativeKeys, firstValueForKeys to tryGetRaw, removed Paginator/DoublyLinkedList/country data/StringSimilarity, httpFormat to httpDateFormat, encodedJsonString to toJsonString, TimeUtils.throttle signature change, percentile 0-100 range, delay methods, or helpers that moved to convert_object or package collection./migrate-dart-helper-utils-v6-to-v7Use when upgrading a project from dart_helper_utils 6.x to 7.x, or fixing analyzer errors and deprecation warnings after that bump - isAtSameDayAs/addOrSubtractMonths/tomorrow/isPresent/formatASyQQQ/enforceRtlIn/swap/find renames, String isEmptyOrNull to isBlank, Dart 3.13.5 and stringo 3 requirements, the removed Iterable.find, int statistics now returning double, mask and insert returning String?, UTC and daylight-saving changes in date helpers, isDOCX/isXLSX precision, typed Debouncer executionHistory, DebouncerState no longer being Equatable, or test values that changed because 7.0 fixed a bug./use-dart-helper-utilsUse when writing or reviewing Dart/Flutter code in a project that depends on the dart_helper_utils package - deep map utilities (flatMap, unflatten, getPath, setPath, deepMerge), string casing/slugify/masking/parseDuration/truncate, MIME filename checks, iterable chunks/windowed/partition/distinctBy/swapped, number stats and HTTP status helpers, DateTime and Duration extensions (isSameDayAs, addMonths, calendar-day arithmetic), intl formatting wrappers (formatAsReadableNumber, dateFormat, pluralize), Uri rebuild, or deciding between dart_helper_utils and direct collection/intl/convert_object/stringo imports.