We are back with Frontity releases:
New features
- Add support for Redirects stored in WordPress Database. Here you have a demo of how they work and how to configure them:
- Add
isDerived
util, a function to know if a property from the state is a “derived” property or not.
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 !
- Replaced didyoumean with leven. Thanks @jamesgeorge007 for the Pull Request !
- 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
inmars-theme
andtwentytwenty-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 tocore-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 ofstate.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 !
- The
namespace
provided in the create-package command should have a valid format, otherwise the generatedindex.js
will be invalid #617. - Take the
match
property into account when replacing internal links as reported here. Thanks @nicholasio for the Pull Request ! - 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 thePostTypeEntity
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
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
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@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
-
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. -
b288143b
#625 Thanks @nicholasio! - Fix: takes thematch
property into account when replacing internal links.See Bug Report. -
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
e94c0daa
#669 Thanks @nicholasio! - Fix a bug where the Link component would try to fetch mailto:, tel: and sms: links -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@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.- 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 instate.source.data
similar to what happens for 4xx and 5xx errors.
- 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
-
e4221d4b
#640 Thanks @luisherranz! - Updatebabel-preset-env
to the latest version and switch tocore-js
v3. -
e4221d4b
#640 Thanks @luisherranz! - Update dependencies. Some of them to major versions because they dropped support for Node 8, which Frontity doesn’t support either anymore. -
2de4a3a1
#674 Thanks @luisherranz! - Updatewebpack-dev-middleware
to v4.1 make sure people don’t see a bug in the console output. -
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
frontity@1.14.1
Minor Changes
-
3ced7fdf
#670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports -
9346f560
#635 Thanks @DAreRodz! - AddisDerived
util, a function to know if a property from the state is a “derived” property or not (Feature discussion). -
c5b0b8f7
#643 Thanks @luisherranz! - Expose@frontity/connect
’sunobserve
infrontity
.
Patch Changes
-
a5520f56
#632 Thanks @jamesgeorge007! - Replaced didyoumean with leven. -
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. -
09f07484
#656 Thanks @cristianbote! - Thenamespace
provided in the create-package command should have a valid format, otherwise the generatedindex.js
will be invalid. -
e4221d4b
#640 Thanks @luisherranz! - Update dependencies. Some of them to major versions because they dropped support for Node 8, which Frontity doesn’t support either anymore. -
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@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 usestate.source.url
instead ofstate.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
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@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
-
3ced7fdf
#670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports -
120f4c3e
#642 Thanks @luisherranz! - Start using theLink
component of@frontity/components
.
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files.
@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
-
4f4b7f81
#601 Thanks @michalczaplinski! - Add the types for 30x redirections in accord with: 301 redirects stored in WordPress database
Patch Changes
-
898cde32
#650 Thanks @luisherranz! - Fix theAttachmentEntity
type, which was not extending from thePostTypeEntity
type. -
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@frontity/tiny-router@1.3.1
Minor Changes
-
cf35baa5
#601 Thanks @michalczaplinski! - Add support for 30x Redirections.- 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 instate.source.data
similar to what happens for 4xx and 5xx errors.
- 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 matchstate.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
-
3ced7fdf
#670 Thanks @nicholasio! - Update react imports in all packages (including themes) to removed unnecessary React Imports -
120f4c3e
#642 Thanks @luisherranz! - Start using theLink
component of@frontity/components
.
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
2edc1cb0
#647 Thanks @SantosGuillamot! - Fix the extra height that is being added in the featured images of the twentytwenty-theme in mobile.
@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
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@frontity/wp-source@1.11.1
Minor Changes
-
cf35baa5
#601 Thanks @michalczaplinski! - Add support for 30x Redirections.- 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 instate.source.data
similar to what happens for 4xx and 5xx errors.
- 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
-
681caef1
#635 Thanks @DAreRodz! - Fix how the value ofstate.source.api
is generated whenstate.source.url
is set to a free WordPress.com site URL. -
367700eb
#676 Thanks @cristianbote! - Fix the incorrectly matched patterns when a query string was present. The getMatch function now has a separate codepath for regex based patterns. -
0ca83cd5
#626 Thanks @luisherranz! - Batch theactions.source.fetch()
updates of the data object -
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
d38040d3
#649 Thanks @luisherranz! - Add support for hierarchical custom post types. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@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
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
7c2fa5cc
#635 Thanks @DAreRodz! - Refactor some packages to usestate.source.url
instead ofstate.source.api
to get the backend URL. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
babel-plugin-frontity@1.0.4
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
create-frontity@1.0.4
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@frontity/error@0.1.3
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@frontity/file-settings@1.1.8
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@frontity/router@1.1.4
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Fix broken links in README files. -
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.
@frontity/type-declarations@1.1.1
Patch Changes
-
5f329dab
#655 Thanks @mburridge! - Add or update ‘Open Source Community’ section in README files.
@frontity/wp-comments@0.2.6
Patch Changes
-
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.