Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read Recharts version from npm #288

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

charpeni
Copy link
Collaborator

We used to read the latest version of Recharts available from recharts/package.json directly, but it meant we had to update Recharts every time we were releasing a new version.

Starting from now, we'll just need to trigger a new deployment of the website manually and as part of the build process, we fetch the latest version available for Recharts from npm API.

I also took the liberty to change the padding a little bit between the icon and the text:

Before After
Screenshot 2023-11-27 at 2 03 13 PM Screenshot 2023-11-27 at 2 03 06 PM

{localeGet(locale, 'home', 'install')}
 v{rechartsPackageJson.version}
{process.env.RECHARTS_LATEST_VERSION ? ` v${process.env.RECHARTS_LATEST_VERSION}` : undefined}
Copy link
Member

@ckifer ckifer Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one note is that we still need to update recharts version every time we upgrade in package.json

Can you update the recharts version in this repo to be latest instead of a specific tag?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do this post merge

@ckifer ckifer merged commit 9e1703c into recharts:master Nov 28, 2023
@charpeni charpeni deleted the read-recharts-version-from-npm branch November 28, 2023 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants