-
-
Notifications
You must be signed in to change notification settings - Fork 134
feat: export domhandler's Element to support instanceof checks #296
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: export domhandler's Element to support instanceof checks #296
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this PR @natterstefan, I left some comments but otherwise it looks good!
Codecov Report
@@ Coverage Diff @@
## master #296 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 8 +1
Lines 135 153 +18
Branches 49 53 +4
=========================================
+ Hits 135 153 +18
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
index.js → dist/html-react-parser.min.js...
created dist/html-react-parser.min.js in 975ms
/usr/local/bin/npx size-limit --json
[
{
"name": "dist/html-react-parser.min.js",
"passed": true,
"size": 9226,
"running": 0.07007999999999999,
"loading": 0.1801953125
}
] |
Release 1.4.0 |
What is the motivation for this pull request?
It's a feature that resolves what we have discussed here (and suggested by others as well).
What is the current behavior?
Currently, one has to import
Element
by fromdomhandler
manually, after adding it to the project, while it is already adependency
of this package.What is the new behavior?
html-react-parser
exports theElement
type ofdomhandler
already, but not the runtime version of it. This PR fixes it.Checklist:
I also added another CRA example for TypeScript and linked it in the
README.md
file.Related Issues
resolves #252
resolves #221 (most likely too)
resolves #199