Home / Function/ getVersionString() — react Function Reference

getVersionString() — react Function Reference

Architecture documentation for the getVersionString() function in utils.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  0af1ed3e_03cf_5267_aa34_7fa547c94a45["getVersionString()"]
  491fc4c3_2611_502b_1efa_dc935b6722c3["utils.js"]
  0af1ed3e_03cf_5267_aa34_7fa547c94a45 -->|defined in| 491fc4c3_2611_502b_1efa_dc935b6722c3
  16c21054_f727_ea31_fa2a_025ba6e0a6b4["getGitCommit()"]
  0af1ed3e_03cf_5267_aa34_7fa547c94a45 -->|calls| 16c21054_f727_ea31_fa2a_025ba6e0a6b4
  style 0af1ed3e_03cf_5267_aa34_7fa547c94a45 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/utils.js lines 44–56

function getVersionString(packageVersion = null) {
  if (packageVersion == null) {
    packageVersion = JSON.parse(
      readFileSync(
        resolve(__dirname, '..', 'react-devtools-core', './package.json'),
      ),
    ).version;
  }

  const commit = getGitCommit();

  return `${packageVersion}-${commit}`;
}

Domain

Subdomains

Frequently Asked Questions

What does getVersionString() do?
getVersionString() is a function in the react codebase, defined in packages/react-devtools-extensions/utils.js.
Where is getVersionString() defined?
getVersionString() is defined in packages/react-devtools-extensions/utils.js at line 44.
What does getVersionString() call?
getVersionString() calls 1 function(s): getGitCommit.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free