npm / hosted-git-info
hosted-git-info
What changed in hosted-git-info 3 to 10, from its official release notes, upgrade guides and advisories. Also covers @types/hosted-git-info. Sources checked 2026-10-23.
10 breaking5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithosted-git-info 102 changes
Breaking changes 2
hosted-git-info no longer depends on the url package, which changes its dependency requirements.
The supported Node.js versions are now ^22.22.2 || ^24.15.0 || >=26.0.0.
hosted-git-info 93 changes
Breaking changes 1
The supported Node.js versions are now ^20.17.0 || >=22.9.0.
Fixes and other changes 2
Tarball URLs now use the GitLab API v4 endpoint.
The .git suffix is removed from Sourcehut HTTPS URLs.
hosted-git-info 81 changes
Breaking changes 1
The supported Node.js versions are now ^18.17.0 || >=20.5.0.
hosted-git-info 71 changes
Breaking changes 1
Support for Node.js 14 has been removed.
hosted-git-info 65 changes
Breaking changes 3
GitHost now has a static addHost method to use instead of manually editing the object from lib/git-host-info.js.
The default git ref is now HEAD.
hosted-git-info is now compatible with the following semver range for Node.js: ^14.17.0 || ^16.13.0 || >=18.0.0.
Fixes and other changes 2
Branch names containing @ are now parsed.
Colons after a hash are ignored when correcting scp URLs.
hosted-git-info 51 changes
Breaking changes 1
Support for Node 10 and non-LTS versions of Node 12 and Node 14 was dropped.
hosted-git-info 32 changes
Breaking changes 1
Support for Node.js 0.x is dropped.
Fixes and other changes 1
Switches to lru-cache to prevent unlimited memory consumption.