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/famous-steaks-enjoy.md b/.changeset/famous-steaks-enjoy.md deleted file mode 100644 index b53595063..000000000 --- a/.changeset/famous-steaks-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/wordpress-plugin': minor ---- - -Added support for anonymous opt-in telemetry. Previously this functionality was in the Faust CLI package, but has been moved to the WordPress plugin instead. All telemetry collection is optional and anonymous, and it is disabled by default. If you were previously opted in from Faust CLI, once you update the Faust CLI packages your site will no longer send telemetry data unless you opt in again from the WordPress plugin. diff --git a/.changeset/polite-snails-melt.md b/.changeset/polite-snails-melt.md deleted file mode 100644 index ea0d94fc5..000000000 --- a/.changeset/polite-snails-melt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/cli': patch ---- - -Adds block_editor_utils and experimental_app_router to telemetry events. 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/.changeset/thick-pugs-appear.md b/.changeset/thick-pugs-appear.md deleted file mode 100644 index 4ff8eab52..000000000 --- a/.changeset/thick-pugs-appear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/cli': major ---- - -**BREAKING**: Removed telemetry CLI commands for `faust telemetry enable/disable/status` for managing and viewing telemetry opt-in status. Telemetry functionality has been moved to the Faust WordPress plugin. Sites that previously opted in from CLI will no longer send telemetry data unless someone opts in from the WordPress side. diff --git a/examples/next/app-router/package.json b/examples/next/app-router/package.json index 25c71dae8..22841c781 100644 --- a/examples/next/app-router/package.json +++ b/examples/next/app-router/package.json @@ -12,8 +12,8 @@ "dependencies": { "@apollo/client": "^3.8.0", "@apollo/experimental-nextjs-app-support": "^0.5.1", - "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.2.0", + "@faustwp/cli": "^2.0.0", + "@faustwp/core": "^2.0.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..d6862d618 100644 --- a/examples/next/block-support/package.json +++ b/examples/next/block-support/package.json @@ -13,8 +13,8 @@ "dependencies": { "@apollo/client": "^3.8.8", "@faustwp/blocks": "2.0.0", - "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.2.0", + "@faustwp/cli": "^2.0.0", + "@faustwp/core": "^2.0.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..663859509 100644 --- a/examples/next/faustwp-getting-started/package.json +++ b/examples/next/faustwp-getting-started/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "@apollo/client": "^3.6.6", - "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.2.0", + "@faustwp/cli": "^2.0.0", + "@faustwp/core": "^2.0.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/experimental-app-router/package.json b/packages/experimental-app-router/package.json index 6cca92d17..91b3a013b 100644 --- a/packages/experimental-app-router/package.json +++ b/packages/experimental-app-router/package.json @@ -58,8 +58,8 @@ "devDependencies": { "@apollo/client": "^3.8.0", "@apollo/experimental-nextjs-app-support": "^0.5.1", - "@faustwp/cli": "^1.2.1", - "@faustwp/core": "^1.1.2", + "@faustwp/cli": "^2.0.0", + "@faustwp/core": "^2.0.0", "@testing-library/jest-dom": "^5.17.0", "@types/node": "^20.4.6", "concurrently": "^8.2.0", diff --git a/packages/faustwp-cli/CHANGELOG.md b/packages/faustwp-cli/CHANGELOG.md index be98df16c..b810d891a 100644 --- a/packages/faustwp-cli/CHANGELOG.md +++ b/packages/faustwp-cli/CHANGELOG.md @@ -1,5 +1,15 @@ # @faustwp/cli +## 2.0.0 + +### Major Changes + +- c163fa5: **BREAKING**: Removed telemetry CLI commands for `faust telemetry enable/disable/status` for managing and viewing telemetry opt-in status. Telemetry functionality has been moved to the Faust WordPress plugin. Sites that previously opted in from CLI will no longer send telemetry data unless someone opts in from the WordPress side. + +### Patch Changes + +- c163fa5: Adds block_editor_utils and experimental_app_router to telemetry events. + ## 1.2.1 ### Patch Changes diff --git a/packages/faustwp-cli/package.json b/packages/faustwp-cli/package.json index 4bd6188fb..6953e7ad5 100644 --- a/packages/faustwp-cli/package.json +++ b/packages/faustwp-cli/package.json @@ -1,6 +1,6 @@ { "name": "@faustwp/cli", - "version": "1.2.1", + "version": "2.0.0", "description": "This modules provides a CLI to develop, build, and serve your Faust apps", "main": "dist/index.js", "type": "module", diff --git a/packages/faustwp-core/CHANGELOG.md b/packages/faustwp-core/CHANGELOG.md index b876e39d5..853993961 100644 --- a/packages/faustwp-core/CHANGELOG.md +++ b/packages/faustwp-core/CHANGELOG.md @@ -1,5 +1,35 @@ # @faustwp/core +## 2.0.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..d371ad723 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": "2.0.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..8d7392965 100644 --- a/plugins/faustwp/CHANGELOG.md +++ b/plugins/faustwp/CHANGELOG.md @@ -1,5 +1,18 @@ # 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. +- c163fa5: Added support for anonymous opt-in telemetry. Previously this functionality was in the Faust CLI package, but has been moved to the WordPress plugin instead. All telemetry collection is optional and anonymous, and it is disabled by default. If you were previously opted in from Faust CLI, once you update the Faust CLI packages your site will no longer send telemetry data unless you opt in again from the WordPress plugin. + +### 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 74a429b8f..6be9b93aa 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..f90ddbf9d 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,19 @@ 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. +- c163fa5: Added support for anonymous opt-in telemetry. Previously this functionality was in the Faust CLI package, but has been moved to the WordPress plugin instead. All telemetry collection is optional and anonymous, and it is disabled by default. If you were previously opted in from Faust CLI, once you update the Faust CLI packages your site will no longer send telemetry data unless you opt in again from the WordPress plugin. + +### 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 +81,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