commit-graph
Advanced tools
Changelog
[2.2.0]
-- Bump dependencies, name x and y positions correctly, refactor.
Changelog
[2.1.3]
-- Bump dependencies, clean up unused dependencies, set sourcemap to be false.
Changelog
[2.1.1]
-- Avoid auto focus on the first link in the branches dropdown.
Changelog
[2.1.0]
-- Fixed: Fixed the branches dropdown overlap issue. Fixed the branch label link not clickable issue.
-- Added: Added support for current branch, so it will always show up first.
Changelog
[2.0.1] - 2024-05-29
-- Fixed: Fixed console unique key
warning.
Changelog
[2.0.0] - 2024-05-06
If you are upgrading from a version prior to 2.0.0, please note the changes to prop types:
**Migration example:
// Old commit format
{
hash: 'commitHash',
ownerName: 'owner',
repoName: 'repo',
committer: {
username: 'committerUsername',
displayName: 'Committer Name',
emailAddress: 'committer@example.com'
},
message: 'Commit message',
parents: ['parentHash1', 'parentHash2'],
committedAt: '2024-03-10',
commitLink: 'https://example.com/commit/commitHash'
}
// New commit format
{
sha: 'commitHash',
commit: {
author: {
name: 'Committer Name',
date: '2024-03-10', // or Date object or number
email: 'committer@example.com'
},
message: 'Commit message',
},
parents: [{ sha: 'parentHash1' }, { sha: 'parentHash2' }],
html_url: 'https://example.com/commit/commitHash'
}
// Old branch format
{
branchName: 'main',
headCommitHash: 'latestCommitHash',
branchLink: 'https://example.com/branch/main'
}
// New branch format
{
name: 'main',
commit: {
sha: 'latestCommitHash'
},
link: 'https://example.com/branch/main'
}