From 5b1f8cadeb3f9d2e3276284980e40a07bc917b20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 11 Jan 2024 21:14:30 +0000 Subject: [PATCH] Version Packages --- .changeset/brave-horses-laugh.md | 5 --- .changeset/breezy-drinks-wink.md | 5 --- .changeset/eleven-elephants-raise.md | 29 --------------- .changeset/slow-mayflies-cough.md | 5 --- .changeset/sour-boxes-cheer.md | 31 ---------------- .changeset/strong-shoes-lay.md | 5 --- .changeset/tall-jobs-belly.md | 5 --- examples/next/app-router/package.json | 2 +- examples/next/block-support/package.json | 4 +-- .../next/faustwp-getting-started/package.json | 2 +- packages/block-editor-utils/CHANGELOG.md | 36 +++++++++++++++++++ packages/block-editor-utils/package.json | 2 +- packages/faustwp-core/CHANGELOG.md | 30 ++++++++++++++++ packages/faustwp-core/package.json | 2 +- plugins/faustwp/CHANGELOG.md | 12 +++++++ plugins/faustwp/faustwp.php | 2 +- plugins/faustwp/package.json | 2 +- plugins/faustwp/readme.txt | 24 +++++++------ 18 files changed, 99 insertions(+), 104 deletions(-) delete mode 100644 .changeset/brave-horses-laugh.md delete mode 100644 .changeset/breezy-drinks-wink.md delete mode 100644 .changeset/eleven-elephants-raise.md delete mode 100644 .changeset/slow-mayflies-cough.md delete mode 100644 .changeset/sour-boxes-cheer.md delete mode 100644 .changeset/strong-shoes-lay.md delete mode 100644 .changeset/tall-jobs-belly.md diff --git a/.changeset/brave-horses-laugh.md b/.changeset/brave-horses-laugh.md deleted file mode 100644 index 975c86097..000000000 --- a/.changeset/brave-horses-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/wordpress-plugin': minor ---- - -Requests to robots.txt on the WordPress site are now accessible and are no longer redirected to the front-end site. diff --git a/.changeset/breezy-drinks-wink.md b/.changeset/breezy-drinks-wink.md deleted file mode 100644 index 0859972f0..000000000 --- a/.changeset/breezy-drinks-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/block-editor-utils': patch ---- - -Publish Readme to NPM diff --git a/.changeset/eleven-elephants-raise.md b/.changeset/eleven-elephants-raise.md deleted file mode 100644 index df7427a08..000000000 --- a/.changeset/eleven-elephants-raise.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@faustwp/core': minor ---- - -Added the ability to provide multiple queries to a given Faust Template: - -```js -import {GET_POST, GET_LAYOUT} from './queries.js' - -export default function Component(props) { -} - -Component.queries = [ - { - query: GET_LAYOUT - }, - { - query: GET_POST, - variables: (seedNode, ctx) { - return { - id: seedNode.databaseId, - asPreview: ctx?.asPreview - } - } - } -] -``` - -**Note:** Your Faust template can use either `Component.queries` or `Component.query`, but not both. diff --git a/.changeset/slow-mayflies-cough.md b/.changeset/slow-mayflies-cough.md deleted file mode 100644 index e0ad7f7a8..000000000 --- a/.changeset/slow-mayflies-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/wordpress-plugin': patch ---- - -Improved plugin's process for handling blockset file uploads by leveraging WordPress' native [unzip_file](https://developer.wordpress.org/reference/functions/unzip_file/) function. \ No newline at end of file diff --git a/.changeset/sour-boxes-cheer.md b/.changeset/sour-boxes-cheer.md deleted file mode 100644 index 8d90ff41d..000000000 --- a/.changeset/sour-boxes-cheer.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@faustwp/block-editor-utils': minor ---- - -Add support for RichText control fields. - -Add a `source` and `selector` in your block attributes string field: - -```json -... -"attributes": { - "richText": { - "type": "string", - "source": "html", - "selector": ".rich-text", - "default": "Hello World" - } - } -``` - -Then in your component definition make sure the selector specifier matches the component you want to render as rich text: - -```js -
-``` - -Once the blocks are synced you will be able to use it as a RichText field. diff --git a/.changeset/strong-shoes-lay.md b/.changeset/strong-shoes-lay.md deleted file mode 100644 index 6d131dd04..000000000 --- a/.changeset/strong-shoes-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/wordpress-plugin': patch ---- - -Fixed issue where term URIs were rewritten from relative to absolute during GraphQL requests when they should not have been. This was causing nodeByUri queries for terms to fail. diff --git a/.changeset/tall-jobs-belly.md b/.changeset/tall-jobs-belly.md deleted file mode 100644 index e6cdd9ff7..000000000 --- a/.changeset/tall-jobs-belly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/wordpress-plugin': patch ---- - -Adds phpstan to CI/CD workflow. Runs as part of the lint step. diff --git a/examples/next/app-router/package.json b/examples/next/app-router/package.json index 25c71dae8..aac7eaf48 100644 --- a/examples/next/app-router/package.json +++ b/examples/next/app-router/package.json @@ -13,7 +13,7 @@ "@apollo/client": "^3.8.0", "@apollo/experimental-nextjs-app-support": "^0.5.1", "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.2.0", + "@faustwp/core": "^1.3.0", "@faustwp/experimental-app-router": "^0.2.2", "graphql": "^16.7.1", "next": "^14.0.1", diff --git a/examples/next/block-support/package.json b/examples/next/block-support/package.json index a86fc9ec9..fffb62b49 100644 --- a/examples/next/block-support/package.json +++ b/examples/next/block-support/package.json @@ -14,7 +14,7 @@ "@apollo/client": "^3.8.8", "@faustwp/blocks": "2.0.0", "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.2.0", + "@faustwp/core": "^1.3.0", "@wordpress/base-styles": "^4.38.0", "@wordpress/block-library": "^8.24.0", "classnames": "^2.3.1", @@ -26,7 +26,7 @@ }, "devDependencies": { "@wordpress/scripts": "26.18.0", - "@faustwp/block-editor-utils": "0.0.5" + "@faustwp/block-editor-utils": "0.1.0" }, "engines": { "node": ">=18", diff --git a/examples/next/faustwp-getting-started/package.json b/examples/next/faustwp-getting-started/package.json index ad28d5d5b..a5169d761 100644 --- a/examples/next/faustwp-getting-started/package.json +++ b/examples/next/faustwp-getting-started/package.json @@ -12,7 +12,7 @@ "dependencies": { "@apollo/client": "^3.6.6", "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.2.0", + "@faustwp/core": "^1.3.0", "@wordpress/base-styles": "^4.36.0", "@wordpress/block-library": "^7.19.0", "classnames": "^2.3.1", diff --git a/packages/block-editor-utils/CHANGELOG.md b/packages/block-editor-utils/CHANGELOG.md index 1db6d6ca9..6b9809fd4 100644 --- a/packages/block-editor-utils/CHANGELOG.md +++ b/packages/block-editor-utils/CHANGELOG.md @@ -1,5 +1,41 @@ # @faustwp/block-editor-utils +## 0.1.0 + +### Minor Changes + +- 8dcda28: Add support for RichText control fields. + + Add a `source` and `selector` in your block attributes string field: + + ```json + ... + "attributes": { + "richText": { + "type": "string", + "source": "html", + "selector": ".rich-text", + "default": "Hello World" + } + } + ``` + + Then in your component definition make sure the selector specifier matches the component you want to render as rich text: + + ```js +
+ ``` + + Once the blocks are synced you will be able to use it as a RichText field. + +### Patch Changes + +- 66c1e24: Publish Readme to NPM + ## 0.0.5 ### Patch Changes diff --git a/packages/block-editor-utils/package.json b/packages/block-editor-utils/package.json index 37cefe379..c3c03af57 100644 --- a/packages/block-editor-utils/package.json +++ b/packages/block-editor-utils/package.json @@ -1,6 +1,6 @@ { "name": "@faustwp/block-editor-utils", - "version": "0.0.5", + "version": "0.1.0", "description": "Faust Block Editor Utils Package", "main": "dist/cjs/index.js", "module": "dist/mjs/index.js", diff --git a/packages/faustwp-core/CHANGELOG.md b/packages/faustwp-core/CHANGELOG.md index b876e39d5..30f551ab1 100644 --- a/packages/faustwp-core/CHANGELOG.md +++ b/packages/faustwp-core/CHANGELOG.md @@ -1,5 +1,35 @@ # @faustwp/core +## 1.3.0 + +### Minor Changes + +- c79c8c2: Added the ability to provide multiple queries to a given Faust Template: + + ```js + import {GET_POST, GET_LAYOUT} from './queries.js' + + export default function Component(props) { + } + + Component.queries = [ + { + query: GET_LAYOUT + }, + { + query: GET_POST, + variables: (seedNode, ctx) { + return { + id: seedNode.databaseId, + asPreview: ctx?.asPreview + } + } + } + ] + ``` + + **Note:** Your Faust template can use either `Component.queries` or `Component.query`, but not both. + ## 1.2.0 ### Patch Changes diff --git a/packages/faustwp-core/package.json b/packages/faustwp-core/package.json index ac327a551..eeab62a82 100644 --- a/packages/faustwp-core/package.json +++ b/packages/faustwp-core/package.json @@ -1,6 +1,6 @@ { "name": "@faustwp/core", - "version": "1.2.0", + "version": "1.3.0", "description": "Faust is a framework that aims to make headless WordPress as streamlined as classic WordPress for both developers and publishers", "main": "dist/cjs/index.js", "module": "dist/mjs/index.js", diff --git a/plugins/faustwp/CHANGELOG.md b/plugins/faustwp/CHANGELOG.md index 29d9c9a05..abce29a9c 100644 --- a/plugins/faustwp/CHANGELOG.md +++ b/plugins/faustwp/CHANGELOG.md @@ -1,5 +1,17 @@ # Faust +## 1.2.0 + +### Minor Changes + +- 5f78b15: Requests to robots.txt on the WordPress site are now accessible and are no longer redirected to the front-end site. + +### Patch Changes + +- 205fb09: Improved plugin's process for handling blockset file uploads by leveraging WordPress' native [unzip_file](https://developer.wordpress.org/reference/functions/unzip_file/) function. +- 41a6d9c: Fixed issue where term URIs were rewritten from relative to absolute during GraphQL requests when they should not have been. This was causing nodeByUri queries for terms to fail. +- e725bda: Adds phpstan to CI/CD workflow. Runs as part of the lint step. + ## 1.1.2 ### Patch Changes diff --git a/plugins/faustwp/faustwp.php b/plugins/faustwp/faustwp.php index 095492ea0..e4f532417 100644 --- a/plugins/faustwp/faustwp.php +++ b/plugins/faustwp/faustwp.php @@ -9,7 +9,7 @@ * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: faustwp * Domain Path: /languages - * Version: 1.1.2 + * Version: 1.2.0 * Requires PHP: 7.2 * Requires at least: 5.7 * diff --git a/plugins/faustwp/package.json b/plugins/faustwp/package.json index 77ee19b1e..05671f34f 100644 --- a/plugins/faustwp/package.json +++ b/plugins/faustwp/package.json @@ -1,5 +1,5 @@ { "name": "@faustwp/wordpress-plugin", - "version": "1.1.2", + "version": "1.2.0", "private": true } diff --git a/plugins/faustwp/readme.txt b/plugins/faustwp/readme.txt index c02b4dabd..50f27c4fa 100644 --- a/plugins/faustwp/readme.txt +++ b/plugins/faustwp/readme.txt @@ -3,7 +3,7 @@ Contributors: antpb, apmatthe, blakewpe, chriswiegman, claygriffiths, jasonkonen Tags: faustjs, faust, headless, decoupled, composable-architecture Requires at least: 5.7 Tested up to: 6.4 -Stable tag: 1.1.2 +Stable tag: 1.2.0 Requires PHP: 7.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -54,6 +54,18 @@ plugins/faustwp/.wordpress-org/screenshot-3.png == Changelog == += 1.2.0 = + +### Minor Changes + +- 5f78b15: Requests to robots.txt on the WordPress site are now accessible and are no longer redirected to the front-end site. + +### Patch Changes + +- 205fb09: Improved plugin's process for handling blockset file uploads by leveraging WordPress' native [unzip_file](https://developer.wordpress.org/reference/functions/unzip_file/) function. +- 41a6d9c: Fixed issue where term URIs were rewritten from relative to absolute during GraphQL requests when they should not have been. This was causing nodeByUri queries for terms to fail. +- e725bda: Adds phpstan to CI/CD workflow. Runs as part of the lint step. + = 1.1.2 = ### Patch Changes @@ -68,14 +80,4 @@ plugins/faustwp/.wordpress-org/screenshot-3.png - b2c0fd3: Updated the settings page to improve descriptions and documentation links. -= 1.1.0 = - -### Minor Changes - -- c29f83d: Add blockset command in @faust/cli and faustwp plugin. - - Add your blocks inside `wp-blocks` folder. Then run `faust blockset` to compile and upload the blocks into WordPress. Blocks will be available in the editor. - -- d3d30aa: Added support for authenticated WPGraphQL introspection queries using FAUST_SECRET_KEY. It is no longer required to enable "Public Introspection" in WPGraphQL. - [View the full changelog](https://github.com/wpengine/faustjs/blob/canary/plugins/faustwp/CHANGELOG.md) \ No newline at end of file