Skip to content

Switch to use safeLoad for loading YML files via file.readYAML.#1719

Merged
vladikoff merged 1 commit intomasterfrom
yaml-refactor
Aug 18, 2020
Merged

Switch to use safeLoad for loading YML files via file.readYAML.#1719
vladikoff merged 1 commit intomasterfrom
yaml-refactor

Conversation

@vladikoff
Copy link
Copy Markdown
Member

For previous behaviour please use the following:

readYAML('test/fixtures/utf8.yaml', null, {unsafeLoad: true});

@shama got a sec for an r? 👀

For previous behaviour please use the following:

```
readYAML('test/fixtures/utf8.yaml', null, {unsafeLoad: true});
```
@vladikoff vladikoff requested a review from shama August 17, 2020 15:33
@shama
Copy link
Copy Markdown
Member

shama commented Aug 18, 2020

Seems 👍 to me. I guess if someone is relying on it loading unsafely by default their build will break with this change. IMO is a good thing because if they're relying on an unsafe API they should be explicit about it. My 2 cents.

@vladikoff vladikoff merged commit 7e669ac into master Aug 18, 2020
@vladikoff vladikoff deleted the yaml-refactor branch August 18, 2020 19:02
@vladikoff
Copy link
Copy Markdown
Member Author

Thank you @shama !!! 🎁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants