From a54ce69b9730b14cbb8cbbf8c454b9a2406b8fe6 Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Thu, 14 Mar 2024 10:03:03 -0500 Subject: [PATCH] Do not require `plugins`, `experimentalPlugins` in the FaustConfig type (#1840) * Do not require plugins in Faust Config * Create changeset --- .changeset/hungry-yaks-push.md | 5 +++++ packages/faustwp-core/src/config/index.ts | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/hungry-yaks-push.md diff --git a/.changeset/hungry-yaks-push.md b/.changeset/hungry-yaks-push.md new file mode 100644 index 000000000..769286464 --- /dev/null +++ b/.changeset/hungry-yaks-push.md @@ -0,0 +1,5 @@ +--- +'@faustwp/core': patch +--- + +Fixed: FaustConfig no longer requires `plugins` or `experimentalPlugins` properties diff --git a/packages/faustwp-core/src/config/index.ts b/packages/faustwp-core/src/config/index.ts index d97e9230c..cdc8a36d7 100644 --- a/packages/faustwp-core/src/config/index.ts +++ b/packages/faustwp-core/src/config/index.ts @@ -11,8 +11,11 @@ export interface FaustConfig { templates: { [key: string]: WordPressTemplate }; experimentalToolbar?: boolean; loginPagePath?: string; - experimentalPlugins: FaustPlugin[]; - plugins: FaustPlugin[]; + /** + * @deprecated Plugins are no longer experimental, use "plugins" instead. + */ + experimentalPlugins?: FaustPlugin[]; + plugins?: FaustPlugin[]; possibleTypes: PossibleTypesMap; basePath?: string; /**