New features
-
Add the
state.source.urlsetting to source according to Make the backend URL a global setting. -
Client routing for internal
contentlinks: Introduces areplaceSourceUrlsprop to theLinkcomponent andlinkprocessor that replaces all anchor tags with theLinkcomponent to make internal links work. Thanks @nicholasio.oliveira for the Pull Request!
Just by adding the
linkto yourhtml2reactprocessors array, all your internal content links will work in Client Side Rendering. You can also combine it with the autoPrefetch feature to easily apply it to all your links.
- Create the
MergePackagestool to safely merge multiple Frontity package types.
Enhancements
- Improve the performance of the
servecommand, that was taking too much to spin the server. Thanks @cristianbote for the Pull Request to solve this!
- Fix a couple of unnecessary rerenderings when transitioning from one data object to another. #616
- Update TypeScript version to 4.0. #449
- Rename
TaxonomytoTermwhen it refers to terms, and refactor entity types (feature discussion). These changes were made in this Pull Request:- Alias
TaxonomyDatatoTermData. - Alias
isTaxonomy()toisTerm(). - Deprecate
data.isTaxonomyand adddata.isTerm. - Rename
TaxonomyEntitytoTermEntity. - Rename
TaxonomyTypetoTaxonomyEntity. - Also, rename
PostTypetoTypeEntity.
- Alias
- Stop using
instanceof Arrayin favor ofArray.isArray(). #616 - Add type guards for data objects and entities (feature discussion).
- Add a type representing values serializable in JS and update types for derived state. #610
- Expose the
Frontitypackage type, which includes those props generated by the Frontity framework. #590
Bug fixes
- Frontity doesnโt โrecognizeโ the source of data if the route is NOT 100% lower case #604. Thanks @nandotess85 for reporting the bug and the Pull Request to solve it!
- Special character in permalink cause internal server error #432.
Packages Changelog
@frontity/components@1.6.0
Minor Changes
-
54c588a9#520 Thanks @nicholasio! - Introduces areplaceSourceUrlsprop to theLinkcomponent andlinkprocessor that replaces all anchor tags with theLinkcomponent to make internal links work.Client routing for internal `content` links
Patch Changes
frontity@1.13.0
Minor Changes
-
6b4bf82b#610 Thanks @michalczaplinski! - Switch fromstate.source.apitostate.source.urlin thefrontity.settings.jsfile generated bynpx frontity create.
Patch Changes
-
362b02f1#449 Thanks @luisherranz! - Update TypeScript version to 4.0. -
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
3dfa3c48,44f44e3f,44f44e3f]:- @frontity/types@1.6.0
@frontity/html2react@1.5.0
Minor Changes
-
54c588a9#520 Thanks @nicholasio! - Introduces areplaceSourceUrlsprop to theLinkcomponent andlinkprocessor that replaces all anchor tags with theLinkcomponent to make internal links work.Client routing for internal `content` links
Patch Changes
- Updated dependencies [
362b02f1,54c588a9,6b4bf82b,44f44e3f]:- frontity@1.13.0
- @frontity/components@1.6.0
@frontity/source@1.4.0
Minor Changes
-
362b02f1#449 Thanks @luisherranz! - RenameTaxonomytoTermwhen it refers to terms, and refactor entity types (feature discussion).These changes were made:- Alias
TaxonomyDatatoTermData. - Alias
isTaxonomy()toisTerm(). - Deprecate
data.isTaxonomyand adddata.isTerm. - Rename
TaxonomyEntitytoTermEntity. - Rename
TaxonomyTypetoTaxonomyEntity. - Also, rename
PostTypetoTypeEntity.
- Alias
-
362b02f1#449 Thanks @luisherranz! - Add type guards for data objects and entities (feature discussion). -
3dfa3c48#610 Thanks @michalczaplinski! - Add thestate.source.urlsetting to source according to
Make the backend URL a global setting.
The types are in@frontity/sourceand the implementation is in
@frontity/wp-source.
Patch Changes
-
3dfa3c48#610 Thanks @michalczaplinski! - Updatestate.source.apito be a derived state. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
@frontity/types@1.6.0
Minor Changes
-
3dfa3c48#610 Thanks @michalczaplinski! - Add a type representing values serializable in JS and update types for derived state. -
44f44e3f#590 Thanks @luisherranz! - Create theMergePackagestool to safely merge multiple Frontity package types (Feature Discussion). -
44f44e3f#590 Thanks @luisherranz! - Expose theFrontitypackage type, which includes those props generated by the Frontity framework.
@frontity/wp-source@1.10.0
Minor Changes
-
3dfa3c48#610 Thanks @michalczaplinski! - Add thestate.source.urlsetting to source according to
Make the backend URL a global setting.
The types are in@frontity/sourceand the implementation is in
@frontity/wp-source.
Patch Changes
-
d7b4b429#616 Thanks @luisherranz! - Stop usinginstanceof Arrayin favor ofArray.isArray(). -
252c89d2#616 Thanks @luisherranz! - Fix a couple of unnecessary rerenderings when transitioning from one data object to another. -
362b02f1#449 Thanks @luisherranz! - Adapt packages to changes in@frontity/source. -
2c69da57#606 Thanks @nandotess! - Makelibraries.source.normalize()to lowercase the pathname of links. This fixes a bug when links with uppercase letters are visited. -
3dfa3c48#610 Thanks @michalczaplinski! - Updatestate.source.apito be a derived state. - Updated dependencies [
362b02f1,362b02f1,362b02f1,3dfa3c48,6b4bf82b,44f44e3f,3dfa3c48]:- @frontity/source@1.4.0
- frontity@1.13.0
@frontity/analytics@1.2.1
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,362b02f1,362b02f1,3dfa3c48,6b4bf82b,44f44e3f,3dfa3c48]:
@frontity/comscore-analytics@1.1.1
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
- @frontity/analytics@1.2.1
@frontity/connect@1.1.4
Patch Changes
-
d7b4b429#616 Thanks @luisherranz! - Stop usinginstanceof Arrayin favor ofArray.isArray(). -
b766e330#610 Thanks @michalczaplinski! - Update the types so that state accepts parameters which are a union of derived state & some serializable value
@frontity/core@1.9.1
Patch Changes
-
e9f7b5c6#609 Thanks @cristianbote! - Theservecommand was taking too much to spin the server. That was due to the build and dev scripts which are having side-effects by loading ts-node and other scripts. - Updated dependencies [
b766e330]:- @frontity/connect@1.1.4
@frontity/google-ad-manager@0.1.2
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
@frontity/google-analytics@1.3.1
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
- @frontity/analytics@1.2.1
@frontity/google-tag-manager-analytics@1.1.1
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
- @frontity/analytics@1.2.1
@frontity/head-tags@1.0.8
Patch Changes
-
362b02f1#449 Thanks @luisherranz! - Adapt packages to changes in@frontity/source. -
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,362b02f1,362b02f1,3dfa3c48,6b4bf82b,44f44e3f,3dfa3c48]:
@frontity/mars-theme@1.4.4
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:
@frontity/router@1.1.2
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
@frontity/smart-adserver@1.0.1
Patch Changes
-
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,6b4bf82b,44f44e3f]:- frontity@1.13.0
@frontity/tiny-router@1.2.3
Patch Changes
-
252c89d2#616 Thanks @luisherranz! - Fix a couple of unnecessary rerenderings when transitioning from one data object to another. -
362b02f1#449 Thanks @luisherranz! - Adapt packages to changes in@frontity/source. -
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,362b02f1,362b02f1,3dfa3c48,6b4bf82b,44f44e3f,3dfa3c48]:
@frontity/wp-comments@0.2.4
Patch Changes
-
362b02f1#449 Thanks @luisherranz! - Adapt packages to changes in@frontity/source. -
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,362b02f1,362b02f1,362b02f1,3dfa3c48,2c69da57,6b4bf82b,44f44e3f,3dfa3c48]:
@frontity/yoast@2.0.1
Patch Changes
-
12fc1797#610 Thanks @michalczaplinski! - Fix Yoast type import ofstate.source.api, which is now in@frontity/wp-sourceand not in@frontity/source.
In the future, once the
@frontity/yoastpackage starts usingstate.source.urlinstead ofstate.source.api, the types of@frontity/sourceshould be used again.
-
362b02f1#449 Thanks @luisherranz! - Adapt packages to changes in@frontity/source.
0eefb47b#615 Thanks @luisherranz! - AddisTaxonomyback to avoid breaking Yoast for sites with custom handlers that are not usingisTermyet. -
44f44e3f#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1,362b02f1,362b02f1,362b02f1,3dfa3c48,2c69da57,6b4bf82b,44f44e3f,3dfa3c48]: