Faust.js™ - The Headless WordPress Framework
OTHER License
Bot releases are visible (Hide)
Published by blakewilson over 1 year ago
Published by josephfusco over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
contentBlocks
field to blocks
in WordpressBlocksViewercjs
dist build for CommonJS supportPublished by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
8c48faa: Remove disableLogging
property from FaustConfig
TypeScript type, as this was only a property in old Faust.
681197e: Added an experimental toolbar in order to create a familiar experience for WordPress publishers & developers. Faust users can opt-in to displaying the Toolbar by defining experimentalToolbar: true
within their project's faust.config.js.
fcc4c49: Introduced the useLogin
hook to handle logging into your Faust app without being redirected to WordPress:
import { useLogin } from '@faustwp/core';
const { login, loading, data, error } = useLogin();
Please visit the reference docs for more information on the API.
8ad77cb: Bug fix: Fixes Hot Module Reload (HMR) issue within wp-templates
56b7a8f: Added a new skeleton component for toolbar nodes. Users can leverage this new component to handle loading states within custom toolbar nodes.
f28f912: Exports getNextServerSideProps
in core
index.
fcc4c49: Introduced the useLogout
hook to handle logging out in your Faust app:
import { useLogout } from '@faustwp/core';
const { error, logout, loading } = useLogin();
Please visit the reference docs for more information on the API.
fcc4c49: Re-introduced the useAuth
hook to handle authentication in your Faust app:
import {useAuth} from '@faustwp/core'
const {isAuthenticated, isReady, loginUrl} = useAuth(options?);
Please visit the reference docs for more information on the API.
Published by github-actions[bot] over 1 year ago
div
instead of span
Published by github-actions[bot] over 1 year ago
0da4e04: Add locale to context that is passed to template variables
9caf4dd: Implemented getSitemapProps
from old Faust for sitemap supported! getSitemapProps
in new Faust has less config that is required. To get started, create pages/sitemap.xml.js
with the following content:
import { getSitemapProps } from '@faustwp/core';
export default function Sitemap() {}
export function getServerSideProps(context) {
return getSitemapProps(context, {
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
});
}
For more information, visit the sitemaps guide or the getSitemapProps
reference doc
Published by github-actions[bot] over 1 year ago
revalidate
property in getNextStaticProps.Published by github-actions[bot] over 1 year ago
faust dev
and faust build
commands.FAUST_DEBUG
environment variable to either true
or 1
Published by github-actions[bot] over 1 year ago
x-using: faust
. This replaces the previous header, x-powered-by: Faust
, as it was being overwritten by various server hosts.FAUST_DEBUG
environment variable to either true
or 1
Published by github-actions[bot] almost 2 years ago
d0c1395: Created two new TypeScript types (FaustPlugin
and FaustHooks
) which can be used to type check Faust plugins:
import { FaustHooks, FaustPlugin } from '@faustwp/core';
export class MyPlugin implements FaustPlugin {
apply(hooks: FaustHooks) {}
}
Published by github-actions[bot] almost 2 years ago
Published by blakewilson almost 2 years ago
Published by github-actions[bot] almost 2 years ago
faust telemetry status
, faust telemetry enable
, & faust telemetry disable
.faust faust-telemetry
, which previously required additional user interaction.FAUST_NO_INTERACTION
as the CLI no longer requires interaction.Published by github-actions[bot] almost 2 years ago
__TEMPLATE_VARIABLES__
prop.FaustTemplateProps<TemplateDataType, AdditionalProps>
TypeScript type so you can type your incoming props from Faust TemplatesgetWordPressProps
now sets a smart default revalidate
of 900
(15 minutes) when using getStaticProps
getWordPressProps()
now accepts props
and revalidate
as apart of its options
object parameter.Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
.env
variable, FAUST_NO_INTERACTION, intended for CI environments.Published by github-actions[bot] almost 2 years ago
5990bb7: Added the following exports to @faustwp/core
:
getWpUrl()
getGraphqlEndpoint()
getApolloClient()
addApolloState()