Skip to content

feat!: remove deprecated markdown component and isomorphic-dompurify peer dependency (#914)#919

Merged
NoopDog merged 1 commit into
mainfrom
fran/914-remove-deprecated-markdown
May 14, 2026
Merged

feat!: remove deprecated markdown component and isomorphic-dompurify peer dependency (#914)#919
NoopDog merged 1 commit into
mainfrom
fran/914-remove-deprecated-markdown

Conversation

@frano-m
Copy link
Copy Markdown
Contributor

@frano-m frano-m commented May 14, 2026

Summary

  • Deletes the deprecated src/components/common/Markdown/markdown.tsx component (the only dangerouslySetInnerHTML usage in findable-ui).
  • Removes isomorphic-dompurify from peerDependencies — it was used only by the deleted component.
  • Audit confirmed no consumer (anvil-portal, brc-analytics, hca-atlas-tracker, hprc-data-explorer, ncpi-dataset-catalog, ucsc-brain-explorer) imports the removed component; consumers use MarkdownRenderer (unified/remark/rehype-react pipeline, no dangerouslySetInnerHTML).
  • Breaking change since the file is reachable via @databiosphere/findable-ui/lib/components/common/Markdown/markdownfeat!: triggers a major bump in release-please.

Closes #914.

Test plan

  • npx tsc succeeds
  • npm run check-format passes
  • npm run lint passes
  • npm run test-compile passes
  • npm test — 425/425 pass
  • Workspace-wide grep confirms no other findable-ui references to the deleted component or isomorphic-dompurify/DOMPurify

🤖 Generated with Claude Code

…peer dependency (#914)

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 14, 2026 05:08
@frano-m frano-m marked this pull request as ready for review May 14, 2026 05:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a deprecated markdown-rendering component that relied on dangerouslySetInnerHTML and eliminates its now-unused sanitization dependency (isomorphic-dompurify) from the library’s peer dependencies, reducing consumer setup burden and tightening security posture.

Changes:

  • Deleted the deprecated Markdown component (src/components/common/Markdown/markdown.tsx) that sanitized HTML and rendered via dangerouslySetInnerHTML.
  • Removed isomorphic-dompurify from peerDependencies in package.json.
  • Updated package-lock.json to reflect the removed peer dependency and the resulting dependency graph changes.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/components/common/Markdown/markdown.tsx Removes deprecated Markdown component implementation (and its dangerouslySetInnerHTML usage).
package.json Drops isomorphic-dompurify from peerDependencies.
package-lock.json Re-locks dependencies after removing isomorphic-dompurify peer dependency.

@NoopDog NoopDog merged commit 6806e52 into main May 14, 2026
6 checks passed
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.

Remove deprecated Markdown component and isomorphic-dompurify peer dependency

3 participants