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

Complete rewrite from scratch is here \o/ #66

Merged
merged 31 commits into from
Oct 21, 2020
Merged

Complete rewrite from scratch is here \o/ #66

merged 31 commits into from
Oct 21, 2020

Conversation

favna
Copy link
Collaborator

@favna favna commented Oct 21, 2020

This is a complete rewrite of the lib from the ground up. Using the original code as a basis while completely reimplementing everything.

fixes #55 closes #57

closes #60 closes #62 closes #49

favna added 24 commits October 20, 2020 00:24
The lib has been entirely rewritten in order to have the source code in TypeScript and leveraging
the "tsdx" package for bundling, testing and linting.

BREAKING CHANGE: As part of the rewrite, the global exports are gone. Please use CommonJS or ESM
style imports as specified in the README.

fixes #55 closes #57
If NODE_ENV is 'production' then the first part of the evaluation short-circuits the conditional
passed into handleError, ensuring that in production environments the check for whether the error
has to be thrown at all is not resolved, ultimately increasing performance. Furthermore if NODE_ENV
is undefined or an empty string it is also assumed to be production, to provide for those who do not
use a common framework such as create-react-app, NextJS or Gatsby.
Now matches other common invariant functions
Until enzyme updates to React 17
covered by all-contributors and listed in README
Copy link

@cfanoulis cfanoulis left a comment

Choose a reason for hiding this comment

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

Hello! Just a couple docs/tool nits, the code looks well

.eslintrc.js Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
demo/README.md Show resolved Hide resolved
demo/tsconfig.json Outdated Show resolved Hide resolved
@favna
Copy link
Collaborator Author

favna commented Oct 21, 2020

Note: Size Limit Analysis CI is failing because there is no size-limit on master branch yet. Ignore it for now.

@favna favna merged commit a5a1d26 into master Oct 21, 2020
@favna favna deleted the tsdx-rewrite branch October 21, 2020 21:39
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.

Allow non-booleans in the condition prop as a convenience Error upgrading to v3.2.0
2 participants