Skip to content

Latest commit

 

History

History
517 lines (293 loc) · 34.3 KB

CHANGELOG.md

File metadata and controls

517 lines (293 loc) · 34.3 KB

Change Log

1.11.6

Patch Changes

  • 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.

1.11.5

Patch Changes

  • 0abc237f #819 Thanks @DAreRodz! - Remove the internal utility verboseRegExp 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

1.11.4

Patch Changes

  • df7d6c42 #806 Thanks @michalczaplinski! - Fix an incorrect regular expression which matches the link with internal redirections when a homepage is defined in state.source.

1.11.3

Patch Changes

  • 4f12c5ee #793 Thanks @DAreRodz! - Fix the pattern of the internal redirection when state.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 inside libraries.source.populate().

  • Updated dependencies [62e60216, 77e0a286]:

    • frontity@1.15.0

1.11.2

Patch Changes

  • 32c03d58 #533 Thanks @orballo! - Fix an array check by using Array.isArray instead of instanceof Array.
  • 804f19fe #686 Thanks @michalczaplinski! - Change how libraries.source.normalize|parse|stringify used inside of actions.source.fetch(). From now on, they are not imported from their module but received from the libraries parameter of actions.source.fetch.

  • Updated dependencies [7c3f0769, 49020718, 15e8f1d8, 7992fb85]:

    • frontity@1.14.2

1.11.1

Patch Changes

  • b41175d0 #683 Thanks @cristianbote! - Reverts the preinstall hook added for development workflows.

  • Updated dependencies [b41175d0]:

    • frontity@1.14.1
    • @frontity/source@1.5.1

1.11.0

Minor Changes

  • cf35baa5 #601 Thanks @michalczaplinski! - Add support for 30x Redirections.

    1. 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.

    2. 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

Patch Changes

  • 681caef1 #635 Thanks @DAreRodz! - Fix how the value of state.source.api is generated when state.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.

1.10.1-infinite-scroll-beta.0

Patch Changes

  • Release a new beta version in the infinite scroll tag.

1.10.0

Minor Changes

Patch Changes

  • 252c89d2 #616 Thanks @luisherranz! - Fix a couple of unnecessary rerenderings when transitioning from one data object to another.
  • 2c69da57 #606 Thanks @nandotess! - Make libraries.source.normalize() to lowercase the pathname of links. This fixes a bug when links with uppercase letters are visited.

1.9.1

Patch Changes

1.9.0

Minor Changes

  • 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.
  • 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 the preview=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 and excerpt with the last one.

  • 63fc4559 #564 Thanks @luisherranz! - Add queryString to the list of link params we get/set using libraries.source.parse and libraries.source.stringify.
  • 63fc4559 #564 Thanks @luisherranz! - Support regular expression patterns to match queries in the URLs, like "RegExp:(\?|&)preview=true".

Patch Changes

1.8.4

Patch Changes

  • b8d187b3 #571 Thanks @michalczaplinski! - Revert a change introduced in #542. Keep setting query, link and route on all entities (including non-URL entities) in source.data

1.8.4-infinite-scroll-beta.0

Patch Changes

  • Release stable changes on the beta branch.

1.8.3

Patch Changes

  • 5eaf92cc #548 Thanks @DAreRodz! - Add a derived prop in state.source called entity that returns the entity pointed by a given link.

1.8.2

Patch Changes

1.8.2-infinite-scroll-beta.0

Patch Changes

  • 32c03d58 #533 Thanks @orballo! - Fix an array check by using Array.isArray instead of instanceof Array.

1.8.1

Patch Changes

  • 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

1.8.0

Minor Changes

Patch Changes

1.7.2-infinite-scroll-beta.0

Patch Changes

  • Updated dependencies []:
    • frontity@1.8.1-infinite-scroll-beta.0
    • @frontity/source@1.2.2-infinite-scroll-beta.0

1.7.1

Patch Changes

  • 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

1.7.0

Minor Changes

  • 9b7858ba #382 Thanks @DAreRodz! - Add an option called authorBase 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.

1.6.3

Patch Changes

1.6.2

Patch Changes

  • e6f48dd9 #339 Thanks @luisherranz! - - Add a fallback to 0 in case default (second param) is missing in both getTotal and getTotalPages.
    • Add backward compatibility to handlers receiving the route param instead of the link one.

1.6.1

Patch Changes

  • cdc84d57 #335 Thanks @luisherranz! - Fix isFetching not turning to true when data exists. It may happen in cases where we are fetching that data in the embed of others. Like for example, taxonomies in posts.

1.6.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 by state.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

1.5.0

Minor Changes

Patch Changes

  • c3d4340a #303 Thanks @DAreRodz! - Add force param to actions.source.fetch and libraries.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

1.5.0

Minor Changes

  • 6ac389b #242 Thanks @DAreRodz! - Add a schema for post types and refactor populate. Use also the new types that come from @frontity/source.

Patch Changes

  • 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)

Bug Fixes

  • 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)

Bug Fixes

  • typescript: update to latest version (a89b11c)

Features

  • wp-source: add postTypes and taxonomies arrays to state (8f8fce3)

1.3.1 (2019-09-10)

Bug Fixes

  • wp-source: move clone-deep from code to tests (4cd6787)

1.3.0 (2019-09-10)

Bug Fixes

  • 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)

Features

  • wp-source: add postEndpoint and params props to state (d921b33)

1.2.0 (2019-08-12)

Bug Fixes

  • wp-source: do not set isHome in postArchive handler (#179) (13e5c1e)

Features

  • frontity: expose fetch and URL from frontity package (#168) (235c465)

1.1.8 (2019-07-12)

Bug Fixes

  • 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)

Bug Fixes

  • 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)

Features

  • wp-source: add support for subdirectory, redirections, pages as home, category and tag base (#131) (0b877b2)

1.0.3 (2019-06-19)

Bug Fixes

  • source-get: make isFetching and isReady properties to be always present (#122) (6d2e485)

1.0.2 (2019-06-05)

Bug Fixes

  • source: fix wrong import in source tests (209cdfd)

1.0.1 (2019-06-05)

Bug Fixes

  • all: update typscript and fix some keywords (1fe5fec)
  • wp-source: change apiUrl for api (26947e7)

1.0.0 (2019-06-05)

Bug Fixes

  • 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)

Features

  • 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)

BREAKING CHANGES

  • 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

0.1.1 (2019-05-15)

Bug Fixes

  • jest-config: transform js files with ts-jest (943b3e4)