Issue: DataFileHelper::process: Function yaml.safeLoad is removed in js-yaml 4. #717

This commit is contained in:
Elio Struyf
2023-12-08 10:26:42 +01:00
parent 5444925cf4
commit 0f07be3e3b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@
- [#711](https://github.com/estruyf/vscode-front-matter/issues/711): Fix in character mapping in the slug field
- [#712](https://github.com/estruyf/vscode-front-matter/issues/712): Keep the search context when deleting media files
- [#714](https://github.com/estruyf/vscode-front-matter/issues/714): Fix for taxonomy filtering from taxonomy view to content view
- [#717](https://github.com/estruyf/vscode-front-matter/issues/717): Fix in loading yaml data files
- [#718](https://github.com/estruyf/vscode-front-matter/issues/718): Fix JSON schema for the `frontMatter.panel.actions.disabled` setting
## [9.3.1] - 2023-10-27
+1 -1
View File
@@ -56,7 +56,7 @@ export class DataFileHelper {
const dataFile = await DataFileHelper.get(file);
if (fileType === 'yaml') {
return yaml.safeLoad(dataFile || '');
return yaml.load(dataFile || '');
} else {
return dataFile ? JSON.parse(dataFile) : undefined;
}