New features
-
Add the
state.source.url
setting to source according to Make the backend URL a global setting. -
Client routing for internal
content
links: Introduces areplaceSourceUrls
prop to theLink
component andlink
processor that replaces all anchor tags with theLink
component to make internal links work. Thanks @nicholasio.oliveira for the Pull Request!Just by adding the
link
to yourhtml2react
processors 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
MergePackages
tool to safely merge multiple Frontity package types.
Enhancements
- Improve the performance of the
serve
command, 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
Taxonomy
toTerm
when it refers to terms, and refactor entity types (feature discussion). These changes were made in this Pull Request:- Alias
TaxonomyData
toTermData
. - Alias
isTaxonomy()
toisTerm()
. - Deprecate
data.isTaxonomy
and adddata.isTerm
. - Rename
TaxonomyEntity
toTermEntity
. - Rename
TaxonomyType
toTaxonomyEntity
. - Also, rename
PostType
toTypeEntity
.
- Alias
- Stop using
instanceof Array
in 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
Frontity
package 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 areplaceSourceUrls
prop to theLink
component andlink
processor that replaces all anchor tags with theLink
component 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.api
tostate.source.url
in thefrontity.settings.js
file 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 areplaceSourceUrls
prop to theLink
component andlink
processor that replaces all anchor tags with theLink
component 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! - RenameTaxonomy
toTerm
when it refers to terms, and refactor entity types (feature discussion).These changes were made:- Alias
TaxonomyData
toTermData
. - Alias
isTaxonomy()
toisTerm()
. - Deprecate
data.isTaxonomy
and adddata.isTerm
. - Rename
TaxonomyEntity
toTermEntity
. - Rename
TaxonomyType
toTaxonomyEntity
. - Also, rename
PostType
toTypeEntity
.
- Alias
-
362b02f1
#449 Thanks @luisherranz! - Add type guards for data objects and entities (feature discussion). -
3dfa3c48
#610 Thanks @michalczaplinski! - Add thestate.source.url
setting to source according to
Make the backend URL a global setting.
The types are in@frontity/source
and the implementation is in
@frontity/wp-source
.
Patch Changes
-
3dfa3c48
#610 Thanks @michalczaplinski! - Updatestate.source.api
to 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 theMergePackages
tool to safely merge multiple Frontity package types (Feature Discussion). -
44f44e3f
#590 Thanks @luisherranz! - Expose theFrontity
package 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.url
setting to source according to
Make the backend URL a global setting.
The types are in@frontity/source
and the implementation is in
@frontity/wp-source
.
Patch Changes
-
d7b4b429
#616 Thanks @luisherranz! - Stop usinginstanceof Array
in 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.api
to 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 Array
in 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! - Theserve
command 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-source
and not in@frontity/source
.
In the future, once the
@frontity/yoast
package starts usingstate.source.url
instead ofstate.source.api
, the types of@frontity/source
should be used again.
-
362b02f1
#449 Thanks @luisherranz! - Adapt packages to changes in@frontity/source
.
0eefb47b
#615 Thanks @luisherranz! - AddisTaxonomy
back to avoid breaking Yoast for sites with custom handlers that are not usingisTerm
yet. -
44f44e3f
#590 Thanks @luisherranz! - Update TypeScript definitions. - Updated dependencies [
362b02f1
,362b02f1
,362b02f1
,362b02f1
,3dfa3c48
,2c69da57
,6b4bf82b
,44f44e3f
,3dfa3c48
]: