🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

commit-graph

Package Overview
Dependencies
Maintainers
0
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commit-graph - npm Package Versions

1245
10

2.2.0

Diff
liuliu_dev
published 2.2.0 •

Changelog

Source

[2.2.0]

-- Bump dependencies, name x and y positions correctly, refactor.

liuliu_dev
published 2.1.3 •

Changelog

Source

[2.1.3]

-- Bump dependencies, clean up unused dependencies, set sourcemap to be false.

liuliu_dev
published 2.1.2 •

Changelog

Source

[2.1.2]

-- Add option to display full sha of commits.

liuliu_dev
published 2.1.1 •

Changelog

Source

[2.1.1]

-- Avoid auto focus on the first link in the branches dropdown.

liuliu_dev
published 2.1.0 •

Changelog

Source

[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.

liuliu_dev
published 2.0.2 •

Changelog

Source

[2.0.2] - 2024-05-31

-- Add dateFormatFn prop.

liuliu_dev
published 2.0.1 •

Changelog

Source

[2.0.1] - 2024-05-29

-- Fixed: Fixed console unique key warning.

liuliu_dev
published 2.0.0 •

Changelog

Source

[2.0.0] - 2024-05-06

Breaking Changes

  • Prop Types Modification: The prop types have been modified to align with the GitHub commit and branch object schema. This change affects all components that utilize commit and branch prop types.

Added

  • Added support for infinite scroll, allowing for the dynamic loading of new commits as scrolling down.
  • A GitHub log graph example in Storybook, demonstrating the new features and how to implement them in your projects.

Migration Instructions

Prop Types Modification

If you are upgrading from a version prior to 2.0.0, please note the changes to prop types:

  • Ensure that your commit and branch data structures conform to the new schema expected by the updated components.
Commit Type Changes
  • **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'
      }
    
liuliu_dev
published 1.7.1 •

Changelog

Source

[1.7.1] -- 2024-05-01

-- Bump Dependencies

liuliu_dev
published 1.7.0 •

Changelog

Source

[1.7.0] -- 2024-03-04

-- Bump Dependencies