e0f290c8
#866 Thanks @nicholasio! - Fix a bug where frontity could not fetch a page or child page with the same slug as the parent/child.
-
e84cca77
#870 Thanks @luisherranz! - Pinnode-fetch
version until they solve the import problem introduced in v2.6.3. Thanks to @robrecord for the catch. -
Updated dependencies [
e84cca77
]:- frontity@1.17.1
-
0abc237f
#819 Thanks @DAreRodz! - Remove the internal utilityverboseRegExp
as comment for verbose regexp were leaking into the bundle without being deleted. Verbose regexps are documented now with TSDocs. -
Updated dependencies [
4d652ea2
]:- frontity@1.16.0
df7d6c42
#806 Thanks @michalczaplinski! - Fix an incorrect regular expression which matches the link with internal redirections when ahomepage
is defined instate.source
.
eb41d982
#771 Thanks @cristianbote! - Bail out of redirection if frontity is running into embedded mode.
876256d8
#767 Thanks @michalczaplinski! - Fix a bug which caused an infinite loop if the 3xx redirection was "internal" (meaning redirecting to the WP or Frontity domain) and thelocation
of the redirection matched the link as discussed in https://community.frontity.org/t/301-redirects-stored-in-wordpress-database/3032/28.
4f12c5ee
#793 Thanks @DAreRodz! - Fix the pattern of the internal redirection whenstate.source.homepage
is defined, making links with a search param (?s=some+term
) to keep using the post archive handler.
-
8083bd0a
#795 Thanks @DAreRodz! - Add different schemas for categories and tags to avoid ID collisions insidelibraries.source.populate()
. -
Updated dependencies [
62e60216
,77e0a286
]:- frontity@1.15.0
7e701d57
#717 Thanks @michalczaplinski! - Update the value oflink
in actions.fetch if there's an internal redirection.
32c03d58
#533 Thanks @orballo! - Fix an array check by usingArray.isArray
instead ofinstanceof Array
.
-
804f19fe
#686 Thanks @michalczaplinski! - Change howlibraries.source.normalize|parse|stringify
used inside of actions.source.fetch(). From now on, they are not imported from their module but received from thelibraries
parameter ofactions.source.fetch
. -
Updated dependencies [
7c3f0769
,49020718
,15e8f1d8
,7992fb85
]:- frontity@1.14.2
-
b41175d0
#683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows. -
Updated dependencies [
b41175d0
]:- frontity@1.14.1
- @frontity/source@1.5.1
-
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 in
state.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: https://community.frontity.org/t/301-redirects-stored-in-wordpress-database/3032
-
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. -
Updated dependencies [
a5520f56
,01880c34
,3ced7fdf
,898cde32
,5f329dab
,09f07484
,e4221d4b
,9346f560
,5f329dab
,c5b0b8f7
,4f4b7f81
]:- frontity@1.14.0
- @frontity/source@1.5.0
- Release a new beta version in the infinite scroll tag.
3dfa3c48
#610 Thanks @michalczaplinski! - Add thestate.source.url
setting to source according to https://community.frontity.org/t/make-the-backend-url-a-global-setting/2381. The types are in@frontity/source
and the implementation is in@frontity/wp-source
.
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
-
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
- Release stable changes on the beta branch.
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
32c03d58
#533 Thanks @orballo! - Fix an array check by usingArray.isArray
instead ofinstanceof Array
.
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.
- Updated dependencies []:
- frontity@1.8.1-infinite-scroll-beta.0
- @frontity/source@1.2.2-infinite-scroll-beta.0
-
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)