Support js-yaml v5

オープン
#2,015 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript, yaml

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

Support new js-yaml@5.x 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 ✌️

主要言語
JavaScript
スター
3.8k
フォーク
635
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rollup/plugins のほかの issue

rollup/plugins の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。