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

fix(html-sanitize): replace html-sanitize with dom-purify because of bug #81

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

bertyhell
Copy link
Contributor

package bug:
apostrophecms/sanitize-html#547

postcss should not be used in a browser

@@ -93,7 +94,6 @@
"@types/react-router": "5.1.18",
"@types/react-router-dom": "5.3.3",
"@types/react-table": "7.7.10",
"@types/sanitize-html": "2.6.2",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "5.11.0",
"@viaa/avo2-components": "3.1.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You added that.
One is a peer dependency, but you added it to dev dependencies as well to make sure it is always installed in the developer machine.
although i ran into the issue a few times where i update the peer dependency and nothing changes, because i also need to change it in the dev dependency section

Comment on lines +11 to +13
import { compact, get } from 'lodash-es';
import moment from 'moment';
import React, { FunctionComponent } from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this throw linting warnings about import groups?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no for me it doesn't
might have something to do with the monorepo and split version of the .eslint config file

I'll look at it some other time.

@bertyhell bertyhell merged commit 6af9462 into main Dec 13, 2022
@bertyhell bertyhell deleted the bugfix/html-sanitize branch December 13, 2022 15:16
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.

None yet

2 participants