Skip to content

marked v18#230

Merged
UziTech merged 1 commit intomainfrom
v18
Apr 7, 2026
Merged

marked v18#230
UziTech merged 1 commit intomainfrom
v18

Conversation

@UziTech
Copy link
Copy Markdown
Member

@UziTech UziTech commented Apr 7, 2026

No description provided.

@UziTech UziTech merged commit 5e245d7 into main Apr 7, 2026
6 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the package version to 18.0.0-0 and updates the 'marked' and 'marked-repo' dependencies to version 18.0.0. Review feedback indicates that an 'engines' field should be added to package.json to reflect the new Node.js >= 20 requirement. Furthermore, the upgrade involves breaking changes regarding the removal of 'pedantic' and 'silent' options, which are still in use within the test suite and require updates.

Comment on lines 1 to 6
{
"name": "@markedjs/testutils",
"version": "17.0.5-0",
"version": "18.0.0-0",
"description": "Test utilities for marked and marked extensions",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

marked v18 requires Node.js >= 20. It is recommended to add an engines field to package.json to reflect this requirement and ensure compatibility with the updated dependency.

{
  "name": "@markedjs/testutils",
  "version": "18.0.0-0",
  "description": "Test utilities for marked and marked extensions",
  "engines": {
    "node": ">= 20"
  },
  "main": "lib/index.js",
  "types": "lib/index.d.ts",

Comment on lines +39 to +40
"marked": "18.0.0",
"marked-repo": "https://github.com/markedjs/marked/tarball/v18.0.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The upgrade to marked v18 introduces breaking changes regarding removed options. The pedantic and silent options have been removed (in v12 and v11 respectively) and are now ignored. The codebase in src/run-tests.ts still uses these options; specifically, the "Original" spec tests (line 133) rely on pedantic: true to simulate legacy behavior, which will no longer work. These tests should be updated to use appropriate extensions or alternative configurations.

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.

1 participant