faustjs

Faust.js™ - The Headless WordPress Framework

OTHER License

Downloads
65.5K
Stars
1.3K
Committers
47

Bot releases are visible (Hide)

faustjs - @faustwp/[email protected]

Published by blakewilson over 1 year ago

faustjs - @faustwp/[email protected]

Published by josephfusco over 1 year ago

faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 1c8f79b: Type Definition fixes+improvements for Blocks and Core
  • d775f47: Rectifies return type of getWordPressProps and getNextStaticProps for TypeScript
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 02f7bee: Include Platform info in telemetry payload
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • 9f4c23d: [BREAKING] Renamed contentBlocks field to blocks in WordpressBlocksViewer

Patch Changes

  • 7be7dfc: Properly exports cjs dist build for CommonJS support
  • 1253e86: Bug: Reference correct type definitions in package.json
  • 1c8f79b: Type Definition fixes+improvements for Blocks and Core
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 64e4227: Fixed issue "Cannot find module"
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 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.

faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • ef9ebdc: Change DefaultBlock to use div instead of span
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 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

faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • f3a2d9e: Bug Fix: Propagate revalidate property in getNextStaticProps.
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 0111d9c: Fixed issue where the child process for Next.js CLI was preventing the node server from starting up in a Windows environment.
  • c545b11: Fixed a bug where the CLI was overriding the NODE_ENV environment variable if it was predefined
  • 15603a9: Telemetry events will now be send for any Faust command. Previously, telemetry events were only being sent for the faust dev and faust build commands.
  • 5c15889: Fixed an issue where telemetry data could be incomplete. Now, if the request to get telemetry data from WordPress fails, we will not continue on with the telemetry request.
  • c545b11: Added a debug mode by setting the FAUST_DEBUG environment variable to either true or 1
  • 4dce6dc: Added support for FAUST_SECRET_KEY in addition to the pre-existing FAUSTWP_SECRET_KEY.
faustjs - @faustwp/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 0fa846a: Added new header, x-using: faust. This replaces the previous header, x-powered-by: Faust, as it was being overwritten by various server hosts.
  • c545b11: Added a debug mode by setting the FAUST_DEBUG environment variable to either true or 1
  • 4dce6dc: Added support for FAUST_SECRET_KEY in addition to the pre-existing FAUSTWP_SECRET_KEY.
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • 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) {}
    }
    
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Minor Changes

  • a700651: Initial Blocks package
faustjs - @faustwp/[email protected]

Published by blakewilson almost 2 years ago

Patch Changes

  • c016c9f: Update plugin title in changelog
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Minor Changes

  • fa2009f: Added new telemetry commands: faust telemetry status, faust telemetry enable, & faust telemetry disable.
    These new commands replace faust faust-telemetry, which previously required additional user interaction.
    Removed FAUST_NO_INTERACTION as the CLI no longer requires interaction.
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • be61b71: Added: Template variables are now being returned to the client via the __TEMPLATE_VARIABLES__ prop.
  • d1f5cc4: Added: FaustTemplateProps<TemplateDataType, AdditionalProps> TypeScript type so you can type your incoming props from Faust Templates
  • be61b71: getWordPressProps now sets a smart default revalidate of 900 (15 minutes) when using getStaticProps
  • be61b71: getWordPressProps() now accepts props and revalidate as apart of its options object parameter.
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • 0c03272: Fixes: CLI does not return non zero exit code on unsuccessful build
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • f5c5867: Added new .env variable, FAUST_NO_INTERACTION, intended for CI environments.
faustjs - @faustwp/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • 5990bb7: Added the following exports to @faustwp/core:

    • getWpUrl()
    • getGraphqlEndpoint()
    • getApolloClient()
    • addApolloState()