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

Remove sideEffects section in mobx-react-lite package.json #2743

Merged
merged 1 commit into from
Jan 23, 2021
Merged

Remove sideEffects section in mobx-react-lite package.json #2743

merged 1 commit into from
Jan 23, 2021

Conversation

vkrol
Copy link
Contributor

@vkrol vkrol commented Jan 23, 2021

sideEffects: false is unsafe, because mobx-react-lite/index.ts contains a side effect https://github.com/mobxjs/mobx/blob/main/packages/mobx-react-lite/src/index.ts#L9. It was fixed in 2.2.2 mobxjs/mobx-react-lite#314, but was reintroduced in some 3.x version.

Code change checklist

  • Added/updated unit tests
  • Updated /docs. For new functionality, at least API.md should be updated
  • Verified that there is no significant performance drop (npm run perf)

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2021

🦋 Changeset detected

Latest commit: 6ddc82b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
mobx-react-lite Patch
mobx-react Patch
mobx Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@danielkcz
Copy link
Contributor

Please include the changeset as per the comment above.

@vkrol
Copy link
Contributor Author

vkrol commented Jan 23, 2021

@FredyC thanks, done. mobx and mobx-react was automatically added to the Changeset file. I'm not sure that's correct.

@danielkcz
Copy link
Contributor

Yea, that's correct because it depends on each other. Upon release, it will also update peerDeps automatically.

@danielkcz danielkcz merged commit 592e6e9 into mobxjs:main Jan 23, 2021
@github-actions github-actions bot mentioned this pull request Jan 23, 2021
@vkrol vkrol deleted the remove-side-effects-in-mobx-react-lite-package.json branch January 24, 2021 21:14
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