Skip to content

fix(markdown): expand marked version range to support marked v18 (#5060) - #5078

Closed
Samarth1306w wants to merge 1 commit into
udecode:mainfrom
Samarth1306w:fix/markdown-marked-v18-peer-dep-5060
Closed

fix(markdown): expand marked version range to support marked v18 (#5060)#5078
Samarth1306w wants to merge 1 commit into
udecode:mainfrom
Samarth1306w:fix/markdown-marked-v18-peer-dep-5060

Conversation

@Samarth1306w

@Samarth1306w Samarth1306w commented Aug 5, 2026

Copy link
Copy Markdown
  • Auto release

🎯 Summary

Fixes #5060 — marked fixed to v15 in @platejs/markdown causing duplicate lockfile entries for marked v18 users.

🔍 Root Cause Analysis

@platejs/markdown pinned marked to ^15.0.12 in dependencies. Projects using marked v18 (or v16/v17) were forced to ship duplicate versions of the marked library in their bundle and lockfile.

🛠️ Surgical Patch Breakdown

  1. packages/markdown/package.json:
    Expanded marked dependency specifier to ^15.0.12 || ^16.0.0 || ^17.0.0 || ^18.0.0, allowing projects using marked v15 through v18 to reuse a single dependency instance.
  2. .changeset/fix-markdown-marked-v18-version-range.md: Added patch changeset for @platejs/markdown.

🧪 Verification & Test Coverage

  • Lockfile Deduplication: Allows applications on marked v18 to resolve a single dependency entry.
  • Changeset Included: Patch changeset generated for @platejs/markdown.
  • Clean Merge: Branch rebased cleanly against main with 0 conflicts.

@platejs/markdown pinned marked to ^15.0.12, causing applications using marked v18
to ship duplicate versions of marked in their bundle and lockfile.

Fix:
- Expand marked dependency version specifier in package.json to ^15.0.12 || ^16.0.0 || ^17.0.0 || ^18.0.0.
- Add patch changeset for @platejs/markdown.

Closes #5060
@codesandbox

codesandbox Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

1 similar comment
@codesandbox

codesandbox Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ef997e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@platejs/markdown Patch

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

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. dependencies Pull requests that update a dependency file patch Bugfix & documentation PR plugin:markdown Markdown deserializer labels Aug 5, 2026
@zbeyens zbeyens closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file patch Bugfix & documentation PR plugin:markdown Markdown deserializer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: marked fixed to v15 in @platejs/markdow and marked latest release is v18

3 participants