Frontity release: Beta version of Google Ad Manager package & auto prefetch

New features

  • First beta version of the Google Ad Manager package (previously DoubleClick For Publishers). It allows users to connect their ads from this server in a really easy way, just including the information in the frontity.settings.js file.

    Here we have a quick demo:

  • Introducing auto prefetching to the <Link /> component, which makes the next page load instant. Thanks @nicholasio.oliveira for the Pull Request! There are four supported modes:

    • “in-view”: Prefetch links that are currently visible in the viewport.
    • “all”: Prefetches all internal links on the page.
    • “hover”: Prefetches links on hover.
    • “no”: No auto prefetch.

    Here we have a quick demo:

We released a first beta version of the WordPress comments package, which will allow users to retrieve and post comments of a specific post in a really easy way, but we have encountered some errors in the action to post new comments, so we’re going to work on fixing them and we’ll probably release a new version next week.

Bug fixes

  • Fix a bug that causes a server crash and 500 errors to be returned if a URL contained a partly known entity. E.g. /undefined/2020/some-interesting-post. #366
  • Fix a bug where requesting posts for a date that is outside of the calendar range causes a 500 error instead of a 404. #513
  • Fix for package names that start with a number, like @123/package . #524
  • Add @frontity/core as a peer dependency of frontity to make sure that people get a warning when they update frontity if they have not updated @frontity/core as well. #516
  • Fix html2react parser support for some SVG attributes that contain dashes and colons. Thanks @orballo for the Pull Reuqest! #530
  • Reword the README to specify that users need to install the Rest API Head Tags WP plugin before using the frontity head-tags package. #512

Next release

For the next release, we’ll fix the problems with the action to post new comments and release the first beta version of the WordPress comments package. We expect to do so next week.


Packages Changelog


@frontity/components@1.5.0

Minor Changes

  • Introducing auto prefetching to the <Link /> component.There are four supported modes:

    • “in-view”: Only prefetch links that are currently visible in the viewport.
    • “all”: Prefetches all internal links on the page.
    • “hover”: Prefetches links on hover.
    • “no”: No auto prefetch.The prefetch mode should be set in state.theme.autoPrefetch .

Patch Changes

  • Updated dependencies [ 17f539bf ]:
    • frontity@1.10.1

@frontity/wp-comments@0.2.0

Minor Changes

Patch Changes


@frontity/core@1.7.3

Patch Changes


frontity@1.10.1

Patch Changes

  • 17f539bf #516 Thanks @luisherranz! - Add @frontity/core as a peer dependency of frontity to make sure that people get a warning when they update frontity if they have not updated @frontity/core as well.
  • Updated dependencies [ a0fc05cb ]:

@frontity/wp-source@1.8.1

Patch Changes

  • 2a28af19 #513 Thanks @michalczaplinski! - Fix a bug where requesting posts for a date that is outside of the calendar range causes a 500 error instead of a 404.
  • 769a7bfd #506 Thanks @michalczaplinski! - Fix the bug that causes a server crash and 500 errors to be returned if a URL contained a partly known entity. E.g. /undefined/2020/some-interesting-post .
  • Updated dependencies [ 17f539bf ]:
    • frontity@1.10.1

@frontity/google-ad-manager@0.1.0

Minor Changes


@frontity/head-tags@1.0.5

Patch Changes

  • c219fb63 #512 Thanks @michalczaplinski! - Reword the README to specify that users need to install the Rest API Head Tags WP plugin before using the frontity head-tags package

@frontity/html2react@1.3.5

Patch Changes

  • c062b39c #530 Thanks @orballo! - Fixes html2react parser support for some SVG attributes that contain dashes and colons
2 Likes

I’m really excited about this release, specially about the auto-prefetch feature. I know it’s a really simple feature, but it can have a huge impact in the final UX while making it really simple for the Developers. Thanks a lot for your contribution @nicholasio.oliveira :blush:

P.d. @SantosGuillamot , great job with the demo videos I think they are a great addition to the release notes.

2 Likes

@SantosGuillamot Good work on these releases explanations and these videos!
They’re very helpful to fully understand the new features released
:clap: :clap::clap::clap::clap:

1 Like

I thought you guys already did prefetch before, how was the site loading so fast before then?

Hey @furrysmile2 the state manager was already fetching by default all the posts of the homepage. What we have released here is the “auto-prefetch” for the Link component, so your React App will be able to auto-prefetch anything behind a Link (including pages, that were not auto-prefetched before).

The twentytwenty-theme already had that feature, but it was included only in that theme. Now it’s available for any Frontity project using the Link component.