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

build(package): bump html-dom-parser from 4.0.1 to 5.0.0 #1087

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"path": "dist/html-react-parser.min.js",
"limit": "10.6 KB"
"limit": "10.68 KB"
}
]
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var domhandler = require('domhandler');
var htmlToDOM = require('html-dom-parser');
var htmlToDOM = require('html-dom-parser').default;

var attributesToProps = require('./lib/attributes-to-props');
var domToReact = require('./lib/dom-to-react');
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
],
"dependencies": {
"domhandler": "5.0.3",
"html-dom-parser": "4.0.1",
"html-dom-parser": "5.0.0",
"react-property": "2.0.0",
"style-to-js": "1.1.4"
},
Expand Down
2 changes: 1 addition & 1 deletion test/dom-to-react.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const React = require('react');
const htmlToDOM = require('html-dom-parser');
const htmlToDOM = require('html-dom-parser').default;

const domToReact = require('../lib/dom-to-react');
const utilities = require('../lib/utilities');
Expand Down
3 changes: 1 addition & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ describe('module', () => {
});

it('exports htmlToDOM', () => {
expect(parse.htmlToDOM).toBe(require('html-dom-parser'));
expect(parse.htmlToDOM).toBe(require('html-dom-parser').default);
expect(parse.htmlToDOM).toBeInstanceOf(Function);
expect(parse.htmlToDOM.default).toBe(parse.htmlToDOM);
});

it('exports attributesToProps', () => {
Expand Down