Skip to content

Commit ef997e6

Browse files
fix(markdown): expand marked version range to support marked v18 (#5060)
@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
1 parent 3add964 commit ef997e6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@platejs/markdown": patch
3+
---
4+
5+
Expand `marked` dependency version range in `@platejs/markdown` to allow `marked` v15 through v18 (`^15.0.12 || ^16.0.0 || ^17.0.0 || ^18.0.0`), eliminating duplicate lockfile entries for projects using `marked` v18.

packages/markdown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"dependencies": {
4545
"@platejs/date": "workspace:*",
4646
"lodash": "^4.17.23",
47-
"marked": "^15.0.12",
47+
"marked": "^15.0.12 || ^16.0.0 || ^17.0.0 || ^18.0.0",
4848
"mdast-util-math": "3.0.0",
4949
"mdast-util-mdx": "3.0.0",
5050
"react-compiler-runtime": "^1.0.0",

0 commit comments

Comments
 (0)