Releases: wpengine/faustjs
Releases · wpengine/faustjs
@faustwp/[email protected]
Minor Changes
- 085c30d: Added a new
skip
config option touseAuth
to conditionally invoke the hook
Patch Changes
- 085c30d: Fixed a bug that made a request to the token endpoint on every page in
@faustwp/[email protected]
@faustwp/[email protected]
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 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.
@faustwp/[email protected]
Minor Changes
-
c79c8c2: Added the ability to provide multiple queries to a given Faust Template:
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
orComponent.query
, but not both.
@faustwp/[email protected]
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.
@faustwp/[email protected]
Minor Changes
-
8dcda28: Add support for RichText control fields.
Add a
source
andselector
in your block attributes string field:... "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:
<div style={styles} className="rich-text" dangerouslySetInnerHTML={{ __html: attributes.richText }} />
Once the blocks are synced you will be able to use it as a RichText field.
Patch Changes
- 66c1e24: Publish Readme to NPM
@faustwp/[email protected]
Patch Changes
- 78a061a: Fixed a bug that caused links to files in wp-content to be rewritten to the Faust Front-end site URL when they should not have been.
- 2559958: Bug Fix: Fixed missing call to autosave when using Post/Page previews.
- 75f5c80: Fixed a bug where links were rewritten to the Faust Front-end Site URL when using the post editor, resulting in those rewritten links being saved to the post content and guid fields when they shouldn't be. These links are now saved with the URL pointing to the WP site, as they should be. They are still rewritten at runtime to link to the Front-end Site URL when appropriate.
@faustwp/[email protected]
Patch Changes
-
626207b: Added: New util for fetching data on the client side. In a client component (
use client
), you can now use Apollo'suseQuery
to fetch data once your application is wrapped with the<FaustProvider>
component. This new component is available via:import { FaustProvider } from '@faustwp/experimental-app-router/ssr';
@faustwp/[email protected]
Patch Changes
- c75ab2b: Bug: Quote blockset "output-path" to prevent issues with space in paths.
@faustwp/[email protected]
Patch Changes
- 6276c80: Fix broken build from 0.2.0