{"id":17540138,"url":"https://github.com/kiliankoe/swift-outdated","last_synced_at":"2025-04-04T20:10:38.574Z","repository":{"id":43040821,"uuid":"249079129","full_name":"kiliankoe/swift-outdated","owner":"kiliankoe","description":"A swift subcommand for displaying when your dependencies (SwiftPM or Xcode) are out of date","archived":false,"fork":false,"pushed_at":"2023-12-03T14:39:10.000Z","size":70,"stargazers_count":349,"open_issues_count":11,"forks_count":15,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-28T19:07:17.384Z","etag":null,"topics":["dependency-management","swift","swift-package-manager","swift-subcommand","xcode-run-script-phase","xcode-scripts"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/kiliankoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["kiliankoe"],"liberapay":"kiliankoe","custom":["https://paypal.me/kiliankoeltzsch"]}},"created_at":"2020-03-21T23:29:59.000Z","updated_at":"2025-03-02T17:53:55.000Z","dependencies_parsed_at":"2023-12-03T15:37:35.152Z","dependency_job_id":null,"html_url":"https://github.com/kiliankoe/swift-outdated","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fswift-outdated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fswift-outdated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fswift-outdated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fswift-outdated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiliankoe","download_url":"https://codeload.github.com/kiliankoe/swift-outdated/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"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":["dependency-management","swift","swift-package-manager","swift-subcommand","xcode-run-script-phase","xcode-scripts"],"created_at":"2024-10-20T22:08:29.974Z","updated_at":"2025-04-04T20:10:38.554Z","avatar_url":"https://github.com/kiliankoe.png","language":"Swift","funding_links":["https://github.com/sponsors/kiliankoe","https://liberapay.com/kiliankoe","https://paypal.me/kiliankoeltzsch"],"categories":[],"sub_categories":[],"readme":"# swift-outdated\n\nA swift subcommand for checking if your dependencies have an update available. This especially applies to updates outside of your version requirements.\n\nHeavily inspired by [cargo-outdated](https://github.com/kbknapp/cargo-outdated).\n\nCalling `swift package update` will only update to the latest available requirements inside your specified version requirements, which totally makes sense, but you might miss that there's a new major version available if you don't check the dependency's repository regularly.\n\nThis tool aims to help with that by allowing to quickly check if any requirements might be outdated, it does this by checking the remote git tags of your dependencies to see if something outside of your version requirements is available.\n\n## Installing\n\n### Homebrew\n\n`swift-outdated` can be installed via Homebrew.\n\n```bash\n$ brew install swift-outdated\n```\n\n### [Mint](https://github.com/yonaskolb/mint)\n\n`swift-outdated` can also be installed via [Mint](https://github.com/yonaskolb/mint).\n\n```bash\n$ mint install kiliankoe/swift-outdated\n```\n\n## Usage\n\nSince `swift-outdated` installs with its name, it can be called just like a subcommand of Swift itself via `swift outdated`.\n\n```\n$ swift outdated\n| Package               | Current | Latest | URL                                                |\n|-----------------------|---------|--------|----------------------------------------------------|\n| rainbow               | 3.2.0   | 4.0.1  | https://github.com/onevcat/rainbow.git             |\n| swift-argument-parser | 1.1.4   | 1.2.2  | https://github.com/apple/swift-argument-parser.git |\n```\n\nThis lists all your outdated dependencies, the currently resolved version and the latest version available in their upstream repository.\n\n### Library\n\nThis packages also exposes a library target called `Outdated`. Use this if you want to integrate the functionality into your project.\n\nHere's a basic usage example.\n\n```swift\nimport Outdated\n\nlet pins = try SwiftPackage.currentPackagePins(in: .current)\nlet packages = await SwiftPackage.collectVersions(for: pins, ignoringPrerelease: true)\npackages.output(format: .markdown)\n```\n\n### Xcode\n\n`swift-outdated` also supports Xcode projects that use Swift packages for their dependency management. Either run it manually inside your repo\nor set up a Run Script Phase. In the latter case `swift-outdated` emits warnings for your outdated dependencies.\n\n\u003cimg width=\"247\" alt=\"Xcode warnings screenshot\" src=\"https://user-images.githubusercontent.com/2625584/104966116-6cedc400-59e0-11eb-9dc0-942f860e9e33.png\"\u003e\n\nBe aware however that using a Run Script Phase in this way will fetch available versions for all of your dependencies on every build, which will\nincrease your build time by a second or two. You're probably better off running this manually every now and then.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fswift-outdated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiliankoe%2Fswift-outdated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fswift-outdated/lists"}