Support js-yaml v5

Aperta
#2,015 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript, yaml

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

  • 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 ✌️

Lingua principale
JavaScript
Stelle
3.8k
Fork
635
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rollup/plugins

Tutte le issue di rollup/plugins

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.