Support js-yaml v5
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, yaml
- Domain
- build-system, tooling
Research direction
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.
Written by the indexing model from the issue text.
Description
- Rollup Plugin Name: yaml
- Rollup Plugin Version: 5.0.0
Feature Use Case
Support new js-yaml@5.x parser and its new features
- https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md#500---2026-06-20
- https://github.com/nodeca/js-yaml/blob/master/docs/migrate_v4_to_v5.md
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-yamlto 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/parserOptionsvia the plugin config, which will be forward them to the internalYAML.load/YAML.loadAllcalls.- Move
js-yamlaspeerDependencyinstead ofdevDependencyrequiring explicit install, ensures that schemas can be imported fromjs-yamlat consumers and forward viaparserOptions - Or re-export the schemas and forward them through @rollup/plugin-yaml package.
- Move
Cheers ✌️
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 635
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rollup/plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Babel 8 support Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·