Frontity release: Redirects stored in WordPress Database

We are back with Frontity releases:

New features

Enhancements

  • Update React to version 17. This is a major version update that contains and paves the way for the newly added features. Also introduces jsx-runtime. #661
  • Update react imports in all packages (including themes) to removed unnecessary React Imports. Thanks @nicholasio ffor the Pull Request :slightly_smiling_face: !
  • Replaced didyoumean with leven. Thanks @jamesgeorge007 for the Pull Request :slightly_smiling_face: !
  • Adopt the new version of emotion 11. That means using the emotion dedicated babel plugin for rewriting the imports, generating source-maps and enable auto labels. #666
  • Start using the Link component of @frontity/components in mars-theme and twentytwenty-theme. #642
  • Fix the extra height that is being added in the featured images of the twentytwenty-theme in mobile. #647
  • Add the CORS header and Cache-Control for static files. This will apply only to the files inside the static build folder. #672
  • Update babel-preset-env to the latest version and switch to core-js v3. #640
  • Update webpack-dev-middleware to v4.1 make sure people don’t see a bug in the console output. #674
  • Refactor some packages to use state.source.url instead of state.source.api to get the backend URL. #635
  • Add support for hierarchical custom post types. #649

Bug Fixes

  • Fix wordpress.com sites not working with state.source.url. #622
  • Fix a bug where the Link component would try to fetch mailto:, tel: and sms: links #667. Thanks @nicholasio for the Pull Request :slightly_smiling_face: !
  • The namespace provided in the create-package command should have a valid format, otherwise the generated index.js will be invalid #617.
  • Take the match property into account when replacing internal links as reported here. Thanks @nicholasio for the Pull Request :slightly_smiling_face: !
  • Prevent navigation errors when the initial location in the browser doesn’t match state.router.link.This could happen if Frontity is embedded in WordPress and the WordPress server modifies the URL when doing a request to the Frontity server. #623
  • Fix the AttachmentEntity type, which was not extending from the PostTypeEntity type. #650
  • Fix the incorrectly matched patterns when a query string was present. The getMatch function now has a separate codepath for regex based patterns. #596
  • Batch the actions.source.fetch() updates of the data object. #626
  • Fix broken links in README files. #654
  • Reverts the preinstall hook added for development workflows. #683

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


Packages Changelog


@frontity/analytics@1.3.1

Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes


@frontity/components@1.7.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes


@frontity/comscore-analytics@1.2.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Fix broken links in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/connect@1.2.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Fix broken links in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/core@1.10.0


Minor Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports
  • 0b5fff74 #672 Thanks @cristianbote! - Add the CORS header and Cache-Control for static files. This will apply only to the files inside the static build folder.
  • d7fe1f50 #661 Thanks @cristianbote! - Updated React to version 17. This is a major version update that contains and paves the way for the newly added features. Also introduces jsx-runtime. Here’s the community link Update to React 17 and Emotion 11.
  • cf35baa5 #601 Thanks @michalczaplinski! - Add support for 30x Redirections.
    1. Redirections can be stored in the backend server, which will be checked according to different configurations:
    • Each time a link is fetched.
    • When the API returns a 404.
    • When the link belongs to a certain set of URLs (configured using a regexp).This configuration is stored in state.source.redirections.The redirection information will be stored in state.source.data similar to what happens for 4xx and 5xx errors.
    1. Redirections can be added to Frontity by populating state.source.data directly or using a handler.Feature Discussion: 301 redirects stored in WordPress database

Patch Changes


frontity@1.14.1


Minor Changes

Patch Changes


@frontity/google-ad-manager@0.2.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Add or update ‘Open Source Community’ section in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/google-analytics@1.4.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Add or update ‘Open Source Community’ section in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/google-tag-manager-analytics@1.2.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Add or update ‘Open Source Community’ section in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/head-tags@1.1.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 7c2fa5cc #635 Thanks @DAreRodz! - Refactor some packages to use state.source.url instead of state.source.api to get the backend URL.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/hooks@2.1.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes


@frontity/html2react@1.6.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Fix broken links in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/mars-theme@1.5.0


Minor Changes

Patch Changes


@frontity/smart-adserver@1.1.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes

  • 01880c34 #666 Thanks @cristianbote! - Adopt the new version of emotion 11. That means using the emotion deidcated babel plugin for rewriting the imports, generating source-maps and enable auto labels.
  • 5f329dab #655 Thanks @mburridge! - Add or update ‘Open Source Community’ section in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/source@1.5.1


Minor Changes

Patch Changes


@frontity/tiny-router@1.3.1


Minor Changes

  • cf35baa5 #601 Thanks @michalczaplinski! - Add support for 30x Redirections.
    1. Redirections can be stored in the backend server, which will be checked according to different configurations:
    • Each time a link is fetched.
    • When the API returns a 404.
    • When the link belongs to a certain set of URLs (configured using a regexp).This configuration is stored in state.source.redirections.The redirection information will be stored in state.source.data similar to what happens for 4xx and 5xx errors.
    1. Redirections can be added to Frontity by populating state.source.data directly or using a handler.Feature Discussion: 301 redirects stored in WordPress database

Patch Changes

  • a74704d0 #634 Thanks @DAreRodz! - Prevent navigation errors when the initial location in the browser doesn’t match state.router.link.This could happen if Frontity is embedded in WordPress (see embedded mode) and the WordPress server modifies the URL when doing a request to the Frontity server.
  • 5f329dab #655 Thanks @mburridge! - Fix broken links in README files.
  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

@frontity/twentytwenty-theme@1.3.0

Minor Changes

Patch Changes


@frontity/types@1.7.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes


@frontity/wp-source@1.11.1


Minor Changes

  • cf35baa5 #601 Thanks @michalczaplinski! - Add support for 30x Redirections.
    1. Redirections can be stored in the backend server, which will be checked according to different configurations:
    • Each time a link is fetched.
    • When the API returns a 404.
    • When the link belongs to a certain set of URLs (configured using a regexp).This configuration is stored in state.source.redirections.The redirection information will be stored in state.source.data similar to what happens for 4xx and 5xx errors.
    1. Redirections can be added to Frontity by populating state.source.data directly or using a handler.Feature Discussion: 301 redirects stored in WordPress database

Patch Changes


@frontity/yoast@2.1.1


Minor Changes

  • 3ced7fdf #670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports

Patch Changes


babel-plugin-frontity@1.0.4


Patch Changes


create-frontity@1.0.4


Patch Changes


@frontity/error@0.1.3


Patch Changes


@frontity/file-settings@1.1.8


Patch Changes


@frontity/router@1.1.4


Patch Changes


@frontity/type-declarations@1.1.1


Patch Changes


@frontity/wp-comments@0.2.6


Patch Changes

1 Like