-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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 TypeScript dependencies #5933
Fix TypeScript dependencies #5933
Conversation
The Mermaid type definitions depend on `@types/d3` and `@types/dompurify`. Without these dependencies, the Mermaid types cause a type error for users.
🦋 Changeset detectedLatest commit: 72d60d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5933 +/- ##
==========================================
- Coverage 4.67% 4.67% -0.01%
==========================================
Files 372 373 +1
Lines 51669 51680 +11
Branches 611 586 -25
==========================================
Hits 2414 2414
- Misses 49255 49266 +11
Flags with carried forward coverage won't be shown. Click here to find out more. |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Is there a better way for us to handle this? Adding |
Why is it counterintuitive to you? A lot of packages have dependencies purely for their types. Especially a dependency on |
My mental model was dependencies only need runtime libraries. But that's not true for libraries. Thank you! |
📑 Summary
The Mermaid type definitions depend on
@types/d3
and@types/dompurify
. Without these dependencies, the Mermaid types cause a type error for users.Resolves N/A
📏 Design Decisions
I moved the dependencies from
devDependencies
todependencies
and ranpnpm install
.📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.