Where a registry lists a package's branches: composer 2 keeps tags in name.json and dev-* branches in name~dev.json, on both registries.
name.json
dev-*
name~dev.json
Where a registry lists a package's branches: composer 2 keeps tags in
name.jsonanddev-*branches inname~dev.json, on both registries.