Files
backstage/.changeset/friendly-numbers-accept.md
T
Johan Haals c15d3db0a7 Update .changeset/friendly-numbers-accept.md
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
2021-01-04 16:21:52 +01:00

683 B

@backstage/config-loader
@backstage/config-loader
patch

Deprecate $data and replace it with $include which allows for any type of json value to be read from external files. In addition, $include can be used without a path, which causes the value at the root of the file to be loaded.

Most usages of $data can be directly replaced with $include, except if the referenced value is not a string, in which case the value needs to be changed. For example:

# app-config.yaml
foo:
  $data: foo.yaml#myValue # replacing with $include will turn the value into a number
  $data: bar.yaml#myValue # replacing with $include is safe

# foo.yaml
myValue: 0xf00

# bar.yaml
myValue: bar