{"id":13552024,"url":"https://github.com/VeryGoodOpenSource/pub_updater","last_synced_at":"2025-04-03T02:32:44.353Z","repository":{"id":41147097,"uuid":"399949468","full_name":"VeryGoodOpenSource/pub_updater","owner":"VeryGoodOpenSource","description":"A Dart package which supports checking if a current package is up-to-date.","archived":false,"fork":false,"pushed_at":"2024-07-02T20:08:45.000Z","size":97,"stargazers_count":55,"open_issues_count":1,"forks_count":7,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-07-26T20:59:14.202Z","etag":null,"topics":["cli","dart","dart-package","flutter","pubdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/pub_updater","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VeryGoodOpenSource.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-25T20:29:46.000Z","updated_at":"2024-07-02T20:08:47.000Z","dependencies_parsed_at":"2024-06-18T18:30:42.975Z","dependency_job_id":"817c5c36-38d5-4d87-afab-92270979e1cb","html_url":"https://github.com/VeryGoodOpenSource/pub_updater","commit_stats":{"total_commits":53,"total_committers":10,"mean_commits":5.3,"dds":0.5849056603773585,"last_synced_commit":"00675313c63bdb5484b906bd7dde4fede1dc2f99"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeryGoodOpenSource%2Fpub_updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeryGoodOpenSource%2Fpub_updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeryGoodOpenSource%2Fpub_updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VeryGoodOpenSource%2Fpub_updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VeryGoodOpenSource","download_url":"https://codeload.github.com/VeryGoodOpenSource/pub_updater/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213520271,"owners_count":15599590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","dart","dart-package","flutter","pubdev"],"created_at":"2024-08-01T12:01:57.638Z","updated_at":"2024-11-03T22:33:12.371Z","avatar_url":"https://github.com/VeryGoodOpenSource.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# Pub Updater\n\n[![Very Good Ventures][logo_white]][very_good_ventures_link_dark]\n[![Very Good Ventures][logo_black]][very_good_ventures_link_light]\n\nDeveloped with 💙 by [Very Good Ventures][very_good_ventures_link] 🦄\n\n[![Pub][pub_badge]][pub_link]\n[![build][ci_badge]][ci_link]\n[![coverage][coverage_badge]][ci_link]\n[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]\n[![License: MIT][license_badge]][license_link]\n\n---\n\nA Dart package which enables checking whether packages are up to date and supports updating them.\n\nIntended for use in CLIs for prompting users to auto-update.\n\n## Usage\n\n```dart\nimport 'package:pub_updater/pub_updater.dart';\n\nvoid main() async {\n  // Create an instance of PubUpdater\n  final pubUpdater = PubUpdater();\n\n  // Check whether or not version 0.1.0 is the latest version of my_package\n  final isUpToDate = await pubUpdater.isUpToDate(\n    packageName: 'my_package',\n    currentVersion: '0.1.0',\n  );\n\n  // Trigger an upgrade to the latest version if my_package is not up to date\n  if (!isUpToDate) {\n    await pubUpdater.update(packageName: 'my_package');\n  }\n\n  // You can also query the latest version available for a specific package.\n  final latestVersion = await pubUpdater.getLatestVersion('my_package');\n}\n```\n\n[ci_badge]: https://github.com/VeryGoodOpenSource/pub_updater/actions/workflows/main.yaml/badge.svg\n[ci_link]: https://github.com/VeryGoodOpenSource/pub_updater/actions/workflows/main.yaml?query=branch%3Amain\n[coverage_badge]: https://raw.githubusercontent.com/VeryGoodOpenSource/pub_updater/main/coverage_badge.svg\n[logo_black]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_black.png#gh-light-mode-only\n[logo_white]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_white.png#gh-dark-mode-only\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_link]: https://opensource.org/licenses/MIT\n[pub_badge]: https://img.shields.io/pub/v/pub_updater.svg\n[pub_link]: https://pub.dev/packages/pub_updater\n[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg\n[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis\n[very_good_ventures_link]: https://verygood.ventures\n[very_good_ventures_link_dark]: https://verygood.ventures#gh-dark-mode-only\n[very_good_ventures_link_light]: https://verygood.ventures#gh-light-mode-only\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVeryGoodOpenSource%2Fpub_updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVeryGoodOpenSource%2Fpub_updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVeryGoodOpenSource%2Fpub_updater/lists"}