-
63fc4559
#564 Thanks @luisherranz! - New post type handlers for plain query permalinks:/?p=ID
for posts and custom post types./?page_id=ID
for pages.
5553daf4
#568 Thanks @michalczaplinski! - Add support for adding auth headers to the source packages by settingstate.source.auth
. This will allow users to e.g. pass Basic Auth header in all requests. Feature Discussion: https://community.frontity.org/t/support-for-custom-headers-in-source-packages/2678
63fc4559
#564 Thanks @luisherranz! - Sort the link query alphabetically. For example,?k1=v1&k2=v2
is now the same than?k2=v2&k1=v1
.
-
63fc4559
#564 Thanks @luisherranz! - Support thepreview=true
query in the PostType and PostTypeWithQuery handlers.If that query is present, the handlers will do an additional request to get the latest revision and they will substitute the
title
,content
andexcerpt
with the last one.
63fc4559
#564 Thanks @luisherranz! - AddqueryString
to the list of link params we get/set usinglibraries.source.parse
andlibraries.source.stringify
.
63fc4559
#564 Thanks @luisherranz! - Support regular expression patterns to match queries in the URLs, like "RegExp:(\?|&)preview=true".
63fc4559
#564 Thanks @luisherranz! - Do not setisHome
to truewhen
isSearch
istrue
.
-
f57af435
#579 Thanks @michalczaplinski! - Fix the issue where the{ force: true }
option was not respected in the postType handler. -
Updated dependencies [
e2c193f2
,63fc4559
]:- frontity@1.12.0
- @frontity/source@1.3.1
b8d187b3
#571 Thanks @michalczaplinski! - Revert a change introduced in #542. Keep settingquery
,link
androute
on all entities (including non-URL entities) in source.data
5eaf92cc
#548 Thanks @DAreRodz! - Add a derived prop instate.source
calledentity
that returns the entity pointed by a given link.
-
958fe49f
#542 Thanks @michalczaplinski! - Add support for non-URL resources e.g. WordPress comments. -
Updated dependencies [
870e4ba5
,5eaf92cc
]:- @frontity/source@1.3.0
-
10a3a977
#566 Thanks @luisherranz! - Do not importURL
fromfrontity
anymore. -
Updated dependencies [
10a3a977
]:- frontity@1.11.1
2a28af19
#513 Thanks @michalczaplinski! - Fix a bug where requesting posts for a date that is outside of the calendar range causes a 500 error instead of a 404.
-
769a7bfd
#506 Thanks @michalczaplinski! - Fix the bug that causes a server crash and 500 errors to be returned if a URL contained a partly known entity. E.g./undefined/2020/some-interesting-post
. -
Updated dependencies [
17f539bf
]:- frontity@1.10.1
b53817d1
#488 Thanks @juanmaguitar! - README created.
-
1c247126
#389 Thanks @michalczaplinski! - Bugfixes:- When using actions.source.fetch("/some-link", { force: true }), the data object property isReady should never be reset to false.
- The data object custom properties (like items, isCategory...) should not be removed from the data.
- The entities I get from the new fetch should overwrite the old ones.
- When calling actions.source.fetch, it should populate data with link, route, page and query, even if data already exists.
-
75343be3
#433 Thanks @SantosGuillamot! - Change urls to point to test.frontity.org instead of test.frontity.io. -
Updated dependencies [
996865a2
,661ac083
,75343be3
]:- @frontity/connect@1.1.0
- frontity@1.7.0
- @frontity/source@1.2.1
9b7858ba
#382 Thanks @DAreRodz! - Add an option calledauthorBase
to change the base of author links. Useful when a custom structure for permalinks is set in the WordPress site connected with the@frontity/wp-source
package.
ad275b2e
#369 Thanks @luisherranz! -data.isHome
is now available whendata.isReady
turns true.- Updated dependencies [
34b37ec8
,7854971e
]:- @frontity/connect@1.0.5
- frontity@1.5.3
e6f48dd9
#339 Thanks @luisherranz! - - Add a fallback to 0 in casedefault
(second param) is missing in bothgetTotal
andgetTotalPages
.- Add backward compatibility to handlers receiving the
route
param instead of thelink
one.
- Add backward compatibility to handlers receiving the
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.
-
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.
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.- Updated dependencies [
b3225692
,e8210ee9
,b3225692
,f7418071
]:- frontity@1.5.2
- @frontity/source@1.2.0
fb412d2a
#291 Thanks @michalczaplinski! - Add status codes and error messages when fetch response is 4xx or 5xx
-
c3d4340a
#303 Thanks @DAreRodz! - Addforce
param toactions.source.fetch
andlibraries.source.populate
.Also, change the default behavior of
populate
to not overwrite entities in the state.- Updated dependencies [417f2b0f
,495771f8
,696dec11
,80c1aa3a
]:- frontity@1.5.0
- @frontity/connect@1.0.4
6ac389b
#242 Thanks @DAreRodz! - Add a schema for post types and refactor populate. Use also the new types that come from@frontity/source
.
- Updated dependencies [
e887fa1
]:- @frontity/source@1.1.0
1.4.3 (2019-12-10)
Note: Version bump only for package @frontity/wp-source
1.4.2 (2019-11-04)
- post-type: fix handler if a query is present (0c36a7c)
1.4.1 (2019-10-10)
Note: Version bump only for package @frontity/wp-source
1.4.0 (2019-10-02)
- typescript: update to latest version (a89b11c)
- wp-source: add postTypes and taxonomies arrays to state (8f8fce3)
1.3.1 (2019-09-10)
- wp-source: move clone-deep from code to tests (4cd6787)
1.3.0 (2019-09-10)
- wp-source: allow arrays inside params in api.get (50fcd63)
- wp-source: fix handlers, refactor them and improve tests (#193) (c7e2bfe)
- wp-source: properly populate custom post types and taxonomies (857f803)
- wp-source: add
postEndpoint
andparams
props to state (d921b33)
1.2.0 (2019-08-12)
1.1.8 (2019-07-12)
- source: set isHome value for the home data object (9af88b4)
1.1.7 (2019-07-04)
Note: Version bump only for package @frontity/wp-source
1.1.6 (2019-07-04)
- babel: use workaround for a bug in babel 7.5.0 (3c489ae)
1.1.5 (2019-07-01)
Note: Version bump only for package @frontity/wp-source
1.1.4 (2019-06-20)
Note: Version bump only for package @frontity/wp-source
1.1.3 (2019-06-20)
Note: Version bump only for package @frontity/wp-source
1.1.2 (2019-06-20)
Note: Version bump only for package @frontity/wp-source
1.1.1 (2019-06-19)
Note: Version bump only for package @frontity/wp-source
1.1.0 (2019-06-19)
- wp-source: add support for subdirectory, redirections, pages as home, category and tag base (#131) (0b877b2)
1.0.3 (2019-06-19)
1.0.2 (2019-06-05)
- source: fix wrong import in source tests (209cdfd)
1.0.1 (2019-06-05)
1.0.0 (2019-06-05)
- route-utils: support custom names in routes (1b0994b)
- source: change routeUtils functions to "getParams" and "getRoute" (e385d3c)
- wp-source: fix archive handlers (c09736f)
- wp-source: fix searches in taxonomies (8b9257f)
- wp-source: remove domains from links (f111b8c)
- wp-source: transform WpSource into a function (abd7034)
- source: accept only strings in 'source.get' and 'source.fetch' (2e9ae62)
- source: add 'normalize' to libraries (9e0e9e3)
- source: change 'data' to 'get' and 'dataMap' to 'data' (f32be1a)
- source: move list pages to their own data (148bc0a)
- source: rename route libraries to 'stringify' and 'parse' (f230f86)
- wp-source: add library 'routeUtils' (0a31246)
- wp-source: remove domain from links (ff1752b)
- source: objects cannot be passed as arguments in 'source.get' and 'source.set'
- source: route libraries have new names
- source: "data.pages" doesn't exist anymore, use "data.items" instead. Each "route" represents now an archive's page (if "route" points to an archive).
- source: changes source API ("data" by "get")
0.1.7 (2019-05-20)
Note: Version bump only for package @frontity/wp-source
0.1.6 (2019-05-17)
Note: Version bump only for package @frontity/wp-source
0.1.5 (2019-05-16)
Note: Version bump only for package @frontity/wp-source
0.1.4 (2019-05-16)
Note: Version bump only for package @frontity/wp-source
0.1.3 (2019-05-15)
Note: Version bump only for package @frontity/wp-source
0.1.2 (2019-05-15)
Note: Version bump only for package @frontity/wp-source
- jest-config: transform js files with ts-jest (943b3e4)