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

refactor: replace invariant with tiny-invariant #152

Merged
merged 1 commit into from
Oct 9, 2018

Conversation

dferber90
Copy link
Contributor

Summary

This pull request replaces invariant with tiny-invariant. A simpler, more lightweight solution. Not the biggest of our problems but it was on my list. Essentially tiny-invariant as the same API but does not allow placeholders in the string. Something we never used an if would use template literals for anyway.

@dferber90 dferber90 added the 💅 Type: Enhancement Improves existing code label Oct 9, 2018
@dferber90 dferber90 requested a review from tdeekens October 9, 2018 11:44
@montezume
Copy link
Contributor

Since we are doing

  peerDepsExternal({
    includeDependencies: true,
  }),

in the rollup config, the MC will need to add tiny-invariant as a dep, right?

@tdeekens
Copy link
Contributor

tdeekens commented Oct 9, 2018

in the rollup config, the MC will need to add tiny-invariant as a dep, right?

It has already. We use it there too and I replaced it there too.

@dferber90
Copy link
Contributor Author

It's good that you pointed it out though, as we should mention it on the changelog as a breaking change.

Copy link
Contributor

@montezume montezume left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation! 🚀

@dferber90 dferber90 force-pushed the df-replace-invariant branch from 314d410 to 0ac2b78 Compare October 9, 2018 17:22
@dferber90 dferber90 merged commit 107107b into master Oct 9, 2018
@dferber90 dferber90 deleted the df-replace-invariant branch October 9, 2018 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Type: Enhancement Improves existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants