Frontity release: TwentyTwenty improvements, script and iframe processors, new error handling (and more)

During the last month, we’ve been working on plenty of new features and bug fixes. Here you have what was included in the last release:

New features

Bug fixes

  • Second source.populate library call in taxonomy handler overrides previous content #245.
  • Array elements from package state are duplicated on csr #237.
  • Return 404 status for 404 pages #264.
  • Fix TS type inconsistencies #307.
  • Frontity shows & when ampersand is used in a title #268.
  • npx frontity create adds mars-theme’s settings even if a different theme has been set #132.
  • Bug causes a rejected Promise to be swallowed #296.
  • UTM links are modified in Frontity’s blog #294.

:bulb: To keep Frontity and its packages updated, you can follow this guide of our documentation.


Packages Changelog


frontity@1.5.1

Minor Changes

  • 495771f8 #302 Thanks @michalczaplinski! - Add a new decode function to ‘frontity’, which unescapes the HTML.

    This replaces the decode function previously in html2react.

    This is necessary because some of the content fro WP API can come as escaped HTML entities and we want to render it straight into react components.

  • 80c1aa3a #288 Thanks @michalczaplinski! - Add a new option --theme which allows specifying the starter theme on the command line. If the theme is not specified, the user can pick a theme from an interactive prompt.

Patch Changes

  • 74eb448e #323 Thanks @luisherranz! - Fix missing typescript dependency in the frontity package. This package is the one responsible to inject typescript in a Frontity Project and the Frontity CLI.
  • 417f2b0f #305 Thanks @michalczaplinski! - Improve the performance of the decode function. Now it works like this:

    • It does a regexp to check if there are HTML entities.
    • It does a partial replacement of common entities using the simple-entity-decode package.
    • It does a new regexp check to see if there is any entity left.
    • Finally, it does a full replacement of all entities using:
      • he in the server, which works great but it is a big library and therefore we don’t want to include it in the client.
      • DomParser in the client, which is safe to use.

@frontity/core@1.5.0

Minor Changes

Patch Changes

  • 15a8b582 #299 Thanks @DAreRodz! - Prevent array elements stored in the state to be duplicated during CSR

  • 495771f8 #302 Thanks @michalczaplinski! - Add a new decode function to ‘frontity’, which unescapes the HTML.This replaces the decode function previously in html2react .This is necessary because some of the content fro WP API can come as escaped HTML entities and we want to render it straight into react components.


@frontity/twentytwenty-theme@1.0.0

Major Changes

Minor Changes

Patch Changes

  • 10189c8d #257 Thanks @michalczaplinski! - Add link underlines on hover.
    Add transitions when showing and hiding the Search Bar.
    Fix minor CSS bugs.

@frontity/components@1.2.0

Minor Changes


@frontity/tiny-router@1.1.0

Minor Changes

Patch Changes


@frontity/mars-theme@1.3.1

Patch Changes


@frontity/html2react@1.2.0

Minor Changes

  • 5431499d #280 Thanks @iamuchejude! - Add iframe processor and component to lazy load the iframes. It supports native lazy loading and fallbacks to the Intersection Observer.
  • 4c89da89 #305 Thanks @michalczaplinski! - - Decode all the HTML attributes that are strings.
    • Map correctly from some HTML attributes to their corresponding React props.

Patch Changes

  • 495771f8 #302 Thanks @michalczaplinski! - Add a new decode function to ‘frontity’, which unescapes the HTML.This replaces the decode function previously in html2react .This is necessary because some of the content fro WP API can come as escaped HTML entities and we want to render it straight into react components.
  • f9059f3e #266 Thanks @iamuchejude! - Fix execution of scripts tags e.g in embedded blocks.

@frontity/hooks@1.2.0

Minor Changes

Patch Changes


@frontity/google-analytics@1.0.0

Major Changes


@frontity/yoast@1.2.0

Minor Changes

Patch Changes


@frontity/connect@1.0.4

Patch Changes


@frontity/analytics@1.0.0

Major Changes

Patch Changes


@frontity/error@0.0.1

Major Changes

  • Release first version of the package
6 Likes