You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would recommend to make this feature an option instead of removing it completely.
There's nothing in 1.2 that can replace this feature, and if an app clearly documents that this is supported in its YAML files, then it should be fine to use.
Ideally it should be off by default, but that could break stuff of course.
remcohaszing
changed the title
Merge keys shouldn’t be supported
Merge keys shouldn’t be supported by default
Nov 16, 2021
Support for merge keys was removed in YAML 1.2. However, this is still supported in
js-yaml
.See changes in version 1.2
Since
js-yaml
aims to be YAML 1.2 compatible, it should treat<<
as a regular key.Given the following script:
Expected output:
Actual output:
I realize many people expect this to work the way as it does now, so a fix should be considered carefully, possibly in a major version release.
The text was updated successfully, but these errors were encountered: