Home / Function/ getChangeLogUrl() — react Function Reference

getChangeLogUrl() — react Function Reference

Architecture documentation for the getChangeLogUrl() function in GeneralSettings.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  0b41ed90_b123_68f8_4853_40f0553567cd["getChangeLogUrl()"]
  ba1321bc_42b8_c6c2_e944_8928bf07c59a["GeneralSettings.js"]
  0b41ed90_b123_68f8_4853_40f0553567cd -->|defined in| ba1321bc_42b8_c6c2_e944_8928bf07c59a
  aac33f52_a5a8_865e_e3c3_a5452db11189["Version()"]
  aac33f52_a5a8_865e_e3c3_a5452db11189 -->|calls| 0b41ed90_b123_68f8_4853_40f0553567cd
  style 0b41ed90_b123_68f8_4853_40f0553567cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/devtools/views/Settings/GeneralSettings.js lines 24–35

function getChangeLogUrl(version: ?string): string | null {
  if (!version) {
    return null;
  }

  // Version numbers are in the format of: <major>.<minor>.<patch>-<sha>
  // e.g. "4.23.0-f0dd459e0"
  // GitHub CHANGELOG headers are in the format of: <major>.<minor>.<patch>
  // but the "." are stripped from anchor tags, becomming: <major><minor><patch>
  const versionAnchor = version.replace(/^(\d+)\.(\d+)\.(\d+).*/, '$1$2$3');
  return `${CHANGE_LOG_URL}#${versionAnchor}`;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getChangeLogUrl() do?
getChangeLogUrl() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Settings/GeneralSettings.js.
Where is getChangeLogUrl() defined?
getChangeLogUrl() is defined in packages/react-devtools-shared/src/devtools/views/Settings/GeneralSettings.js at line 24.
What calls getChangeLogUrl()?
getChangeLogUrl() is called by 1 function(s): Version.

Analyze Your Own Codebase

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

Try Supermodel Free