Upgrade Mermaid to 11.17.2 (fixes six advisories in 11.12.x)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 60/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
Hướng nghiên cứu
Bắt đầu từ dev-docs/upgrade-dependencies.md, tài liệu này mô tả các bước vendoring. Các bundle cần thay thế là mermaid.js và mermaid.min.js trong src/resources/formats/html/mermaid/, lấy từ bản phân phối 11.17.2 trên unpkg. Hãy render một trang có classDiagram, sơ đồ C4 và biểu đồ Gantt trước và sau khi thay đổi để kiểm tra renderer mới. Công việc hoàn thành khi cả hai tệp đã được cập nhật và các sơ đồ này vẫn render được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
quarto-cli vendors Mermaid 11.12.0 in src/resources/formats/html/mermaid/. Every rendered HTML page that uses Mermaid ships it. Six advisories affect all 11.12.x releases, and they're fixed in 11.14.1 or 11.16.1:
- GHSA-c4c3-pg64-4m4v
- GHSA-6x64-9x62-f2gx
- GHSA-87f9-hvmw-gh4p
- GHSA-xcj9-5m2h-648r
- GHSA-ghcm-xqfw-q4vr
- GHSA-6m6c-36f7-fhxh
They cover config prototype pollution, CSS/classDef and HTML injection, and an infinite loop in Gantt charts. 11.17.2 has none of them.
Proposal: bump to 11.17.2. That would match the VS Code extension, which moved its notebook renderer and its diagram preview to 11.17.2 in quarto-dev/quarto#1189. Both now run ahead of the CLI's Mermaid version.
As in dev-docs/upgrade-dependencies.md, get dist/mermaid.js and dist/mermaid.min.js from https://unpkg.com/[email protected]/ and copy them into src/resources/formats/html/mermaid/.
Things to know about 11.13 to 11.17:
- These releases mostly add syntax (new diagram types and shapes, extra directives), so existing diagrams should keep working.
- One visible change: in 11.17,
classDiagramand C4 diagrams moved to Mermaid's unified (v2) renderer, so they'll look somewhat different. - 11.17 builds no longer embed
name:"mermaid",version:"…"in the bundle. Anything that sniffs the version from the file needs another pattern; the extension's test now matches therenderer.draw(…, "X.Y.Z"literal. mermaid.min.jsgrows from 2.75 MB to 3.57 MB.
- Ngôn ngữ chính
- JavaScript
- Star
- 6.1k
- Fork
- 466
- Merge trung bình
- 20 giờ 28 phút
- Pull request đã merge (30 ngày)
- 64
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/quarto-cli
-
accessibility documentation revealjs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
quarto-dev/quarto-cli#14971 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility revealjs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
quarto-dev/quarto-cli#14970 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility revealjs themes
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/quarto-cli#14963 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility revealjs themes
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
quarto-dev/quarto-cli#14962 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug revealjs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
quarto-dev/quarto-cli#14961 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/quarto-cli
Issue tương tự
-
Access-request approve silently discards the decider's note (decision_note written only on deny)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Uuriko/project-room#3378 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Notifications pagination accepts NaN and negative LIMIT/OFFSETCó thể đã có người làm @Senthil455 đã nhận hôm nay. Đang mởBUGS MEDIUM
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
elixpo/blogs.elixpo#419 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
immich-app/immich#32426 ·
Maintainer thường phản hồi trong vòng 1 ngày