Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support js-yaml v5

Đang mở
#2,015 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, yaml
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Start in the @rollup/plugin-yaml package and read the linked js-yaml v4-to-v5 migration guide and changelog. Confirm how the plugin currently calls YAML.load and YAML.loadAll, then define the versioning and parser-options approach described in the proposal. Done means js-yaml v5 support, empty-input handling, and the agreed schema and options behavior are covered.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • Rollup Plugin Name: yaml
  • Rollup Plugin Version: 5.0.0
Feature Use Case

Support new [email protected] parser and its new features

Feature Proposal

Not sure how you want to handle this version wise, but could be two releases or just one

v5.1.0
  • upgrades js-yaml to v5, internally defaults YAML 1.1 schema. Everything stays the same besides the internal parser
  • a small wrapper around load/loadAll functions will needs to be made so it doesn't throw on empty (new behaviour, compared to v4).
v6.0.0

Breaking change

  • defaults to new YAML 1.2 schema if not specified
  • allow consumers to pass loadOptions/parserOptions via the plugin config, which will be forward them to the internal YAML.load/YAML.loadAll calls.
    1. Move js-yaml as peerDependency instead of devDependency requiring explicit install, ensures that schemas can be imported from js-yaml at consumers and forward via parserOptions
    2. Or re-export the schemas and forward them through @rollup/plugin-yaml package.

Cheers ✌️

Ngôn ngữ chính
JavaScript
Star
3.8k
Fork
636
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rollup/plugins

Tất cả issue của rollup/plugins

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.