New features
- We have made easier to work with searches and pagination:
- We added these new properties to the data object returned by
state.source.get(someLink)
in all entities:
- We added these new properties to the data object returned by
data.link
: the link. (link is short for permalink)
data.page
: the page number.
data.route
: the link without the pagination part.
data.next
: the link of the next page in an archive.
data.previous
: the link of the previous page in an archive.
data.isSearch
: true for links that are searches.
data.searchQuery
: the value of the search.
-
- More info on the Feature Discussion.
- New
Switch
component to improve the route between pages.
- Easier routing:
<Switch> <Loading when={data.isFetching} /> <SearchResults when={isSearch} /> <Archive when={data.isArchive} /> <Post when={data.isPostType} /> <PageError when={data.isError} /> </Switch>
- More info on the Feature Discussion and the Switch component documentation.
We updated both our twentytwenty-theme
and mars-theme
starter themes so you can check how easy it is at mars-theme pagination and twentytwenty-theme search
- We’ve changed the API of
html2react
processors to make it even more powerful. Now you can access thestate
andlibraries
of your project inside them.
- Feature discussion.
- New API for processors docs.
Bug fixes
- Error after upgrading Frontity: In some cases, after updating Frontity, they were getting an
Internal Server Error
. #329 - Correctly import type declarations from the
@frontity/type-declarations
package. #319
To keep Frontity and its packages updated, you can follow this guide of our documentation.
Packages Changelog
frontity@1.5.2
Patch Changes
-
b3225692
#329 Thanks @luisherranz! - Fix missinghe
dependency for thedecode
function. -
b3225692
#329 Thanks @luisherranz! - Remove@frontity/connect
from dependencies to avoid multiple imports and fix the problem people is having when they are updating Frontity. -
f7418071
#319 Thanks @luisherranz! - Correctly import type declarations from the @frontity/type-declarations package.
@frontity/twentytwenty-theme@1.1.0
Minor Changes
-
0a0efcba
#318 Thanks @iamuchejude! - Use the new<Switch>
component for conditional rendering. -
ae9dee70
#253 Thanks @michalczaplinski! - Update the theme to use new pagination features from state.source.get().
@frontity/wp-source@1.6.1
Minor Changes
-
e8210ee9
#253 Thanks @michalczaplinski! - We have made easier to work with searches and pagination by adding this new properties to the data object returned bystate.source.get(someLink)
:In all entities:-
data.link
: the link (short for permalink). -
data.page
: the page number. -
data.route
: the link without the pagination part.In archives: -
data.next
: the link of the next page in an archive. -
data.previous
: the link of the previous page in an archive.In searches: -
data.isSearch
: true for links that are searches. -
data.searchQuery
: the value of the search.
-
Patch Changes
-
b3225692
#329 Thanks @luisherranz! - Remove@frontity/connect
from dependencies to avoid multiple imports and fix the problem people is having when they are updating Frontity. -
cdc84d57
#335 Thanks @luisherranz! - FixisFetching
not turning to true whendata
exists. It may happen in cases where we are fetching thatdata
in the embed of others. Like for example, taxonomies in posts.
@frontity/source@1.2.0
Minor Changes
-
e8210ee9
#253 Thanks @michalczaplinski! - We have made easier to work with searches and pagination by adding this new properties to the data object returned bystate.source.get(someLink)
:In all entities:-
data.link
: the link (short for permalink). -
data.page
: the page number. -
data.route
: the link without the pagination part.In archives: -
data.next
: the link of the next page in an archive. -
data.previous
: the link of the previous page in an archive.In searches: -
data.isSearch
: true for links that are searches. -
data.searchQuery
: the value of the search.
-
@frontity/components@1.3.0
Minor Changes
-
7d07748e
#318 Thanks @iamuchejude! - Add a<Switch>
component for conditional rendering.
@frontity/html2react@1.3.0
Minor Changes
-
9cfc178d
#327 Thanks @DAreRodz! - Add the possibility to access state and libraries at the processors so users can use settings or functionalities stored there.
@frontity/mars-theme@1.4.0
Minor Changes
-
0a0efcba
#318 Thanks @iamuchejude! - Use the new<Switch>
component for conditional rendering. -
ae9dee70
#253 Thanks @michalczaplinski! - Update the theme to use new pagination features from state.source.get().
@frontity/types@1.3.0
Minor Changes
-
897780d5
#328 Thanks @michalczaplinski! - Add a new type for server actions that want to modify Koa’s context calledServerAction
.
@frontity/type-declarations@1.1.0
Minor Changes
-
f7418071
#319 Thanks @luisherranz! - Addcss
files to the list of declarations.
Patch Changes
-
f7418071
#319 Thanks @luisherranz! - Correctly import type declarations from the @frontity/type-declarations package.
@frontity/head-tags@1.0.2
Patch Changes
-
fe790be6
#332 Thanks @luisherranz! - Move router types to @frontity/router/types file to match the placement of the rest of the packages.
@frontity/router@1.0.19
Patch Changes
-
fe790be6
#332 Thanks @luisherranz! - Move router types to @frontity/router/types file to match the placement of the rest of the packages.
@frontity/tiny-router@1.1.1
Patch Changes
-
fe790be6
#332 Thanks @luisherranz! - Move router types to @frontity/router/types file to match the placement of the rest of the packages.