Frontity release: Preview support in the Embedded proof of concept

New features

Enhancements

In order to make the support the preview and auth headers in Source packages, we introduced a lot of enhancements:

  • Use the URL search param frontity_name instead of just name for frontity multisite. #568
  • Remove all query string parameters that start with frontity_ from the page querystring and pass them (camelCased) to state.frontity.options . #568
  • Add the dotenv to support loading environment variables from .env files. #568
  • Add type for frontity options ( state.frontity.options ). #568
  • New post type handlers for plain query permalinks #564:
    • /?p=ID for posts and custom post types.
    • /?page_id=ID for pages.
  • Sort the link query alphabetically. For example, ?k1=v1&k2=v2 is now the same than ?k2=v2&k1=v1 . #564
  • Support the preview=true query in the PostType and PostTypeWithQuery handlers.If that query is present, the handlers will do an additional request to get the latest revision and they will substitute the title , content and excerpt with the last one. #564
  • Add queryString to the list of link params we get/set using
    libraries.source.parse and libraries.source.stringify . #564
  • Support regular expression patterns to match queries in the URLs, like “RegExp:(?|&)preview=true”. #564
  • Rename RouteParams type to LinkParams . The word route is now used to
    describe a link without the pagination part. #564
  • Update the Analytics packages READMEs to adds Settings and Usage of each of them: @frontity/analytics, @frontity/google-analytics, @frontity/google-tag-manager-analytics, @frontity/comscore. #573

Bug fixes

  • Actions Fetch Force Parameter Not Respected in wp-source Package. #577
  • isHome should be false when isSearch is true. #481
  • If a handler pattern isn’t matched we should return a Server Error, #331

Packages Changelog


@frontity/[email protected]

Minor Changes

Patch Changes


@frontity/[email protected]

Minor Changes


[email protected]

Minor Changes

Patch Changes


@frontity/[email protected]

Minor Changes

Patch Changes


@frontity/[email protected]

Minor Changes

Patch Changes


@frontity/[email protected]

Minor Changes


@frontity/[email protected]

Minor Changes

  • 63fc4559 #564 Thanks @luisherranz! - New post type handlers for plain query permalinks:
    • /?p=ID for posts and custom post types.
    • /?page_id=ID for pages.
  • 5553daf4 #568 Thanks @michalczaplinski! - Add support for adding auth headers to the source packages by setting state.source.auth . This will allow users to e.g. pass Basic Auth header in all requests. Feature Discussion: Auth header in Source packages and Frontity Query Options
  • 63fc4559 #564 Thanks @luisherranz! - Sort the link query alphabetically. For example, ?k1=v1&k2=v2 is now the same than ?k2=v2&k1=v1 .
  • 63fc4559 #564 Thanks @luisherranz! - Support the preview=true query in the PostType and PostTypeWithQuery handlers.If that query is present, the handlers will do an additional request to get
    the latest revision and they will substitute the title , content and
    excerpt with the last one.
  • 63fc4559 #564 Thanks @luisherranz! - Add queryString to the list of link params we get/set using
    libraries.source.parse and libraries.source.stringify .
  • 63fc4559 #564 Thanks @luisherranz! - Support regular expression patterns to match queries in the URLs, like
    “RegExp:(?|&)preview=true”.

Patch Changes


@frontity/[email protected]

Patch Changes

6 Likes

This looks great!

3 Likes