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/[email protected]

Minor Changes

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

Patch Changes


@frontity/[email protected]


Minor Changes

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

Patch Changes


@frontity/comsc[email protected]


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/[email protected]


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/[email protected]


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


[email protected]


Minor Changes

Patch Changes


@frontity/[email protected]


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/[email protected]


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/[email protected]


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/[email protected]


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/[email protected]


Minor Changes

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

Patch Changes


@frontity/[email protected]


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/[email protected]


Minor Changes

Patch Changes


@frontity/[email protected]


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/[email protected]


Minor Changes

Patch Changes


@frontity/[email protected]


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/[email protected]

Minor Changes

Patch Changes


@frontity/[email protected]


Minor Changes

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

Patch Changes


@frontity/[email protected]


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/[email protected]


Minor Changes

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

Patch Changes


[email protected]


Patch Changes


[email protected]


Patch Changes


@frontity/[email protected]


Patch Changes


@frontity/[email protected]


Patch Changes


@frontity/[email protected]


Patch Changes


@frontity/[email protected]


Patch Changes


@frontity/[email protected]


Patch Changes

1 Like