Skip to content

fix(cli): upgrade js-yaml so undefined is not serialized to yaml

Michael requested to merge fix/yaml-no-undefined into main

Avoid writing YAML like this on migration (and maybe in other places):

[...]
components:
  web:
    vars: !<tag:yaml.org,2002:js/undefined> ''
    dir: .
    build:
      type: node-static
      startCommand: ''
    deploy:
      type: kubernetes
      values:
        application: {}
        jobs: !<tag:yaml.org,2002:js/undefined> ''
        cronjobs: !<tag:yaml.org,2002:js/undefined> ''
[...]

See https://github.com/nodeca/js-yaml/issues/571

The 3 to 4 migration guide has nothing relevant for the cli it seems.

Edited by Michael

Merge request reports