Published 2026-10-28
pubspec.yaml reader/writer.

Was sick of the debatable quality of the libraries from pub.dev, so if it doesn't work now, it's my own fault.
FormatExceptions instead of opaque NotImplementedException() calls, including the offending field and expected structure.HPubspec.sortByDependencyDepth, least dependencies first, most dependencies last.hh_before_get and hh_after_get sections.HHPubspec.canWrite getter — returns true when the instance was loaded from a real file path (not Directory('.')).HHPubspec.canWrite getter — returns true when the instance was loaded from a real file path (not Directory('.'))._hostedDependenciesToPath no longer throws when a dependency listed in hh_dependencies is absent from dependencies; uses firstWhereOrNull and skips silently.doWrite() refactored to use the new canWrite getter instead of an inline equality check.Set<String> instead of a List<String>.doSwitch to switch between PackageMode.hosted and PackageMode.path dependencies.yaml_writer update.InstallerType::dmg64.pubspec_parse dependency (discontinued).getInstallerPath.getInstallerFilesFromExecutables.toJson that left non-json value types.git dependency parse bug when no url was given.Environment::isPureDart.Environment::isFlutter.assets and fonts under flutter section, when there were no usesMaterialDesign or generate options present.hh_before_* and hh_after_* topics.Pubspec main class to HHPubspec.