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

Update package.json #102

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Update package.json #102

merged 1 commit into from
Dec 3, 2024

Conversation

denisx
Copy link
Contributor

@denisx denisx commented Dec 3, 2024

Add "sideEffects": false for better codspliting

Add  `"sideEffects": false` for better codspliting
@denisx
Copy link
Contributor Author

denisx commented Dec 3, 2024

@ckifer I need you help. We need to go a quick 2 minute adventure.

@ckifer
Copy link
Member

ckifer commented Dec 3, 2024

Not sure what you mean about a 2 minute adventure.

I'm fine with doing this, but it may not help as much as it seems it might

@ckifer ckifer merged commit 52287ef into recharts:master Dec 3, 2024
1 check passed
@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

When can we wait for new publich patch version?

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

Are you saying publish in general or publish and then install in recharts? I can publish it as soon as a get a few minutes. I can't install it in recharts 2.x, only once 3.0 is out because it goes across a breaking change (3.0 to 4.0)

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

can we patch 3 and 4 versions?

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

generally I wouldn't go back and patch 3.x no. Being that this is a small change it shouldn't be a huge deal

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

Ok, will think about 4 mirgation

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

are using using react-smooth directly? Or are you wanting this change in recharts? I'm still not clear. If you are using react-smooth directly, installing 4.x shouldn't cause any breaking issues. Its just major version bumps of other packages

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

"shouldn't cause any breaking issues"
oh, super!

"change in recharts
yes, too

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

you need any help?

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

these were the documented breaking changes https://github.com/recharts/react-smooth/releases/tag/v4.0.0

No migration required if none of those things effect you.

I shouldn't need help, just need a minute to take care of the release

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

and actually scratch that about the 3.0 to 4.0 thing
https://github.com/recharts/recharts/blob/master/package.json#L73

recharts uses 4.0 in the master (2.x) branch so all good

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

Let me know how much this actually helps your code splitting

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

will i need to make a pr to rechart? because *.lock file does not up the version of deps itself (or it does any other package)
OR i need to do it myself at my package.json

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

The caret (^) takes care of that. If you update your dependencies it should automatically install the latest patch version of react-smooth

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

if both packages at one project...

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

react-smooth is installed implicitly because it is a dependency of recharts. Just run npm update and check your lock file to make sure it updated

@denisx
Copy link
Contributor Author

denisx commented Dec 4, 2024

i think this is a bit mistake at package.json / files. no index at lib and es6 folders

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

good catch. I started migrating to TS and looks like the build process isn't quite right
I'll patch again to prevent chaos from happening when people go to install later...

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

4.03 published

@ckifer
Copy link
Member

ckifer commented Dec 4, 2024

@denisx let me know as soon as you can try it :/ apologies for the miss there

@denisx denisx deleted the side-effects branch December 4, 2024 20:30
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