mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-04 17:01:05 +02:00
Issue: DataFileHelper::process: Function yaml.safeLoad is removed in js-yaml 4. #717
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user