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

feat: Make @mdx-js/loader an optional peer dependency #567

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

AaronMoat
Copy link
Contributor

BREAKING CHANGE: If importing scoobie/webpack, you'll need to add this optional peer dependency:

yarn add '@mdx-js/loader@^1.6.22'

This is to avoid including dependencies which have some security vulnerabilities (CVE-2020-7753, CVE-2022-37601, CVE-2022-37599, CVE-2022-37603) if unnecessary. This is a bridge until #566

BREAKING CHANGE: If importing `scoobie/webpack`, you'll need to add this optional peer dependency:

```sh
yarn add '@mdx-js/loader@^1.6.22'
```

This is to avoid including dependencies which have some security vulnerabilities
(CVE-2020-7753, CVE-2022-37601, CVE-2022-37599, CVE-2022-37603) if unnecessary.
This is a bridge until #566
@AaronMoat AaronMoat requested a review from a team October 17, 2023 05:59
},
"peerDependenciesMeta": {
"@mermaid-js/mermaid-cli": {
"optional": true
},
"@mdx-js/loader": {
Copy link
Member

Choose a reason for hiding this comment

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

Could consumers run into TypeScript errors if this isn't installed and they run sku lint with skipLibCheck: false?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, looks like it's only referenced in a JS Webpack file 🙏

@AaronMoat AaronMoat merged commit 29368b8 into master Oct 17, 2023
5 checks passed
@AaronMoat AaronMoat deleted the mdx-js-loader-optional branch October 17, 2023 07:03
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.

2 participants