Is your feature request related to a problem? Please describe.
YAML defines maps. YAML maps map really well to the JavaScript Map type, but this is often inconvenient to use in practice. So I think the current default to use a plain object by default makes sense.
The problem however, is that the default Object prototype has some default properties. This may lead to bugs, such as prototype pollution. While I don’t expect to see this happen inside of this package, it might happen in user code that consumes the values used with this package.
Describe the solution you'd like
Use the null prototype for parsed YAML maps.
Describe alternatives you've considered
N/A
Additional context
Is your feature request related to a problem? Please describe.
YAML defines maps. YAML maps map really well to the JavaScript
Maptype, but this is often inconvenient to use in practice. So I think the current default to use a plain object by default makes sense.The problem however, is that the default
Objectprototype has some default properties. This may lead to bugs, such as prototype pollution. While I don’t expect to see this happen inside of this package, it might happen in user code that consumes the values used with this package.Describe the solution you'd like
Use the
nullprototype for parsed YAML maps.Describe alternatives you've considered
N/A
Additional context