-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
336 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
--- | ||
title: Version 9.4.0 release notes | ||
description: Learn about the new localization support, custom script enhancements, and more in the Version 9.4.0 release notes of Front Matter CMS. | ||
date: 2023-12-12T08:32:08.859Z | ||
lastmod: 2023-12-12T15:37:20.732Z | ||
slug: v9.4.0 | ||
type: changelog | ||
--- | ||
|
||
## Localization of Front Matter CMS | ||
|
||
Now both the webviews and the extension dialogs, messages, and notifications are localized. Currently we support the following languages: | ||
|
||
- German | ||
- Spanish | ||
- French | ||
- Italian | ||
- Japanese | ||
- Korean | ||
- Portuguese (Brazil) | ||
- English | ||
|
||
> **Important**: If a human translation is not available for the language, it will be translated using Azure Translation Services. This means that the translation might not be 100% accurate. In case you want to help us translate Front Matter CMS to your language, please check out the [localization documentation](/docs/contributing#translating-the-extension). | ||
## Custom script enhancements | ||
|
||
With the [@frontmatter/extensibility](https://www.npmjs.com/package/@frontmatter/extensibility) package, it is easier to create custom scripts for Front Matter CMS and it allows you to do more like asking questions to the user. | ||
|
||
### Getting the arguments | ||
|
||
Previously, you had to manually parse the arguments from the `process.argv` array. Now you can use the `getArguments` function from the `@frontmatter/extensibility` package. | ||
|
||
```ts | ||
import { ContentScript, MediaScript } from '@frontmatter/extensibility'; | ||
|
||
// In content scripts | ||
const contentScriptArgs = ContentScript.getArguments(); | ||
|
||
// In media scripts | ||
const mediaScriptArgs = MediaScript.getArguments(); | ||
``` | ||
|
||
> **Info**: More information can be found in the [creating a content script](/docs/custom-actions#creating-a-content-script) and [creating a media script](/docs/custom-actions#creating-a-media-script) documentation. | ||
### Asking questions | ||
|
||
You can now ask questions to the user when running a script. This can be done by using the `askQuestion` function from the `@frontmatter/extensibility` package. | ||
|
||
```ts | ||
import { MediaScript } from '@frontmatter/extensibility'; | ||
|
||
const mediaScriptArgs = MediaScript.getArguments(); | ||
|
||
const answers = mediaScriptArgs.answers; | ||
if (!answers) { | ||
MediaScript.askQuestions([{ | ||
name: "width", | ||
message: "What is the width of the image?", | ||
default: image.width | ||
}]); | ||
return; | ||
} | ||
|
||
const width = answers.width; | ||
|
||
// Do something with the width | ||
``` | ||
|
||
> **Info**: More information can be found in the [asking questions to users](/docs/custom-actions#asking-questions-to-users) documentation. | ||
## Scheduled content | ||
|
||
You can now filter and group the content dashboard by scheduled content. This allows you to see which content is scheduled to be published in the future. | ||
|
||
![Scheduled content](/releases/v9.4.0/scheduled-content.png) | ||
|
||
## Creating sub-content | ||
|
||
When creating sub-content, you can now select the parent folder. This allows you to create you content in any folder you want. | ||
|
||
You can enable this feature on the content type by setting the `allowAsSubContent` or `isSubContent` property to `true`. | ||
|
||
> **Info**: More information can be found in the [creating sub-content](/docs/content-creation/content-types#creating-sub-content) documentation. | ||
## Content type name shown in the panel | ||
|
||
A small enhancement which we added in this release to the editor panel is the content type name in the metadata section. Now you can easily see which content type your content is using. | ||
|
||
![Content type name](/releases/v9.4.0/content-type-name.png) | ||
|
||
## Related issues/enhancements | ||
|
||
### ✨ New features | ||
|
||
- Localization implemented for the whole extension | ||
|
||
### 🎨 Enhancements | ||
|
||
- [#273](https://github.com/estruyf/vscode-front-matter/issues/273): Allow single value arrays to be set as a string with the `singleValueAsString` field property | ||
- [#686](https://github.com/estruyf/vscode-front-matter/issues/686): Allow script authors to ask questions during script execution | ||
- [#688](https://github.com/estruyf/vscode-front-matter/issues/688): Allow to show the scheduled articles in the content dashboard (filter and group) | ||
- [#690](https://github.com/estruyf/vscode-front-matter/issues/690): Added the ability to filter values in the `contentRelationship` field | ||
- [#700](https://github.com/estruyf/vscode-front-matter/issues/700): Added the `{{pathToken.relPath}}` placeholder for the `previewPath` property | ||
- [#706](https://github.com/estruyf/vscode-front-matter/issues/706): Show the error of scripts failing in the Front Matter output panel | ||
- [#709](https://github.com/estruyf/vscode-front-matter/issues/709): Take "where clause" into account on content creation | ||
- [#710](https://github.com/estruyf/vscode-front-matter/issues/710): Hide child field when parent field its "when clause" is not met, also remove the fields from the content | ||
- [#713](https://github.com/estruyf/vscode-front-matter/issues/713): Add the ability to always use quotes around string values in front matter | ||
- [#722](https://github.com/estruyf/vscode-front-matter/issues/722): Allow to create sub-content which shows a dialog to select the parent folder | ||
|
||
### ⚡️ Optimizations | ||
|
||
- Dashboard layout grid optimizations | ||
- Added the content-type name to the metadata section in the panel | ||
- New implementation of the combobox for the `contentRelationship` field | ||
|
||
### 🐞 Fixes | ||
|
||
- [#685](https://github.com/estruyf/vscode-front-matter/issues/685): Fix when using non-string values in the tag picker | ||
- [#691](https://github.com/estruyf/vscode-front-matter/issues/691): Silent authentication retrieval for GitHub sponsors | ||
- [#694](https://github.com/estruyf/vscode-front-matter/issues/694): Start terminal session from the folder where the `frontmatter.json` file is located | ||
- [#696](https://github.com/estruyf/vscode-front-matter/issues/696): Close the local server terminal on restart | ||
- [#699](https://github.com/estruyf/vscode-front-matter/issues/699): Changing border theme variable for the dashboard header | ||
- [#703](https://github.com/estruyf/vscode-front-matter/issues/703): Fix retrieval of Astro Collections for `pnpm` projects | ||
- [#704](https://github.com/estruyf/vscode-front-matter/issues/704): Fix `zod` schema script for optional fields | ||
- [#707](https://github.com/estruyf/vscode-front-matter/issues/707): Fix `clearEmpty` issue with `draft` and `boolean` fields which are by default set to `true` | ||
- [#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 | ||
- [#719](https://github.com/estruyf/vscode-front-matter/issues/719): Fix styling on data view with objects views |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5d9cd08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vscode-front-matter – ./
vscode-front-matter-git-main-vscode-frontmatter.vercel.app
frontmatter.codes
vscode-front-matter.vercel.app
www.frontmatter.codes
vscode-front-matter-vscode-frontmatter.vercel.app